servo/components/script/dom/servoparser
Simon Wülker 51b95a6246
Serialize attribute nodes as the empty string (#36875)
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>
2025-05-06 12:26:15 +00:00
..
async_html.rs Use version of markup5ever with web_atoms crate (#36542) 2025-04-19 11:49:37 +00:00
html.rs Serialize attribute nodes as the empty string (#36875) 2025-05-06 12:26:15 +00:00
mod.rs Implement Trusted types document write sinks (#36824) 2025-05-04 11:50:33 +00:00
prefetch.rs Update FetchTaskTarget to propagate CSP violations. (#36409) 2025-04-13 20:54:59 +00:00
xml.rs Unify the way html5ever and xml5ever block on script elements (#36284) 2025-04-08 16:40:14 +00:00