diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2025-05-06 14:26:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-06 12:26:15 +0000 |
commit | 51b95a62465d2034fb64f785fb1d731c30755c17 (patch) | |
tree | ad083d5dbbedccbef816914bd7415788bb16d3c1 /src/components/script/dom/bindings/codegen/HTMLTemplateElement.webidl | |
parent | 03abec4148d8e6dd4d1e816669f6c47d9a69b876 (diff) | |
download | servo-main.tar.gz servo-main.zip |
The existing code asserts that attribute nodes are never serialized.
This is wrong, because you can pass an attribute node to
`XMLSerializer::serializeToString`. Instead, the spec mandates that
these are serialized as empty strings
(https://w3c.github.io/DOM-Parsing/#dfn-xml-serialization-algorithm).
Testing: Includes a new web platform test
Fixes: https://github.com/servo/servo/issues/36872
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'src/components/script/dom/bindings/codegen/HTMLTemplateElement.webidl')
0 files changed, 0 insertions, 0 deletions