commit 02faa09f39ff37bf0cb3d6ba280a226cabf6a8b1
parent 0affd6b001c609298d117d93f6ce1a5336d104f1
Author: David Baron <dbaron@chromium.org>
Date: Fri, 7 Nov 2025 09:02:49 +0000
Bug 1998627 [wpt PR 55903] - Fix error in recently-added test of XML fragment parsing., a=testonly
Automatic update from web-platform-tests
Fix error in recently-added test of XML fragment parsing.
A few tests had the test assertions examining the wrong element (rather
than the one that the test was using).
Bug: 441911594
Change-Id: I302eed6bfeac98171fc0f91607c87282c4c4031c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7124591
Auto-Submit: David Baron <dbaron@chromium.org>
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Dominik Röttsches <drott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1541088}
--
wpt-commits: 0cc68e3d6fd14071211ef34338b96ce7b1f723db
wpt-pr: 55903
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/testing/web-platform/tests/html/webappapis/dynamic-markup-insertion/the-innerhtml-property/innerhtml-and-xml-namespaces.svg b/testing/web-platform/tests/html/webappapis/dynamic-markup-insertion/the-innerhtml-property/innerhtml-and-xml-namespaces.svg
@@ -46,17 +46,17 @@
test(() => {
unprefixedContainer.innerHTML = "<e></e>";
- assert_equals(prefixedContainer.firstChild.namespaceURI, SVG_NS);
+ assert_equals(unprefixedContainer.firstChild.namespaceURI, SVG_NS);
}, "default namespace applies to children of default-namespaced element");
test(() => {
noDefaultNsContainer.innerHTML = "<e></e>";
- assert_equals(prefixedContainer.firstChild.namespaceURI, null);
+ assert_equals(noDefaultNsContainer.firstChild.namespaceURI, null);
}, "default namespace applies to children of non-namespaced element");
test(() => {
newDefaultNsContainer.innerHTML = "<e></e>";
- assert_equals(prefixedContainer.firstChild.namespaceURI, "https://example.org/ns");
+ assert_equals(newDefaultNsContainer.firstChild.namespaceURI, "https://example.org/ns");
}, "default namespace applies to children of namespaced element with new default namespace");
test(() => {