-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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(ivy): set namespace for host elements of dynamically created components #35136
fix(ivy): set namespace for host elements of dynamically created components #35136
Conversation
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 for picking this up! A few notes below
Hi @kara, thanks for the review! I performed additional changes based on your feedback. Could you pleaser have another look when you get a chance? Thank you. |
…onents Prior to this change, element namespace was not set for host elements of dynamically created components that resulted in incorrect rendering in a browser. This commit adds the logic to pick and set correct namespace for host element when component is created dynamically.
12b83e1
to
b132e5d
Compare
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.
LGTM
@@ -174,7 +174,7 @@ class DefaultDomRenderer2 implements Renderer2 { | |||
setAttribute(el: any, name: string, value: string, namespace?: string): void { | |||
if (namespace) { | |||
name = namespace + ':' + name; | |||
// TODO(benlesh): Ivy may cause issues here because it's passing around | |||
// TODO(FW-811): Ivy may cause issues here because it's passing around |
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 for updating these 👍
…onents (#35136) Prior to this change, element namespace was not set for host elements of dynamically created components that resulted in incorrect rendering in a browser. This commit adds the logic to pick and set correct namespace for host element when component is created dynamically. PR Close #35136
…onents (angular#35136) Prior to this change, element namespace was not set for host elements of dynamically created components that resulted in incorrect rendering in a browser. This commit adds the logic to pick and set correct namespace for host element when component is created dynamically. PR Close angular#35136
…onents (angular#35136) Prior to this change, element namespace was not set for host elements of dynamically created components that resulted in incorrect rendering in a browser. This commit adds the logic to pick and set correct namespace for host element when component is created dynamically. PR Close angular#35136
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. |
Prior to this change, element namespace was not set for host elements of dynamically created components that resulted in incorrect rendering in a browser. This commit adds the logic to pick and set correct namespace for host element when component is created dynamically.
Fixes #34256, #34866.
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?