mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
This patch ensures that the Servo HTML parser uses the appropriate `TreeBuilderOpts` settings as specified by the HTML specification. Changes: - **iframe_srcdoc:** Detect if the parsed document's URL scheme is `about:srcdoc`, and set the parser’s iframe_srcdoc option accordingly. - **quirks_mode:** Use the associated Document's quirks mode to set the parser’s quirks mode flag, improving fragment parsing behavior. - **scripting_enabled:** Add a `scripting_enabled` method to Document, based on whether it has a browsing context, and set this flag for the parser. These updates align Servo's parsing behavior more closely with the specification: https://html.spec.whatwg.org/multipage/parsing.html#the-initial-insertion-mode --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #35478 <!-- Either: --> - [ ] There are tests for these changes Signed-off-by: Emmanuel Elom <elomemmanuel007@gmail.com> |
||
---|---|---|
.. | ||
allocator | ||
background_hang_monitor | ||
bluetooth | ||
canvas | ||
compositing | ||
config | ||
constellation | ||
deny_public_fields | ||
devtools | ||
dom_struct | ||
domobject_derive | ||
fonts | ||
geometry | ||
hyper_serde | ||
jstraceable_derive | ||
layout | ||
malloc_size_of | ||
media | ||
metrics | ||
net | ||
pixels | ||
profile | ||
rand | ||
range | ||
script | ||
script_bindings | ||
servo | ||
servo_tracing | ||
shared | ||
timers | ||
url | ||
webdriver_server | ||
webgpu | ||
webxr |