servo/components/script/dom/servoparser
elomscansio a8063b8b4b
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>
2025-03-27 17:20:42 +00:00
..
async_html.rs Don't run scripts in documents that don't have a browsing context (#35871) 2025-03-10 16:34:09 +00:00
html.rs script: Implement Element::GetHTML and ShadowRoot::GetHTML (#36106) 2025-03-23 19:04:23 +00:00
mod.rs fix(parser): Set shadow’s available to element internals in attach_declarative_shadow (#36173) 2025-03-27 17:20:42 +00:00
prefetch.rs Move CustomTraceable to script_bindings. (#35988) 2025-03-16 14:08:22 +00:00
xml.rs Move CustomTraceable to script_bindings. (#35988) 2025-03-16 14:08:22 +00:00