elomscansio
085ad9ea48
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 >
2025-04-27 20:23:22 +00:00
..
2025-04-23 15:29:01 +00:00
2025-03-30 11:06:30 +00:00
2025-04-27 20:23:22 +00:00
2025-04-07 19:48:05 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-19 08:33:11 +00:00
2025-04-05 22:13:29 +00:00
2025-03-03 11:26:53 +00:00
2025-04-06 23:26:15 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-04-19 11:49:37 +00:00
2025-03-10 19:43:04 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-03 11:26:53 +00:00
2025-02-04 06:58:08 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-13 18:10:04 +00:00
2025-03-12 00:02:12 +00:00
2025-03-16 13:46:14 +00:00
2025-04-23 13:05:41 +00:00
2025-04-05 22:13:29 +00:00
2025-03-25 19:24:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-03-16 13:46:14 +00:00
2025-04-06 23:44:58 +00:00
2025-03-03 11:26:53 +00:00
2025-04-14 13:49:43 +00:00
2025-03-30 11:06:30 +00:00
2025-04-06 23:47:57 +00:00
2025-03-12 00:02:12 +00:00
2025-01-10 08:19:19 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-01 19:18:07 +00:00
2025-02-20 16:17:45 +00:00
2025-04-01 19:18:07 +00:00
2025-02-20 16:17:45 +00:00
2025-03-05 08:39:11 +00:00
2025-03-05 08:39:11 +00:00
2025-04-01 19:18:07 +00:00
2025-03-19 18:03:09 +00:00
2025-03-05 08:39:11 +00:00
2025-02-20 16:17:45 +00:00
2025-04-01 11:20:46 +00:00
2025-04-01 11:20:46 +00:00
2025-04-15 14:05:13 +00:00
2025-04-02 13:54:42 +00:00
2025-04-06 23:44:58 +00:00
2025-04-23 15:29:01 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-04-19 11:49:37 +00:00
2025-03-31 17:15:48 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 12:17:25 +00:00
2025-03-19 18:03:09 +00:00
2025-04-21 12:47:06 +00:00
2025-02-25 03:58:36 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-08 02:33:21 +00:00
2025-04-27 20:23:22 +00:00
2025-04-08 02:33:21 +00:00
2025-04-05 22:13:29 +00:00
2025-04-08 02:33:21 +00:00
2025-04-23 15:29:01 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-05 05:38:24 +00:00
2025-04-23 13:05:41 +00:00
2025-04-23 13:05:41 +00:00
2025-03-03 11:26:53 +00:00
2025-04-08 02:33:21 +00:00
2025-04-02 14:50:56 +00:00
2025-04-08 02:33:21 +00:00
2025-03-03 11:26:53 +00:00
2025-04-08 02:33:21 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-04-21 06:56:40 +00:00
2025-04-13 05:15:07 +00:00
2025-03-31 17:15:48 +00:00
2025-04-06 23:26:15 +00:00
2025-04-13 20:54:59 +00:00
2025-04-17 21:11:25 +00:00
2025-03-12 00:02:12 +00:00
2025-03-19 18:03:09 +00:00
2025-04-11 17:59:03 +00:00
2025-03-10 03:55:38 +00:00
2025-04-13 01:41:39 +00:00
2025-03-03 11:26:53 +00:00
2025-03-31 17:15:48 +00:00
2025-03-13 10:28:11 +00:00
2025-02-23 12:12:21 +00:00
2025-04-11 17:59:03 +00:00
2025-04-02 14:50:56 +00:00
2025-03-16 13:46:14 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-19 18:03:09 +00:00
2025-03-10 19:43:04 +00:00
2025-04-25 19:59:44 +00:00
2025-02-08 08:16:21 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-05 22:13:29 +00:00
2025-04-13 05:15:07 +00:00
2025-04-13 05:15:07 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-26 19:44:12 +00:00
2025-04-13 07:10:00 +00:00
2025-01-18 21:36:15 +00:00
2025-04-13 07:10:00 +00:00
2025-04-13 07:10:00 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-13 07:10:00 +00:00
2025-04-19 11:49:37 +00:00
2025-04-13 07:10:00 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-06 06:27:59 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-04-19 11:49:37 +00:00
2025-04-11 06:21:50 +00:00
2025-03-29 13:09:56 +00:00
2025-03-19 07:57:43 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-04-06 06:27:59 +00:00
2025-01-18 21:36:15 +00:00
2025-04-21 06:56:40 +00:00
2025-04-11 06:21:50 +00:00
2025-04-19 11:49:37 +00:00
2025-04-11 06:32:34 +00:00
2025-01-18 21:36:15 +00:00
2025-04-15 14:05:13 +00:00
2025-01-18 21:36:15 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-04-19 11:49:37 +00:00
2025-01-18 21:36:15 +00:00
2025-03-29 13:09:56 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-01-18 21:36:15 +00:00
2025-04-20 01:46:09 +00:00
2025-03-16 13:46:14 +00:00
2025-03-03 11:26:53 +00:00
2025-04-17 06:41:23 +00:00
2025-01-10 08:19:19 +00:00
2025-04-04 17:06:34 +00:00
2025-03-18 11:09:44 +00:00
2025-03-18 11:09:44 +00:00
2025-01-10 08:19:19 +00:00
2025-04-05 22:13:29 +00:00
2025-04-21 06:56:40 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-15 14:05:13 +00:00
2025-03-03 11:26:53 +00:00
2025-03-10 09:44:16 +00:00
2025-03-12 00:02:12 +00:00
2025-04-05 22:13:29 +00:00
2025-03-03 11:26:53 +00:00
2025-03-16 13:46:14 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-01-18 21:36:15 +00:00
2025-03-03 11:26:53 +00:00
2025-03-19 18:03:09 +00:00
2025-04-23 13:05:41 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-04-14 13:49:43 +00:00
2025-04-05 22:13:29 +00:00
2025-04-19 11:49:37 +00:00
2025-03-03 11:26:53 +00:00
2025-04-11 06:21:50 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 01:34:13 +00:00
2025-04-01 22:59:50 +00:00
2025-04-24 12:01:51 +00:00
2025-03-03 12:17:25 +00:00
2025-03-12 00:02:12 +00:00
2025-04-13 20:54:59 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-04-23 07:32:47 +00:00
2025-03-16 13:46:14 +00:00
2025-03-12 00:02:12 +00:00
2025-04-01 11:22:00 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 15:36:52 +00:00
2025-03-16 13:46:14 +00:00
2025-03-26 12:12:44 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-30 11:06:30 +00:00
2025-03-16 13:46:14 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 11:20:25 +00:00
2025-03-12 00:02:12 +00:00
2025-01-10 08:19:19 +00:00
2025-04-13 01:41:39 +00:00
2025-04-09 16:35:35 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-04-06 06:27:59 +00:00
2025-03-12 00:02:12 +00:00
2025-03-17 22:29:41 +00:00
2025-04-23 13:05:41 +00:00
2025-03-17 22:29:41 +00:00
2025-03-16 13:46:14 +00:00
2025-03-17 22:29:41 +00:00
2025-03-28 12:39:42 +00:00
2025-03-17 22:29:41 +00:00
2025-04-05 05:38:24 +00:00
2025-03-31 16:01:16 +00:00
2025-03-19 18:03:09 +00:00
2025-03-03 11:26:53 +00:00
2025-04-25 08:49:21 +00:00
2025-04-05 22:13:29 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-15 18:31:46 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 11:26:53 +00:00
2025-04-05 22:13:29 +00:00
2025-04-05 22:13:29 +00:00
2025-04-21 03:32:21 +00:00
2025-04-05 22:13:29 +00:00
2025-04-05 22:13:29 +00:00
2025-03-29 13:09:56 +00:00
2025-01-10 08:19:19 +00:00
2025-03-16 13:46:14 +00:00
2025-04-05 22:13:29 +00:00
2025-03-12 00:02:12 +00:00
2025-03-12 00:02:12 +00:00
2025-02-23 00:34:51 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-16 13:46:14 +00:00
2025-04-19 11:49:37 +00:00
2025-03-12 00:02:12 +00:00
2025-04-19 11:49:37 +00:00
2025-04-05 22:13:29 +00:00
2025-03-03 11:26:53 +00:00
2025-03-22 19:55:27 +00:00
2025-03-22 19:55:27 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-22 19:55:27 +00:00
2025-03-22 19:55:27 +00:00
2025-01-18 21:36:15 +00:00
2025-04-04 19:42:28 +00:00
2025-03-03 11:26:53 +00:00
2025-02-05 12:51:34 +00:00
2025-04-06 06:27:59 +00:00
2025-01-30 11:15:35 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-02-23 00:34:51 +00:00
2025-03-03 11:26:53 +00:00
2025-04-02 14:50:56 +00:00
2025-03-12 00:02:12 +00:00
2025-03-03 12:17:25 +00:00
2025-04-05 13:08:56 +00:00
2025-04-05 13:08:56 +00:00
2025-04-21 06:56:40 +00:00
2025-04-21 06:56:40 +00:00
2025-04-21 06:56:40 +00:00
2025-03-12 00:02:12 +00:00
2025-04-15 07:39:26 +00:00
2025-03-03 11:26:53 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-27 03:00:08 +00:00
2025-03-29 13:09:56 +00:00
2025-04-03 12:11:55 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-29 13:09:56 +00:00
2025-02-20 16:17:45 +00:00
2025-04-02 14:50:56 +00:00
2025-04-02 14:50:56 +00:00
2025-04-23 07:32:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-12 00:02:12 +00:00
2025-03-13 10:28:11 +00:00
2025-01-10 08:19:19 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-23 07:32:47 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-04-13 20:54:59 +00:00
2025-01-10 08:19:19 +00:00
2025-04-27 10:43:05 +00:00
2025-04-05 22:13:29 +00:00
2025-04-13 20:54:59 +00:00
2025-04-21 12:47:06 +00:00
2025-03-03 11:26:53 +00:00
2025-04-19 01:34:13 +00:00
2025-03-03 11:26:53 +00:00
2025-04-21 03:32:21 +00:00
2025-04-23 13:05:41 +00:00
2025-04-22 06:49:18 +00:00
2025-03-18 11:13:09 +00:00
2025-04-15 17:12:48 +00:00
2025-04-15 17:12:48 +00:00
2025-01-10 08:19:19 +00:00
2025-02-20 16:17:45 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00
2025-03-03 11:26:53 +00:00