Andreas Kling
22a858a0cb
LibWeb: Don't parse inline style sheets during HTML fragment parsing
...
Some websites (like Reddit) like to instantiate "components" by setting
innerHTML to a huge chunk of stuff. Sometimes those huge chunks of stuff
contain inline style sheets (i.e `<style>` elements).
Before this change, we would end up parsing the CSS in those elements
multiple times, because we had no way of knowing that we were within
a fragment parser's temporary document.
This patch avoids the extra CSS parsing work by adding adding a flag to
Document that tells us it's being used by the fragment parser. Then, we
simply avoid parsing CSS for style elements in such documents. The CSS
then gets parsed immediately upon insertion into the proper DOM.
2023-08-09 17:09:28 +02:00
..
2023-08-09 05:48:32 +02:00
2023-08-09 17:09:16 +02:00
2023-08-04 11:05:55 +02:00
2023-08-09 17:09:28 +02:00
2023-08-09 17:09:16 +02:00
2023-08-07 16:03:27 +02:00
2023-08-07 16:03:27 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:37:21 +02:00
2023-07-08 10:32:56 +01:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-09 05:48:32 +02:00
2023-08-09 05:48:32 +02:00
2023-08-05 17:17:08 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-07 16:03:27 +02:00
2023-08-07 16:03:27 +02:00
2023-06-19 06:12:26 +02:00
2023-08-07 16:03:27 +02:00
2023-06-19 06:12:26 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-18 19:07:06 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-04 11:05:55 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-21 16:30:27 +02:00
2023-06-21 16:30:27 +02:00
2023-06-21 16:30:27 +02:00
2023-08-08 13:07:13 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-19 06:12:26 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-07-31 05:18:51 +02:00
2023-06-19 06:12:26 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-16 13:50:15 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-14 14:23:17 +02:00
2023-06-14 14:23:17 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-23 16:20:29 +02:00
2023-07-08 10:32:56 +01:00
2023-07-31 05:18:51 +02:00
2023-07-11 06:48:25 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-07-31 05:18:51 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-07-08 10:32:56 +01:00
2023-07-08 10:32:56 +01:00
2023-06-14 14:23:17 +02:00
2023-06-14 14:23:17 +02:00
2023-07-29 11:58:51 +02:00
2023-07-29 11:58:51 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-09 17:09:16 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-07 16:03:27 +02:00
2023-08-07 16:03:27 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-06-14 17:54:40 +02:00
2023-07-11 09:38:37 +03:30
2023-07-08 10:32:56 +01:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 14:58:26 +02:00
2023-08-06 16:29:24 +02:00
2023-08-06 16:29:24 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-07-25 15:45:44 +02:00
2023-07-09 12:54:06 +02:00
2023-08-09 17:09:16 +02:00
2023-08-08 13:07:13 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00
2023-07-31 05:18:51 +02:00
2023-08-08 07:39:11 +02:00
2023-08-08 07:39:11 +02:00