Skip to content

Commit d95a982

Browse files
committed
add httpEquiv check for meta
1 parent d3268fa commit d95a982

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,9 @@ export function hydrateHoistable(
10101010
for (let i = 0; i < nodes.length; i++) {
10111011
const node = nodes[i];
10121012

1013+
// We coerce content to string because it is the most likely one to
1014+
// use a `toString` capable value. For the rest we just do identity match
1015+
// passing non-strings here is not really valid anyway.
10131016
if (__DEV__) {
10141017
checkAttributeStringCoercion(props.content, 'content');
10151018
}
@@ -1020,6 +1023,8 @@ export function hydrateHoistable(
10201023
(props.name == null ? null : props.name) ||
10211024
node.getAttribute('property') !==
10221025
(props.property == null ? null : props.property) ||
1026+
node.getAttribute('http-equiv') !==
1027+
(props.httpEquiv == null ? null : props.httpEquiv) ||
10231028
node.getAttribute('charset') !==
10241029
(props.charSet == null ? null : props.charSet)
10251030
) {

0 commit comments

Comments
 (0)