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 c11b196 commit 7c5c931
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3578,7 +3578,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 7c5c931

Please sign in to comment.