-
Notifications
You must be signed in to change notification settings - Fork 117
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
Namespaces on inline HTML tags causes the component tree to be malformed #4281
Comments
@BalusC Commented |
@Toberumono Commented |
@edburns Commented https://javaee.groups.io/g/jsf-spec/message/30 Also, please consider joining that group, as that group has taken the Thanks, Ed Burns |
@dmschlot Commented All my HTML is valid XML, and XML serializers do not always allow you to control where namespaces are added. Inline SVGs are common enough that I feel it is a pretty good example of why this should be fixed. (Searching Google you'll find half the examples out there have xmlns on the inline svg.) @BalusC Are you able to accept his pull request? If not who should I message? |
|
The issue does not appear to have been fixed, and I cannot find an equivalent PR for the one that I made in the old repository (https://github.com/javaserverfaces/mojarra/pull/4282). Is there something that I need to or can do in order for my proposed fix to be included in the new repository? |
Any progress on this? Accidentally reproduced this one again today. |
@EvanKnowles Unfortunately, my PR has been completely ignored since I provided it. Also, it appears that same PR was lost when the repository was transferred. |
@Toberumono No chance of running a fork this side unfortunately, thanks for the info though. |
Relabeling as 2.3 as folks are saying it is an issue in 2.3 releases as well. Note that attaching a reproducer using only Mojarra will make it easier for the maintainers to address the issue. |
Still reproducible in 2.3.17. The long lost PR is here: javaee/mojarra#4282 |
I've verified that the original fix is working. I'll run the entire 2.3 test set first before prepping a new PR. |
The same issue applies to JSF 3.0 as well. Should I make a new PR or will this also get merged into JSF 3.x? The fix is identical for 3.x, if that helps. |
I'll upmerge, no worries. The entire 2.3 test set has passed, so I'll prep PR. |
Actually, I have another PR from the old repository. I'm not sure if it was ever considered - it might count as a new feature. |
Fix #4281: corrupted component tree when using namespaced HTML elements
Just an FYI this fix broke a scenario in #5140 |
If we have a fragment like
(The tags and namespace do not matter - so long as an HTML tag with a namespace declaration exists on the page, this error will occur)
The expected tree should have a structure like:
Instead it has a structure like:
The text was updated successfully, but these errors were encountered: