[Webkit-unassigned] [Bug 277440] XMLSerializer.serializeToString() not serializing child(s) of <img> and also not closing the <img> if it has child(s)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 18 23:49:28 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=277440

--- Comment #7 from Anne van Kesteren <annevk at annevk.nl> ---
Yes, that is correct. XML (just like the DOM, but unlike HTML) does not have a concept of void elements. Every element can have child elements. So when you serialize as XML, you essentially have to ignore HTML-specific serialization aspects.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240819/7fa753ac/attachment.htm>


More information about the webkit-unassigned mailing list