-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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
fix(render): create svg elements with the right namespace #4949
Conversation
@@ -215,6 +215,10 @@ abstract class AbstractHtml5LibAdapter implements DomAdapter { | |||
return new Element.tag(tagName); | |||
} | |||
|
|||
createElementNS(ns, tagName, [doc]) { | |||
throw 'not implemented'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the class is abstract, no need to throw (other places should also be modified)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vicb: could you please file an issue for this? There are lots of places where we need to clean this up. For now Tobias' change is fine. The P1 goal is to roll out pre-compiler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then I need to implement it in all sub classes...
// TODO(tbosch): solve SVG properly once https://github.com/angular/angular/issues/4417 is done | ||
const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink'; | ||
const SVG_NAMESPACE = 'http://www.w3.org/2000/svg'; | ||
const SVG_ELEMENT_NAMES = CONST_EXPR({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: SVG_ELEMENTS
?
Temporary fix for angular#4506
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. |
Temporary fix for #4506