Pass | check XMLSerializer.serializeToString method could parsing xmldoc to string | Asserts runPass | assert_equals("<root><child1>value1</child1></root>", "<root><child1>value1</child1></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:31:3) |
|
Pass | check XMLSerializer.serializeToString method could parsing document to string | Asserts runPass | assert_equals("<html><head/><body><div/><span/></body></html>", "<html><head/><body><div/><span/></body></html>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:36:3) |
|
Pass | Check if the default namespace is correctly reset. | Asserts runPass | assert_equals("<root><another xmlns=\"urn:foo\"><child1 xmlns=\"\">value1</child1></another></root>", "<root><another xmlns=\"urn:foo\"><child1 xmlns=\"\">value1</child1></another></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:45:3) |
|
Pass | Check if there is no redundant empty namespace declaration. | Asserts runPass | assert_equals("<root xmlns=\"urn:bar\"><outer xmlns=\"\"><inner>value1</inner></outer></root>", "<root xmlns=\"urn:bar\"><outer xmlns=\"\"><inner>value1</inner></outer></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:50:3) |
|
Fail | Check if redundant xmlns="..." is dropped. | assert_equals: expected "<root><child/></root>" but got "<root><child xmlns=\"\"/></root>" at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:55:3)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:54:1 Asserts runFail | assert_equals("<root><child xmlns=\"\"/></root>", "<root><child/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:55:3) |
|
Pass | Check if inconsistent xmlns="..." is dropped. | Asserts runPass | assert_equals("<root xmlns=\"uri1\"><child xmlns=\"\"/><child2 xmlns=\"uri2\"/><child3/><child4 xmlns=\"uri4\"/><child5 xmlns=\"\"/></root>", "<root xmlns=\"uri1\"><child xmlns=\"\"/><child2 xmlns=\"uri2\"/><child3/><child4 xmlns=\"uri4\"/><child5 xmlns=\"\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:80:3) |
|
Pass | Check if an attribute with namespace and no prefix is serialized with the nearest-declared prefix | Asserts runPass | assert_equals("<r xmlns:xx=\"uri\" xx:name=\"v\"/>", "<r xmlns:xx=\"uri\" xx:name=\"v\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:86:3) | Pass | assert_equals("<r xmlns:xx=\"uri\"><b xx:name=\"v\"/></r>", "<r xmlns:xx=\"uri\"><b xx:name=\"v\"/></r>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:91:3) | Pass | assert_equals("<r xmlns:x0=\"uri\" xmlns:x2=\"uri\"><b xmlns:x1=\"uri\" x1:name=\"v\"/></r>", "<r xmlns:x0=\"uri\" xmlns:x2=\"uri\"><b xmlns:x1=\"uri\" x1:name=\"v\"/></r>", "Should choose the nearest prefix")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:96:3) |
|
Fail | 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. | assert_equals: expected "<el1 xmlns:p=\"u1\" xmlns:q=\"u1\"><el2 xmlns:q=\"u2\" q:name=\"v\"/></el1>" but got "<el1 xmlns:p=\"u1\" xmlns:q=\"u1\"><el2 xmlns:q=\"u2\" p:name=\"v\"/></el1>" at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:105:3)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:102:1 Asserts runFail | assert_equals("<el1 xmlns:p=\"u1\" xmlns:q=\"u1\"><el2 xmlns:q=\"u2\" p:name=\"v\"/></el1>", "<el1 xmlns:p=\"u1\" xmlns:q=\"u1\"><el2 xmlns:q=\"u2\" q:name=\"v\"/></el1>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:105:3) |
|
Pass | Check if the prefix of an attribute is replaced with another existing prefix mapped to the same namespace URI. | Asserts runPass | assert_equals("<r xmlns:xx=\"uri\" xx:name=\"v\"/>", "<r xmlns:xx=\"uri\" xx:name=\"v\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:112:3) | Pass | assert_equals("<r xmlns:xx=\"uri\"><b xx:name=\"value\"/></r>", "<r xmlns:xx=\"uri\"><b xx:name=\"value\"/></r>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:117:3) |
|
Fail | 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. | assert_equals: expected "<r xmlns:xx=\"uri\" xmlns:ns1=\"uri2\" ns1:name=\"value\"/>" but got "<r xmlns:xx=\"uri\" xmlns:p=\"uri2\" p:name=\"value\"/>" at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:125:3)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:122:1 Asserts runFail | assert_equals("<r xmlns:xx=\"uri\" xmlns:p=\"uri2\" p:name=\"value\"/>", "<r xmlns:xx=\"uri\" xmlns:ns1=\"uri2\" ns1:name=\"value\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:125:3) |
|
Pass | 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. | Asserts runPass | assert_equals("<r xmlns:xx=\"uri\" xmlns:ns1=\"uri2\" ns1:name=\"value\"/>", "<r xmlns:xx=\"uri\" xmlns:ns1=\"uri2\" ns1:name=\"value\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:132:3) |
|
Pass | check XMLSerializer.serializeToString escapes attribute values for roundtripping | Asserts runPass | assert_in_array("<root attr=\"	\"/>", ["<root attr=\"	\"/>", "<root attr=\"	\"/>"])
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:139:3) | Pass | assert_in_array("<root attr=\" \"/>", ["<root attr=\"
\"/>", "<root attr=\" \"/>"])
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:142:3) | Pass | assert_in_array("<root attr=\" \"/>", ["<root attr=\"
\"/>", "<root attr=\" \"/>"])
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:145:3) |
|
Pass | Check if attribute serialization takes into account of following xmlns:* attributes | Asserts runPass | assert_equals("<root xmlns:ns1=\"uri1\" ns1:foobar=\"value1\" xmlns:p=\"uri2\"/>", "<root xmlns:ns1=\"uri1\" ns1:foobar=\"value1\" xmlns:p=\"uri2\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:153:3) |
|
Pass | Check if attribute serialization takes into account of the same prefix declared in an ancestor element | Asserts runPass | assert_equals("<root xmlns:p=\"uri1\"><child xmlns:ns1=\"uri2\" ns1:foobar=\"v\"/></root>", "<root xmlns:p=\"uri1\"><child xmlns:ns1=\"uri2\" ns1:foobar=\"v\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:159:3) |
|
Pass | Check if start tag serialization drops element prefix if the namespace is same as inherited default namespace. | Asserts runPass | assert_equals("<root><child/></root>", "<root><child/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:163:3) | Pass | assert_equals("<root xmlns=\"u1\"><child xmlns:p=\"u1\"/></root>", "<root xmlns=\"u1\"><child xmlns:p=\"u1\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:164:3) |
|
Pass | Check if start tag serialization finds an appropriate prefix. | Asserts runPass | assert_equals("<root xmlns:p1=\"u1\"><child xmlns:p2=\"u1\"><p2:child2/></child></root>", "<root xmlns:p1=\"u1\"><child xmlns:p2=\"u1\"><p2:child2/></child></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:171:3) |
|
Pass | Check if start tag serialization takes into account of its xmlns:* attributes | Asserts runPass | assert_equals("<ns1:root xmlns:ns1=\"uri1\" xmlns:p=\"uri2\"/>", "<ns1:root xmlns:ns1=\"uri1\" xmlns:p=\"uri2\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:177:3) |
|
Pass | Check if start tag serialization applied the original prefix even if it is declared in an ancestor element. | Asserts runPass | assert_equals("<root xmlns:p=\"uri2\"><p:child xmlns:p=\"uri1\"/></root>", "<root xmlns:p=\"uri2\"><p:child xmlns:p=\"uri1\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:185:3) |
|
Fail | Check if start tag serialization does NOT apply the default namespace if its namespace is declared in an ancestor. | assert_equals: expected "<root xmlns:x=\"uri1\"><x:table xmlns=\"uri1\"/></root>" but got "<root xmlns:x=\"uri1\"><table xmlns=\"uri1\"/></root>" at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:190:3)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:189:1 Asserts runFail | assert_equals("<root xmlns:x=\"uri1\"><table xmlns=\"uri1\"/></root>", "<root xmlns:x=\"uri1\"><x:table xmlns=\"uri1\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:190:3) |
|
Pass | | Asserts runPass | assert_equals("<root><child1 xmlns:ns1=\"uri1\" ns1:attr1=\"value1\" xmlns:ns2=\"uri2\" ns2:attr2=\"value2\"/><child2 xmlns:ns3=\"uri3\" ns3:attr3=\"value3\"/></root>", "<root><child1 xmlns:ns1=\"uri1\" ns1:attr1=\"value1\" xmlns:ns2=\"uri2\" ns2:attr2=\"value2\"/><child2 xmlns:ns3=\"uri3\" ns3:attr3=\"value3\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:199:3) |
|
Fail | Check if "ns1" is generated even if the element already has xmlns:ns1. | assert_equals: expected "<root xmlns:ns2=\"uri2\"><child xmlns:ns1=\"uri1\" xmlns:ns1=\"uri3\" ns1:attr1=\"value1\"/></root>" but got "<root xmlns:ns2=\"uri2\"><child xmlns:ns1=\"uri1\" xmlns:ns3=\"uri3\" ns3:attr1=\"value1\"/></root>" at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:208:3)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at test (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:633:30)
at https://xn--n8j6ds53lwwkrqhv28a.wpt.live/domparsing/XMLSerializer-serializeToString.html:205:1 Asserts runFail | assert_equals("<root xmlns:ns2=\"uri2\"><child xmlns:ns1=\"uri1\" xmlns:ns3=\"uri3\" ns3:attr1=\"value1\"/></root>", "<root xmlns:ns2=\"uri2\"><child xmlns:ns1=\"uri1\" xmlns:ns1=\"uri3\" ns1:attr1=\"value1\"/></root>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:208:3) |
|
Pass | Check if no special handling for XLink namespace unlike HTML serializer. | Asserts runPass | assert_equals("<root xmlns:ns1=\"http://www.w3.org/1999/xlink\" ns1:href=\"v\"/>", "<root xmlns:ns1=\"http://www.w3.org/1999/xlink\" ns1:href=\"v\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:214:3) | Pass | assert_equals("<root xmlns:xl=\"http://www.w3.org/1999/xlink\" xl:type=\"v\"/>", "<root xmlns:xl=\"http://www.w3.org/1999/xlink\" xl:type=\"v\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:218:3) |
|
Pass | Check if document fragment serializes. | Asserts runPass | assert_equals("<div xmlns=\"http://www.w3.org/1999/xhtml\"></div><span xmlns=\"http://www.w3.org/1999/xhtml\"></span>", "<div xmlns=\"http://www.w3.org/1999/xhtml\"></div><span xmlns=\"http://www.w3.org/1999/xhtml\"></span>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:225:3) |
|
Pass | Check children were included for void elements | Asserts runPass | assert_equals("<img xmlns=\"http://www.w3.org/1999/xhtml\"><style></style><style></style></img>", "<img xmlns=\"http://www.w3.org/1999/xhtml\"><style></style><style></style></img>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:232:3) |
|
Pass | Check if a prefix bound to an empty namespace URI ("no namespace") serialize | Asserts runPass | assert_equals("<root xmlns=\"\" xmlns:foo=\"\"/>", "<root xmlns=\"\" xmlns:foo=\"\"/>")
at Test.<anonymous> ( /domparsing/XMLSerializer-serializeToString.html:238:3) |
|