projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
18559: Fix user profile form initialization & cleanup
[arvados.git]
/
src
/
lib
/
cwl-svg
/
graph
/
template-parser.ts
1
export class TemplateParser {
2
3
static parse(tpl: any) {
4
const ns = "http://www.w3.org/2000/svg";
5
const node = document.createElementNS(ns, "g");
6
node.innerHTML = tpl;
7
return node.firstElementChild;
8
}
9
}