feat(svg): Provide support for SVG foreignObject by adding xhtml namespace

Closes #6192
This commit is contained in:
Gion Kunz
2015-12-31 11:07:11 +01:00
committed by Brian Ford
parent 61cf499b0b
commit eb688f2c8e
3 changed files with 34 additions and 4 deletions

View File

@ -6,8 +6,11 @@ import {splitNsName} from 'angular2/src/compiler/html_tags';
import {ElementSchemaRegistry} from './element_schema_registry';
const NAMESPACE_URIS =
CONST_EXPR({'xlink': 'http://www.w3.org/1999/xlink', 'svg': 'http://www.w3.org/2000/svg'});
const NAMESPACE_URIS = CONST_EXPR({
'xlink': 'http://www.w3.org/1999/xlink',
'svg': 'http://www.w3.org/2000/svg',
'xhtml': 'http://www.w3.org/1999/xhtml'
});
@Injectable()
export class DomElementSchemaRegistry extends ElementSchemaRegistry {