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(platform-browser): setAttribute should work with xmlns namespace #14874
Conversation
@@ -149,7 +149,13 @@ class DefaultDomRendererV2 implements RendererV2 { | |||
|
|||
setAttribute(el: any, name: string, value: string, namespace?: string): void { | |||
if (namespace) { | |||
el.setAttributeNS(NAMESPACE_URIS[namespace], namespace + ':' + name, value); | |||
const attrNs = NAMESPACE_URIS[namespace]; |
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.
- what about adding the xmlns NS ? (This should be the list of all supported NS).
- missing tests
11096f9
to
6937b49
Compare
@vicb added uri for |
58e61a0
to
7feadf1
Compare
7feadf1
to
25ff1fc
Compare
25ff1fc
to
c9e41b5
Compare
c9e41b5
to
cf5f771
Compare
@IgorMinar can you take a look please? it's a regression from 2.x |
Can this be merged in before the next RC? It is preventing any migration to 4.0.0.RC for my projects. |
Same here, have to downgrade back to |
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.
Thanks, this is a good change!
Thanks @DzmitryShylovich for fixing it and thanks @IgorMinar and @vicb for following up! 🍻 |
Platform attributes (such as :ios and :android) are passed as namespaces to the renderer in Angular 4. Caused by: angular/angular#14874.
Platform attributes (such as :ios and :android) are passed as namespaces to the renderer in Angular 4. Caused by: angular/angular#14874.
Platform attributes (such as :ios and :android) are passed as namespaces to the renderer in Angular 4. Caused by: angular/angular#14874.
Platform attributes (such as :ios and :android) are passed as namespaces to the renderer in Angular 4. Caused by: angular/angular#14874.
Platform attributes (such as :ios and :android) are passed as namespaces to the renderer in Angular 4. Caused by: angular/angular#14874.
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. |
Closes #14865