1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:18:14 +00:00

LibWeb: Decode linked style sheets before parsing them

This fixes an issue where a BOM at the head of a style sheet would be
passed verbatim to the parser, who would then interpret it as an ident
token and (after some confusion) fail to parse the first rule, but then
carry on with the rest of the sheet.
This commit is contained in:
Andreas Kling 2023-07-04 09:50:47 +02:00
parent 251ea54cc8
commit fb727332f9
4 changed files with 42 additions and 9 deletions

View file

@ -0,0 +1,7 @@
.pass {
display: block;
}
div {
display: none;
}

View file

@ -0,0 +1 @@
<head><link rel="stylesheet" href="style-sheet-with-byte-order-mark.css"></head><div class="pass">PASS