1
Fork 0
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:
Andreas Kling 2020-06-13 20:02:36 +02:00
parent d200385c1a
commit 2650005af8

View file

@ -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()));
}