File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
packages/react-dom-bindings/src/client Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1010,6 +1010,9 @@ export function hydrateHoistable(
1010
1010
for ( let i = 0 ; i < nodes . length ; i ++ ) {
1011
1011
const node = nodes [ i ] ;
1012
1012
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.
1013
1016
if ( __DEV__ ) {
1014
1017
checkAttributeStringCoercion ( props . content , 'content' ) ;
1015
1018
}
@@ -1020,6 +1023,8 @@ export function hydrateHoistable(
1020
1023
( props . name == null ? null : props . name ) ||
1021
1024
node . getAttribute ( 'property' ) !==
1022
1025
( props . property == null ? null : props . property ) ||
1026
+ node . getAttribute ( 'http-equiv' ) !==
1027
+ ( props . httpEquiv == null ? null : props . httpEquiv ) ||
1023
1028
node . getAttribute ( 'charset' ) !==
1024
1029
( props . charSet == null ? null : props . charSet )
1025
1030
) {
You can’t perform that action at this time.
0 commit comments