Click here to download the Blitz Browser!

WPT

wpt / domparsing / XMLSerializer-serializeToString.html

Spec: DOM Parsing and Serialization ↗

Runs: Chrome 155.0.8041.0 (wpt@18be93235, 2026-09-04) | Firefox 157.0a1 (wpt@18be93235, 2026-09-04) | Safari 251 preview (wpt@2c385f65e, 2026-09-04) | Ladybird 1.0-70fb3 (wpt@0c9001c53, 2026-09-04) | Servo Servo 0.6 (wpt@2c385f65e, 2026-09-04) | Blitz a50cb8971 (wpt@a95401e4e, 2026-09-03)

View on the Blitz WPT dashboard | Open test on wpt.live | wpt.fyi

ChromeFirefoxSafariLadybirdServoBlitz
Total27/3319/3323/3315/333/33NOT RUN
SubtestChromeFirefoxSafariLadybirdServoBlitz
check XMLSerializer.serializeToString method could parsing xmldoc to stringPASSPASSPASSPASSPASS
check XMLSerializer.serializeToString method could parsing document to stringPASSPASSPASSPASSFAIL
Check if the default namespace is correctly reset.PASSPASSPASSPASSFAIL
Check if there is no redundant empty namespace declaration.PASSPASSPASSPASSFAIL
Check if redundant xmlns="..." is dropped.PASSFAILFAILPASSFAIL
Check if inconsistent xmlns="..." is dropped.PASSFAILFAILPASSFAIL
Drop inconsistent xmlns="..." by matching on local nameFAILPASSFAILFAILFAIL
Check if an attribute with namespace and no prefix is serialized with the nearest-declared prefixPASSPASSPASSFAILFAIL
Check if an attribute with namespace and no prefix is serialized with the nearest-declared prefix even if the prefix is assigned to another namespace.FAILFAILFAILFAILFAIL
Check if the prefix of an attribute is replaced with another existing prefix mapped to the same namespace URI.PASSPASSPASSFAILFAIL
Check if the prefix of an attribute is NOT preserved in a case where neither its prefix nor its namespace URI is not already used.FAILFAILFAILFAILFAIL
Check if the prefix of an attribute is replaced with a generated one in a case where the prefix is already mapped to a different namespace URI.PASSFAILPASSFAILFAIL
Attribute value escapes: ltPASSPASSPASSPASSFAIL
Attribute value escapes: gtPASSPASSPASSPASSFAIL
Attribute value escapes: quotPASSPASSPASSPASSFAIL
Attribute value escapes: aposPASSPASSPASSPASSFAIL
[TENTATIVE] check XMLSerializer.serializeToString escapes attribute values for roundtrippingPASSPASSPASSFAILFAIL
Check if attribute serialization takes into account of following xmlns:* attributesPASSFAILFAILFAILFAIL
Check if attribute serialization takes into account of the same prefix declared in an ancestor elementPASSFAILPASSFAILFAIL
Check if start tag serialization drops element prefix if the namespace is same as inherited default namespace.PASSFAILFAILFAILFAIL
Check if start tag serialization finds an appropriate prefix.PASSPASSPASSFAILFAIL
Check if end tag serialization matches start tag when an appropriate prefix is found.PASSPASSPASSFAILFAIL
Check if start tag serialization takes into account of its xmlns:* attributesPASSFAILFAILFAILFAIL
Check if start tag serialization applied the original prefix even if it is declared in an ancestor element.PASSFAILPASSFAILFAIL
Check if start tag serialization does NOT apply the default namespace if its namespace is declared in an ancestor.FAILFAILFAILFAILFAIL
Check if end tag serialization matches start tag for elements in the XML namespace.PASSPASSPASSPASSFAIL
Check if generated prefixes match to "ns${index}".PASSFAILPASSPASSFAIL
Check if "ns1" is generated even if the element already has xmlns:ns1.FAILFAILFAILFAILFAIL
Check if no special handling for XLink namespace unlike HTML serializer.PASSFAILPASSFAILFAIL
Check if document fragment serializes.PASSPASSPASSPASSPASS
Check children were included for void elementsPASSPASSPASSPASSFAIL
Check if a prefix bound to an empty namespace URI ("no namespace") serializeFAILPASSPASSFAILFAIL
Attribute nodes are serialized as the empty stringPASSPASSPASSPASSPASS