mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:28:12 +00:00
LibWeb: <link rel> is actually a space-separated list of tokens
...so when we check for rel=stylesheet, we have to split it up into parts first. :^)
This commit is contained in:
parent
d200385c1a
commit
2650005af8
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void HTMLLinkElement::inserted_into(Node& node)
|
|||
{
|
||||
HTMLElement::inserted_into(node);
|
||||
|
||||
if (rel() == "stylesheet")
|
||||
if (rel().split_view(' ').contains_slow("stylesheet"))
|
||||
load_stylesheet(document().complete_url(href()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue