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:
parent
251ea54cc8
commit
fb727332f9
4 changed files with 42 additions and 9 deletions
|
@ -0,0 +1,7 @@
|
|||
.pass {
|
||||
display: block;
|
||||
}
|
||||
|
||||
div {
|
||||
display: none;
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
<head><link rel="stylesheet" href="style-sheet-with-byte-order-mark.css"></head><div class="pass">PASS
|
Loading…
Add table
Add a link
Reference in a new issue