Skip to content

Commit

Permalink
Fix nodeName comparison in insertStylesheetIntoRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetliquid committed May 7, 2024
1 parent 7039834 commit 8b3cf21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3414,7 +3414,7 @@ function insertStylesheetIntoRoot(
for (let i = 0; i < nodes.length; i++) {
const node = nodes[i];
if (
node.nodeName === 'link' ||
node.nodeName === 'LINK' ||
// We omit style tags with media="not all" because they are not in the right position
// and will be hoisted by the Fizz runtime imminently.
node.getAttribute('media') !== 'not all'
Expand Down

0 comments on commit 8b3cf21

Please sign in to comment.