-
Notifications
You must be signed in to change notification settings - Fork 47.3k
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
Ensure validateDOMNesting catches nested body elements #6469
Ensure validateDOMNesting catches nested body elements #6469
Conversation
85b503e
to
fa748de
Compare
Yes, I think this seems reasonable. Thank you! Can you move |
Wait a second... I think this would break full-page rendering. While we generally recommend against FPR, it is a use case that people utilize. We should add a test that rendering |
@jimfb Line 187 should account for that. |
Also line 70 of the test. |
Oh, ok, I'm good with that. |
We do have a test. |
fa748de
to
6cf77ef
Compare
@keyanzhang updated the pull request. |
Thanks @keyanzhang! |
Ensure validateDOMNesting catches nested body elements (cherry picked from commit 4016e71)
This commit fixes #6280.
Instead of adding a new list of rules to handle
foreignObject
, I think the actual problem is that we don't have a clause that handles anotherbody
in "in body" parsing mode (e.g., pass this html snippet to the W3C validator to see the error message: "Start tagbody
seen but an element of the same type was already open").Thanks for reviewing! I could be totally wrong so any feedback is greatly appreciated.
cc @spicyj @toddgeist