[wpt-sync] Sync PR 51872 - Allow binding prefix to empty namespace URI when serializing
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox139 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 51872 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/51872
Details from upstream follow.
Fredrik Söderquist <fs@opera.com> wrote:
Allow binding prefix to empty namespace URI when serializing
During parsing a prefix couldn't be bound to "no namespace", but it's
possible to get into that state through DOM mutation. The spec[1] has
language to handle it, so attempt implement that.[1] https://w3c.github.io/DOM-Parsing/#dfn-recording-the-namespace-information
Fixed: 40788555
Change-Id: I7fdb47e92e84fa23751b2989f5e571fd20ac6c2c
Reviewed-on: https://chromium-review.googlesource.com/6429486
WPT-Export-Revision: 9dd05d11594647293f4dd68194ec501b6e02b4d1
Assignee | ||
Updated•19 days ago
|
Assignee | ||
Comment 1•19 days ago
|
||
Assignee | ||
Comment 2•19 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 25 subtests
Status Summary
Firefox
OK
: 1
PASS
: 11
FAIL
: 14
Chrome
OK
: 1
PASS
: 20
FAIL
: 5
Safari
OK
: 1
PASS
: 14
FAIL
: 11
Links
Details
Firefox-only Failures
- /domparsing/XMLSerializer-serializeToString.html [wpt.fyi]
- 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.:
FAIL
- Check if attribute serialization takes into account of the same prefix declared in an ancestor element:
FAIL
- Check if start tag serialization applied the original prefix even if it is declared in an ancestor element.:
FAIL
- Check if generated prefixes match to "ns${index}".:
FAIL
- Check if no special handling for XLink namespace unlike HTML serializer.:
FAIL
- 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.:
New Tests That Don't Pass
- /domparsing/XMLSerializer-serializeToString.html [wpt.fyi]
- Check if redundant xmlns="..." is dropped.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Check if inconsistent xmlns="..." is dropped.:
FAIL
(Chrome:PASS
, Safari: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.:
FAIL
(Chrome:FAIL
, Safari: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.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - 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.:
FAIL
(Chrome:PASS
, Safari:PASS
) - Check if attribute serialization takes into account of following xmlns:* attributes:
FAIL
(Chrome:PASS
, Safari:FAIL
) - Check if attribute serialization takes into account of the same prefix declared in an ancestor element:
FAIL
(Chrome:PASS
, Safari:PASS
) - Check if start tag serialization drops element prefix if the namespace is same as inherited default namespace.:
FAIL
(Chrome:PASS
, Safari:FAIL
) - Check if start tag serialization takes into account of its xmlns:* attributes:
FAIL
(Chrome:PASS
, Safari:FAIL
) - Check if start tag serialization applied the original prefix even if it is declared in an ancestor element.:
FAIL
(Chrome:PASS
, Safari:PASS
) - Check if start tag serialization does NOT apply the default namespace if its namespace is declared in an ancestor.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Check if generated prefixes match to "ns${index}".:
FAIL
(Chrome:PASS
, Safari:PASS
) - Check if "ns1" is generated even if the element already has xmlns:ns1.:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - Check if no special handling for XLink namespace unlike HTML serializer.:
FAIL
(Chrome:PASS
, Safari:PASS
)
- Check if redundant xmlns="..." is dropped.:
Comment 4•17 days ago
|
||
bugherder |
Description
•