[webkit-changes] [WebKit/WebKit] 0afcbc: Serializing children of void elements
Aravind
noreply at github.com
Mon Aug 26 01:59:41 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0afcbcac01bd6803608f52f2e9204926ade3d2fd
https://github.com/WebKit/WebKit/commit/0afcbcac01bd6803608f52f2e9204926ade3d2fd
Author: codesculpture <codesculptures at gmail.com>
Date: 2024-08-26 (Mon, 26 Aug 2024)
Changed paths:
M LayoutTests/imported/w3c/web-platform-tests/domparsing/XMLSerializer-serializeToString-expected.txt
M LayoutTests/imported/w3c/web-platform-tests/domparsing/XMLSerializer-serializeToString.html
M Source/WebCore/editing/MarkupAccumulator.cpp
Log Message:
-----------
Serializing children of void elements
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
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list