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:
Tero Parviainen
2015-12-06 14:21:34 +02:00
parent 50490b55eb
commit daaa8ee1cd
11 changed files with 89 additions and 15 deletions

View File

@ -40,5 +40,8 @@ export function main() {
expect(registry.getMappedPropName('title')).toEqual('title');
expect(registry.getMappedPropName('exotic-unknown')).toEqual('exotic-unknown');
});
it('should detect properties on namespaced elements',
() => { expect(registry.hasProperty('@svg:g', 'id')).toBeTruthy(); });
});
}