servo/components/script/dom/servoparser
Simon Wülker cbb0407ae6
Determine the initial state for fragment parsing using the scripting flag of the context element (#37704)
When parsing a html fragment, the initial parser state depends on
whether or not scripting is enabled. So far we've used the scripting
flag of the parser, but that is wrong - the parser's scripting flag is
always false, because the fragment document has no browsing context.
Instead we should use the scripting flag of the context element.

Testing: A new web platform test passes

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-06-26 20:40:13 +00:00
..
async_html.rs Determine the initial state for fragment parsing using the scripting flag of the context element (#37704) 2025-06-26 20:40:13 +00:00
html.rs Determine the initial state for fragment parsing using the scripting flag of the context element (#37704) 2025-06-26 20:40:13 +00:00
mod.rs Determine the initial state for fragment parsing using the scripting flag of the context element (#37704) 2025-06-26 20:40:13 +00:00
prefetch.rs Move CSP code into one entrypoint (#37604) 2025-06-24 08:50:30 +00:00
xml.rs Unify the way html5ever and xml5ever block on script elements (#36284) 2025-04-08 16:40:14 +00:00