New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SVG foreignObject by adding xhtml namespace #6190
Comments
I've created a PR for this #6192 |
I've created an updated PR for this issue #9458 |
3 tasks
fixed |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following use-case is quite common in SVG to embed HTML content via
foreignObject
(https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject). Especially since SVG 1.1 is not supporting multi-line text.Programmatically this means that all elements within SVG foreign objects need to be created with
createElementNS
and the corresponding namespace. HTML elements need to get thehttp://www.w3.org/1999/xhtml
namespace.Since Angular currently only supports
xlink
andsvg
namespaces, I'm proposing to add thexhtml
namespace too so the following example would work:http://plnkr.co/edit/EHPWvIN3UgXnkBv2884n?p=preview
Changes presumably go into https://github.com/angular/angular/blob/master/modules/angular2/src/platform/dom/dom_renderer.ts#L46-L47 and https://github.com/angular/angular/blob/master/modules/angular2/src/compiler/schema/dom_element_schema_registry.ts#L9-L10
The text was updated successfully, but these errors were encountered: