-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Hi. Great work. I like this solution. I found a bug though. It looks like an easy fix.
At the following line, LINK is sometimes link. I'm not sure why, but it is.
Line 1574 in ba8c160
| if (el.tagName === "LINK") |
Which means I'm getting lots of duplicate <link /> elements in my <head>. Most importantly, not always, so my css is repeated, but out of order and cascaded styles break. Perhaps if you do an el.tagName.toUpperCase() here before the comparisons, that should fix the problem. I suspect if it's a problem with LINK, it could be a problem with STYLE and SCRIPT and the 9-10 other places in the script where el.tagName is compared directly to uppercase tag names.
Thank you again.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels