aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt
diff options
context:
space:
mode:
authorelomscansio <163124154+elomscansio@users.noreply.github.com>2025-03-27 18:20:42 +0100
committerGitHub <noreply@github.com>2025-03-27 17:20:42 +0000
commita8063b8b4b692a741f57fa69c58b4daa2f7d19f6 (patch)
tree4cd5f82e4730c47a3c0ea9179ede0bd332f7159c /tests/wpt
parentb4ac6e8ce22ebad509eea563f91dcdd9c231c83b (diff)
downloadservo-a8063b8b4b692a741f57fa69c58b4daa2f7d19f6.tar.gz
servo-a8063b8b4b692a741f57fa69c58b4daa2f7d19f6.zip
fix(parser): Set shadow’s available to element internals in attach_declarative_shadow (#36173)
Aligns the implementation with step 8.5 of the HTML spec for parsing a <template> element in the InHead state by setting shadow_root.set_available_to_element_internals(true) after assigning the shadow root to the template’s contents. Also removes tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-available-to-element-internals.html.ini since the test expectations are now updated accordingly. Spec reference: https://html.spec.whatwg.org/multipage/#parsing-main-inhead Signed-off-by: Emmanuel Elom <elomemmanuel007@gmail.com>
Diffstat (limited to 'tests/wpt')
-rw-r--r--tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-available-to-element-internals.html.ini3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-available-to-element-internals.html.ini b/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-available-to-element-internals.html.ini
deleted file mode 100644
index 1e5c4518079..00000000000
--- a/tests/wpt/meta/shadow-dom/declarative/declarative-shadow-dom-available-to-element-internals.html.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-[declarative-shadow-dom-available-to-element-internals.html]
- [Declarative Shadow DOM: shadow root should be available to element internals]
- expected: FAIL