mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +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);
|
HTMLElement::inserted_into(node);
|
||||||
|
|
||||||
if (rel() == "stylesheet")
|
if (rel().split_view(' ').contains_slow("stylesheet"))
|
||||||
load_stylesheet(document().complete_url(href()));
|
load_stylesheet(document().complete_url(href()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue