aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorelomscansio <163124154+elomscansio@users.noreply.github.com>2025-04-27 21:23:22 +0100
committerGitHub <noreply@github.com>2025-04-27 20:23:22 +0000
commit085ad9ea48c045cbdddad1d29cc021a8d56a94b9 (patch)
tree93cdd2a4d9ef5fb143098ed25df993a36b598734 /src/components
parent989739316e5be035366294f9c2eff24f87453def (diff)
downloadservo-085ad9ea48c045cbdddad1d29cc021a8d56a94b9.tar.gz
servo-085ad9ea48c045cbdddad1d29cc021a8d56a94b9.zip
script_thread: HTML parser doesn't set relevant option (#36622)
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>
Diffstat (limited to 'src/components')
0 files changed, 0 insertions, 0 deletions