Skip to content

Commit 4298ddb

Browse files
authored
fix passing strings as chunks (#22617)
1 parent 90e5d36 commit 4298ddb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/react-dom/src/server/ReactDOMServerFormatConfig.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ function pushAttribute(
471471
attributeSeparator,
472472
attributeNameChunk,
473473
attributeAssign,
474-
escapeTextForBrowser(value),
474+
stringToChunk(escapeTextForBrowser(value)),
475475
attributeEnd,
476476
);
477477
}
@@ -482,7 +482,7 @@ function pushAttribute(
482482
attributeSeparator,
483483
attributeNameChunk,
484484
attributeAssign,
485-
escapeTextForBrowser(value),
485+
stringToChunk(escapeTextForBrowser(value)),
486486
attributeEnd,
487487
);
488488
}
@@ -493,7 +493,7 @@ function pushAttribute(
493493
attributeSeparator,
494494
attributeNameChunk,
495495
attributeAssign,
496-
escapeTextForBrowser(value),
496+
stringToChunk(escapeTextForBrowser(value)),
497497
attributeEnd,
498498
);
499499
}
@@ -510,7 +510,7 @@ function pushAttribute(
510510
attributeSeparator,
511511
attributeNameChunk,
512512
attributeAssign,
513-
escapeTextForBrowser(value),
513+
stringToChunk(escapeTextForBrowser(value)),
514514
attributeEnd,
515515
);
516516
}
@@ -532,7 +532,7 @@ function pushAttribute(
532532
attributeSeparator,
533533
stringToChunk(name),
534534
attributeAssign,
535-
escapeTextForBrowser(value),
535+
stringToChunk(escapeTextForBrowser(value)),
536536
attributeEnd,
537537
);
538538
}
@@ -1146,7 +1146,7 @@ function pushStartCustomElement(
11461146
attributeSeparator,
11471147
stringToChunk(propKey),
11481148
attributeAssign,
1149-
escapeTextForBrowser(propValue),
1149+
stringToChunk(escapeTextForBrowser(propValue)),
11501150
attributeEnd,
11511151
);
11521152
}

0 commit comments

Comments
 (0)