fix(compiler): support properties on SVG elements
Have DomElementSchemaRegistry support namespaced elements, so that it does not fail when directives are applied in SVG (or xlink). Without this fix, directives or property bindings cannot be used in SVG. Related to #5547 Closes #5653
This commit is contained in:
@ -274,7 +274,7 @@ export class Parse5DomAdapter extends DomAdapter {
|
||||
createElement(tagName): HTMLElement {
|
||||
return treeAdapter.createElement(tagName, 'http://www.w3.org/1999/xhtml', []);
|
||||
}
|
||||
createElementNS(ns, tagName): HTMLElement { throw 'not implemented'; }
|
||||
createElementNS(ns, tagName): HTMLElement { return treeAdapter.createElement(tagName, ns, []); }
|
||||
createTextNode(text: string): Text {
|
||||
var t = <any>this.createComment(text);
|
||||
t.type = 'text';
|
||||
|
Reference in New Issue
Block a user