mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
Notes:
sideshowbarker
2024-07-19 05:39:54 +09:00
Author: https://github.com/awesomekling
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