fix(compiler, view): centralize TemplateElement checks and fix inconsistencies
Fixes #189 Closes #194
This commit is contained in:
@ -79,4 +79,7 @@ class DOM {
|
||||
static attributeMap(Element element) {
|
||||
return element.attributes;
|
||||
}
|
||||
static Node templateAwareRoot(Element el) {
|
||||
return el is TemplateElement ? el.content : el;
|
||||
}
|
||||
}
|
||||
|
@ -78,5 +78,7 @@ export class DOM {
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
static templateAwareRoot(el:Element):Node {
|
||||
return el instanceof TemplateElement ? el.content : el;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user