You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: compiled/facebook-www/ReactDOM-dev.classic.js
+39-37
Original file line number
Diff line number
Diff line change
@@ -13956,7 +13956,9 @@ __DEV__ &&
13956
13956
if (
13957
13957
((hoistableRoot = maybeNodes[i]),
13958
13958
hoistableRoot.getAttribute("href") ===
13959
-
(null == current.href ? null : current.href) &&
13959
+
(null == current.href || "" === current.href
13960
+
? null
13961
+
: current.href) &&
13960
13962
hoistableRoot.getAttribute("rel") ===
13961
13963
(null == current.rel ? null : current.rel) &&
13962
13964
hoistableRoot.getAttribute("title") ===
@@ -21219,36 +21221,34 @@ __DEV__ &&
21219
21221
}
21220
21222
case "src":
21221
21223
case "href":
21222
-
"" !== propKey ||
21223
-
("a" === tag && "href" === value) ||
21224
-
("object" === tag && "data" === value)
21225
-
? hydrateSanitizedAttribute(
21226
-
domElement,
21227
-
value,
21228
-
value,
21229
-
propKey,
21230
-
extraAttributes,
21231
-
serverDifferences
21232
-
)
21233
-
: ("src" === value
21234
-
? error$jscomp$0(
21235
-
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21236
-
value,
21237
-
value
21238
-
)
21239
-
: error$jscomp$0(
21240
-
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21241
-
value,
21242
-
value
21243
-
),
21244
-
hydrateSanitizedAttribute(
21245
-
domElement,
21246
-
value,
21247
-
value,
21248
-
null,
21249
-
extraAttributes,
21250
-
serverDifferences
21251
-
));
21224
+
if (
21225
+
!(
21226
+
"" !== propKey ||
21227
+
("a" === tag && "href" === value) ||
21228
+
("object" === tag && "data" === value)
21229
+
)
21230
+
) {
21231
+
"src" === value
21232
+
? error$jscomp$0(
21233
+
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21234
+
value,
21235
+
value
21236
+
)
21237
+
: error$jscomp$0(
21238
+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21239
+
value,
21240
+
value
21241
+
);
21242
+
continue;
21243
+
}
21244
+
hydrateSanitizedAttribute(
21245
+
domElement,
21246
+
value,
21247
+
value,
21248
+
propKey,
21249
+
extraAttributes,
21250
+
serverDifferences
21251
+
);
21252
21252
continue;
21253
21253
case "action":
21254
21254
case "formAction":
@@ -21875,7 +21875,9 @@ __DEV__ &&
21875
21875
else if (
21876
21876
name !== anyProps.rel ||
21877
21877
instance.getAttribute("href") !==
21878
-
(null == anyProps.href ? null : anyProps.href) ||
21878
+
(null == anyProps.href || "" === anyProps.href
21879
+
? null
21880
+
: anyProps.href) ||
21879
21881
instance.getAttribute("crossorigin") !==
21880
21882
(null == anyProps.crossOrigin
21881
21883
? null
@@ -27401,11 +27403,11 @@ __DEV__ &&
27401
27403
return_targetInst = null;
27402
27404
(function () {
27403
27405
var isomorphicReactPackageVersion = React.version;
27404
-
if ("19.1.0-www-classic-3b009b4c-20250102" !== isomorphicReactPackageVersion)
27406
+
if ("19.1.0-www-classic-bf883beb-20250103" !== isomorphicReactPackageVersion)
27405
27407
throw Error(
27406
27408
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
Copy file name to clipboardexpand all lines: compiled/facebook-www/ReactDOM-dev.modern.js
+39-37
Original file line number
Diff line number
Diff line change
@@ -13755,7 +13755,9 @@ __DEV__ &&
13755
13755
if (
13756
13756
((hoistableRoot = maybeNodes[i]),
13757
13757
hoistableRoot.getAttribute("href") ===
13758
-
(null == current.href ? null : current.href) &&
13758
+
(null == current.href || "" === current.href
13759
+
? null
13760
+
: current.href) &&
13759
13761
hoistableRoot.getAttribute("rel") ===
13760
13762
(null == current.rel ? null : current.rel) &&
13761
13763
hoistableRoot.getAttribute("title") ===
@@ -21006,36 +21008,34 @@ __DEV__ &&
21006
21008
}
21007
21009
case "src":
21008
21010
case "href":
21009
-
"" !== propKey ||
21010
-
("a" === tag && "href" === value) ||
21011
-
("object" === tag && "data" === value)
21012
-
? hydrateSanitizedAttribute(
21013
-
domElement,
21014
-
value,
21015
-
value,
21016
-
propKey,
21017
-
extraAttributes,
21018
-
serverDifferences
21019
-
)
21020
-
: ("src" === value
21021
-
? error$jscomp$0(
21022
-
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21023
-
value,
21024
-
value
21025
-
)
21026
-
: error$jscomp$0(
21027
-
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21028
-
value,
21029
-
value
21030
-
),
21031
-
hydrateSanitizedAttribute(
21032
-
domElement,
21033
-
value,
21034
-
value,
21035
-
null,
21036
-
extraAttributes,
21037
-
serverDifferences
21038
-
));
21011
+
if (
21012
+
!(
21013
+
"" !== propKey ||
21014
+
("a" === tag && "href" === value) ||
21015
+
("object" === tag && "data" === value)
21016
+
)
21017
+
) {
21018
+
"src" === value
21019
+
? error$jscomp$0(
21020
+
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21021
+
value,
21022
+
value
21023
+
)
21024
+
: error$jscomp$0(
21025
+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
21026
+
value,
21027
+
value
21028
+
);
21029
+
continue;
21030
+
}
21031
+
hydrateSanitizedAttribute(
21032
+
domElement,
21033
+
value,
21034
+
value,
21035
+
propKey,
21036
+
extraAttributes,
21037
+
serverDifferences
21038
+
);
21039
21039
continue;
21040
21040
case "action":
21041
21041
case "formAction":
@@ -21662,7 +21662,9 @@ __DEV__ &&
21662
21662
else if (
21663
21663
name !== anyProps.rel ||
21664
21664
instance.getAttribute("href") !==
21665
-
(null == anyProps.href ? null : anyProps.href) ||
21665
+
(null == anyProps.href || "" === anyProps.href
21666
+
? null
21667
+
: anyProps.href) ||
21666
21668
instance.getAttribute("crossorigin") !==
21667
21669
(null == anyProps.crossOrigin
21668
21670
? null
@@ -27180,11 +27182,11 @@ __DEV__ &&
27180
27182
return_targetInst = null;
27181
27183
(function () {
27182
27184
var isomorphicReactPackageVersion = React.version;
27183
-
if ("19.1.0-www-modern-3b009b4c-20250102" !== isomorphicReactPackageVersion)
27185
+
if ("19.1.0-www-modern-bf883beb-20250103" !== isomorphicReactPackageVersion)
27184
27186
throw Error(
27185
27187
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
0 commit comments