mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
Bug 1528029 [wpt PR 15376] - Remove a special handling for XLink namespace in XMLSerializer, a=testonly
Automatic update from web-platform-tests Remove a special handling for XLink namespace in XMLSerializer The new behavior matches to the standard, Firefox, and Safari. Bug: 927626 Change-Id: Ifc6687992c10fbca13faaaeb4a56e59f5469f594 Reviewed-on: https://chromium-review.googlesource.com/c/1469843 Reviewed-by: Yoshifumi Inoue <yosin@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/master@{#631984} -- wpt-commits: 6fb30bc55bf721c87d2ff32640deefc1b01061ab wpt-pr: 15376
This commit is contained in:
parent
1bf4093b31
commit
0e36d28456
@ -152,6 +152,16 @@ test(function() {
|
|||||||
assert_equals(xmlString, '<root xmlns:ns2="uri2"><child xmlns:ns1="uri1" xmlns:ns1="uri3" ns1:attr1="value1"/></root>');
|
assert_equals(xmlString, '<root xmlns:ns2="uri2"><child xmlns:ns1="uri1" xmlns:ns1="uri3" ns1:attr1="value1"/></root>');
|
||||||
}, 'Check if "ns1" is generated even if the element already has xmlns:ns1.');
|
}, 'Check if "ns1" is generated even if the element already has xmlns:ns1.');
|
||||||
|
|
||||||
|
test(function() {
|
||||||
|
const root = (new Document()).createElement('root');
|
||||||
|
root.setAttributeNS('http://www.w3.org/1999/xlink', 'href', 'v');
|
||||||
|
assert_equals(serialize(root), '<root xmlns:ns1="http://www.w3.org/1999/xlink" ns1:href="v"/>');
|
||||||
|
|
||||||
|
const root2 = (new Document()).createElement('root');
|
||||||
|
root2.setAttributeNS('http://www.w3.org/1999/xlink', 'xl:type', 'v');
|
||||||
|
assert_equals(serialize(root2), '<root xmlns:xl="http://www.w3.org/1999/xlink" xl:type="v"/>');
|
||||||
|
}, 'Check if no special handling for XLink namespace unlike HTML serializer.');
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user