Skip to content

Commit ed63850

Browse files
committed
Remove enableFilterEmptyStringAttributesDOM (#31765)
Base off #31764 This has landed everywhere DiffTrain build for [4996a8f](4996a8f)
1 parent b80e295 commit ed63850

23 files changed

+146
-158
lines changed

compiled-rn/VERSION_NATIVE_FB

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19.1.0-native-fb-3ad17ecd-20241213
1+
19.1.0-native-fb-4996a8fa-20241213

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b26bed9dabe71dce6d9cd996ad54622c>>
10+
* @generated SignedSource<<314020efbba006ecd14bc1c1bdc7f652>>
1111
*/
1212

1313
"use strict";
@@ -420,5 +420,5 @@ __DEV__ &&
420420
exports.useFormStatus = function () {
421421
return resolveDispatcher().useHostTransitionStatus();
422422
};
423-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
423+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";
424424
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<7075c20779eb1ff45a225ecfc634021e>>
10+
* @generated SignedSource<<0b3d2329f351915c3d76e5fd60256486>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
206+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<7075c20779eb1ff45a225ecfc634021e>>
10+
* @generated SignedSource<<0b3d2329f351915c3d76e5fd60256486>>
1111
*/
1212

1313
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
203203
exports.useFormStatus = function () {
204204
return ReactSharedInternals.H.useHostTransitionStatus();
205205
};
206-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
206+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<02c49e871b2dac43816ab6ccfc9a5544>>
10+
* @generated SignedSource<<46966fcc4d7ba85bcb36042400ef13ed>>
1111
*/
1212

1313
/*
@@ -19689,42 +19689,36 @@ __DEV__ &&
1968919689
}
1969019690
case "src":
1969119691
case "href":
19692-
if (
19693-
!(
19694-
"" !== propKey ||
19695-
("a" === tag && "href" === value) ||
19696-
("object" === tag && "data" === value)
19697-
)
19698-
) {
19699-
"src" === value
19700-
? error$jscomp$0(
19701-
'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.',
19702-
value,
19703-
value
19704-
)
19705-
: error$jscomp$0(
19706-
'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.',
19707-
value,
19708-
value
19709-
);
19710-
hydrateSanitizedAttribute(
19711-
domElement,
19712-
value,
19713-
value,
19714-
null,
19715-
extraAttributes,
19716-
serverDifferences
19717-
);
19718-
continue;
19719-
}
19720-
hydrateSanitizedAttribute(
19721-
domElement,
19722-
value,
19723-
value,
19724-
propKey,
19725-
extraAttributes,
19726-
serverDifferences
19727-
);
19692+
"" !== propKey ||
19693+
("a" === tag && "href" === value) ||
19694+
("object" === tag && "data" === value)
19695+
? hydrateSanitizedAttribute(
19696+
domElement,
19697+
value,
19698+
value,
19699+
propKey,
19700+
extraAttributes,
19701+
serverDifferences
19702+
)
19703+
: ("src" === value
19704+
? error$jscomp$0(
19705+
'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.',
19706+
value,
19707+
value
19708+
)
19709+
: error$jscomp$0(
19710+
'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.',
19711+
value,
19712+
value
19713+
),
19714+
hydrateSanitizedAttribute(
19715+
domElement,
19716+
value,
19717+
value,
19718+
null,
19719+
extraAttributes,
19720+
serverDifferences
19721+
));
1972819722
continue;
1972919723
case "action":
1973019724
case "formAction":
@@ -25898,11 +25892,11 @@ __DEV__ &&
2589825892
};
2589925893
(function () {
2590025894
var isomorphicReactPackageVersion = React.version;
25901-
if ("19.1.0-native-fb-3ad17ecd-20241213" !== isomorphicReactPackageVersion)
25895+
if ("19.1.0-native-fb-4996a8fa-20241213" !== isomorphicReactPackageVersion)
2590225896
throw Error(
2590325897
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2590425898
(isomorphicReactPackageVersion +
25905-
"\n - react-dom: 19.1.0-native-fb-3ad17ecd-20241213\nLearn more: https://react.dev/warnings/version-mismatch")
25899+
"\n - react-dom: 19.1.0-native-fb-4996a8fa-20241213\nLearn more: https://react.dev/warnings/version-mismatch")
2590625900
);
2590725901
})();
2590825902
("function" === typeof Map &&
@@ -25939,10 +25933,10 @@ __DEV__ &&
2593925933
!(function () {
2594025934
var internals = {
2594125935
bundleType: 1,
25942-
version: "19.1.0-native-fb-3ad17ecd-20241213",
25936+
version: "19.1.0-native-fb-4996a8fa-20241213",
2594325937
rendererPackageName: "react-dom",
2594425938
currentDispatcherRef: ReactSharedInternals,
25945-
reconcilerVersion: "19.1.0-native-fb-3ad17ecd-20241213"
25939+
reconcilerVersion: "19.1.0-native-fb-4996a8fa-20241213"
2594625940
};
2594725941
internals.overrideHookState = overrideHookState;
2594825942
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26088,5 +26082,5 @@ __DEV__ &&
2608826082
listenToAllSupportedEvents(container);
2608926083
return new ReactDOMHydrationRoot(initialChildren);
2609026084
};
26091-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
26085+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";
2609226086
})();

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<2c9ca489437718c32ad6d1d54f419fb4>>
10+
* @generated SignedSource<<b85702b5d222b41685e84421633ce308>>
1111
*/
1212

1313
/*
@@ -15869,14 +15869,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1586915869
};
1587015870
var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version;
1587115871
if (
15872-
"19.1.0-native-fb-3ad17ecd-20241213" !==
15872+
"19.1.0-native-fb-4996a8fa-20241213" !==
1587315873
isomorphicReactPackageVersion$jscomp$inline_1722
1587415874
)
1587515875
throw Error(
1587615876
formatProdErrorMessage(
1587715877
527,
1587815878
isomorphicReactPackageVersion$jscomp$inline_1722,
15879-
"19.1.0-native-fb-3ad17ecd-20241213"
15879+
"19.1.0-native-fb-4996a8fa-20241213"
1588015880
)
1588115881
);
1588215882
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15898,10 +15898,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1589815898
};
1589915899
var internals$jscomp$inline_2177 = {
1590015900
bundleType: 0,
15901-
version: "19.1.0-native-fb-3ad17ecd-20241213",
15901+
version: "19.1.0-native-fb-4996a8fa-20241213",
1590215902
rendererPackageName: "react-dom",
1590315903
currentDispatcherRef: ReactSharedInternals,
15904-
reconcilerVersion: "19.1.0-native-fb-3ad17ecd-20241213"
15904+
reconcilerVersion: "19.1.0-native-fb-4996a8fa-20241213"
1590515905
};
1590615906
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1590715907
var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16007,4 +16007,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1600716007
listenToAllSupportedEvents(container);
1600816008
return new ReactDOMHydrationRoot(initialChildren);
1600916009
};
16010-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
16010+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<8d91ea0d6cd6b7af45c684853e50500a>>
10+
* @generated SignedSource<<311a50e2e1b7a7f27a679edf407be5df>>
1111
*/
1212

1313
/*
@@ -16522,14 +16522,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1652216522
};
1652316523
var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version;
1652416524
if (
16525-
"19.1.0-native-fb-3ad17ecd-20241213" !==
16525+
"19.1.0-native-fb-4996a8fa-20241213" !==
1652616526
isomorphicReactPackageVersion$jscomp$inline_1812
1652716527
)
1652816528
throw Error(
1652916529
formatProdErrorMessage(
1653016530
527,
1653116531
isomorphicReactPackageVersion$jscomp$inline_1812,
16532-
"19.1.0-native-fb-3ad17ecd-20241213"
16532+
"19.1.0-native-fb-4996a8fa-20241213"
1653316533
)
1653416534
);
1653516535
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16551,10 +16551,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1655116551
};
1655216552
var internals$jscomp$inline_1819 = {
1655316553
bundleType: 0,
16554-
version: "19.1.0-native-fb-3ad17ecd-20241213",
16554+
version: "19.1.0-native-fb-4996a8fa-20241213",
1655516555
rendererPackageName: "react-dom",
1655616556
currentDispatcherRef: ReactSharedInternals,
16557-
reconcilerVersion: "19.1.0-native-fb-3ad17ecd-20241213",
16557+
reconcilerVersion: "19.1.0-native-fb-4996a8fa-20241213",
1655816558
getLaneLabelMap: function () {
1655916559
for (
1656016560
var map = new Map(), lane = 1, index$292 = 0;
@@ -16675,4 +16675,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1667516675
listenToAllSupportedEvents(container);
1667616676
return new ReactDOMHydrationRoot(initialChildren);
1667716677
};
16678-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
16678+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<09e52043c63ff1cf5b37b34434e006ad>>
10+
* @generated SignedSource<<4f6ee068d3051d5d8758a82270cf2384>>
1111
*/
1212

1313
/*
@@ -19701,42 +19701,36 @@ __DEV__ &&
1970119701
}
1970219702
case "src":
1970319703
case "href":
19704-
if (
19705-
!(
19706-
"" !== propKey ||
19707-
("a" === tag && "href" === value) ||
19708-
("object" === tag && "data" === value)
19709-
)
19710-
) {
19711-
"src" === value
19712-
? error$jscomp$0(
19713-
'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.',
19714-
value,
19715-
value
19716-
)
19717-
: error$jscomp$0(
19718-
'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.',
19719-
value,
19720-
value
19721-
);
19722-
hydrateSanitizedAttribute(
19723-
domElement,
19724-
value,
19725-
value,
19726-
null,
19727-
extraAttributes,
19728-
serverDifferences
19729-
);
19730-
continue;
19731-
}
19732-
hydrateSanitizedAttribute(
19733-
domElement,
19734-
value,
19735-
value,
19736-
propKey,
19737-
extraAttributes,
19738-
serverDifferences
19739-
);
19704+
"" !== propKey ||
19705+
("a" === tag && "href" === value) ||
19706+
("object" === tag && "data" === value)
19707+
? hydrateSanitizedAttribute(
19708+
domElement,
19709+
value,
19710+
value,
19711+
propKey,
19712+
extraAttributes,
19713+
serverDifferences
19714+
)
19715+
: ("src" === value
19716+
? error$jscomp$0(
19717+
'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.',
19718+
value,
19719+
value
19720+
)
19721+
: error$jscomp$0(
19722+
'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.',
19723+
value,
19724+
value
19725+
),
19726+
hydrateSanitizedAttribute(
19727+
domElement,
19728+
value,
19729+
value,
19730+
null,
19731+
extraAttributes,
19732+
serverDifferences
19733+
));
1974019734
continue;
1974119735
case "action":
1974219736
case "formAction":
@@ -25959,11 +25953,11 @@ __DEV__ &&
2595925953
};
2596025954
(function () {
2596125955
var isomorphicReactPackageVersion = React.version;
25962-
if ("19.1.0-native-fb-3ad17ecd-20241213" !== isomorphicReactPackageVersion)
25956+
if ("19.1.0-native-fb-4996a8fa-20241213" !== isomorphicReactPackageVersion)
2596325957
throw Error(
2596425958
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2596525959
(isomorphicReactPackageVersion +
25966-
"\n - react-dom: 19.1.0-native-fb-3ad17ecd-20241213\nLearn more: https://react.dev/warnings/version-mismatch")
25960+
"\n - react-dom: 19.1.0-native-fb-4996a8fa-20241213\nLearn more: https://react.dev/warnings/version-mismatch")
2596725961
);
2596825962
})();
2596925963
("function" === typeof Map &&
@@ -26000,10 +25994,10 @@ __DEV__ &&
2600025994
!(function () {
2600125995
var internals = {
2600225996
bundleType: 1,
26003-
version: "19.1.0-native-fb-3ad17ecd-20241213",
25997+
version: "19.1.0-native-fb-4996a8fa-20241213",
2600425998
rendererPackageName: "react-dom",
2600525999
currentDispatcherRef: ReactSharedInternals,
26006-
reconcilerVersion: "19.1.0-native-fb-3ad17ecd-20241213"
26000+
reconcilerVersion: "19.1.0-native-fb-4996a8fa-20241213"
2600726001
};
2600826002
internals.overrideHookState = overrideHookState;
2600926003
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26465,7 +26459,7 @@ __DEV__ &&
2646526459
exports.useFormStatus = function () {
2646626460
return resolveDispatcher().useHostTransitionStatus();
2646726461
};
26468-
exports.version = "19.1.0-native-fb-3ad17ecd-20241213";
26462+
exports.version = "19.1.0-native-fb-4996a8fa-20241213";
2646926463
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2647026464
"function" ===
2647126465
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)