Skip to content

Commit 8b3cf21

Browse files
committed
Fix nodeName comparison in insertStylesheetIntoRoot
1 parent 7039834 commit 8b3cf21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,7 @@ function insertStylesheetIntoRoot(
34143414
for (let i = 0; i < nodes.length; i++) {
34153415
const node = nodes[i];
34163416
if (
3417-
node.nodeName === 'link' ||
3417+
node.nodeName === 'LINK' ||
34183418
// We omit style tags with media="not all" because they are not in the right position
34193419
// and will be hoisted by the Fizz runtime imminently.
34203420
node.getAttribute('media') !== 'not all'

0 commit comments

Comments
 (0)