-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Serializing children of void elements #32628
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
Serializing children of void elements #32628
Conversation
|
EWS run on previous version of this PR (hash fc00fd8) |
|
@annevk seems some of the test were failing already (despite this changes) in LayoutTests/imported/w3c/web-platform-tests/domparsing/XMLSerializer-serializeToString.html But am sure the test case i added would pass across all, but i cannot take specific logs regarding that. |
You can use Once you updated WPT test case, you can export them through script present in |
|
@Ahmad-S792 thanks will try that. |
fc00fd8 to
ec32397
Compare
|
EWS run on previous version of this PR (hash ec32397) |
ec32397 to
0a23097
Compare
|
EWS run on current version of this PR (hash 0a23097) |
|
I see only this in |
https://bugs.webkit.org/show_bug.cgi?id=277440 Reviewed by Anne van Kesteren. As per XML, if void elements contains children, the children also gets serialized, as void elements concepts are only valid in HTML, So checking whether the syntax is xml, then it must have close tag except if it doesn't have children * LayoutTests/imported/w3c/web-platform-tests/domparsing/XMLSerializer-serializeToString-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/domparsing/XMLSerializer-serializeToString.html: * Source/WebCore/editing/MarkupAccumulator.cpp: (WebCore::MarkupAccumulator::serializeNodesWithNamespaces): Canonical link: https://commits.webkit.org/282725@main
0a23097 to
0afcbca
Compare
|
Committed 282725@main (0afcbca): https://commits.webkit.org/282725@main Reviewed commits have been landed. Closing PR #32628 and removing active labels. |
0afcbca
0a23097