-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
i18n within foreignObject doesn't work with nested tags #36941
Labels
area: i18n
freq1: low
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
state: confirmed
type: bug/fix
Milestone
Comments
AndrewKushnir
added a commit
to AndrewKushnir/angular
that referenced
this issue
May 6, 2020
This commit adds several tests to verify that i18n logic in Ivy handles elements with HTML namespaces correctly. Related to angular#36941.
3 tasks
AndrewKushnir
added a commit
to AndrewKushnir/angular
that referenced
this issue
May 6, 2020
This commit adds several tests to verify that i18n logic in Ivy handles elements with HTML namespaces correctly. Related to angular#36941.
AndrewKushnir
added a commit
to AndrewKushnir/angular
that referenced
this issue
May 6, 2020
This commit adds several tests to verify that i18n logic in Ivy handles elements with HTML namespaces correctly. Related to angular#36941.
AndrewKushnir
added a commit
to AndrewKushnir/angular
that referenced
this issue
May 14, 2020
This commit adds several tests to verify that i18n logic in Ivy handles elements with HTML namespaces correctly. Related to angular#36941.
kara
pushed a commit
that referenced
this issue
May 14, 2020
kara
pushed a commit
that referenced
this issue
May 14, 2020
profanis
pushed a commit
to profanis/angular
that referenced
this issue
Sep 5, 2020
…angular#36943) This commit adds several tests to verify that i18n logic in Ivy handles elements with HTML namespaces correctly. Related to angular#36941. PR Close angular#36943
jelbourn
added
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
and removed
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
severity3: broken
labels
Oct 1, 2020
Since ViewEngine is deprecated and this is fixed in Ivy, I am going to close this. |
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.
Labels
area: i18n
freq1: low
P5
The team acknowledges the request but does not plan to address it, it remains open for discussion
state: confirmed
type: bug/fix
🐞 bug report
Affected Package
@angular/compiler
Angular i18n
Is this a regression?
No
Description
An
svg
element withforeignObject
can contain any kind of HTML tags like<div>
or<span>
.However If a
span
is nested inside adiv
that containsi18n
the build breaks.🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-va9pj8?file=src%2Fapp%2Fapp.component.html
See the comment about removing
i18n
🔥 Exception or Error
🌍 Your Environment
Angular Version:
9.x
Anything else relevant?
Existing workaround is to move the HTML from within
<foreignObject>
to an<ng-template>
https://stackblitz.com/edit/angular-hfqm3v?file=src/app/app.component.html
The text was updated successfully, but these errors were encountered: