Skip to content

Commit 52c966b

Browse files
committed
s/getRootNode/ownerDocument (#28412)
getRootNode isn't always available, use ownerDocument instead DiffTrain build for [e4b816b](e4b816b)
1 parent 0c056c9 commit 52c966b

23 files changed

+63
-59
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c0274063f0d625d6e17e82f3436f4a0b78b7e58f
1+
e4b816ba1a1ea7c1874cf3f82dd841830b71341a

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,4 +628,4 @@ exports.useSyncExternalStore = function (
628628
exports.useTransition = function () {
629629
return ReactCurrentDispatcher.current.useTransition();
630630
};
631-
exports.version = "18.3.0-www-classic-9dbcb358";
631+
exports.version = "18.3.0-www-classic-8284b06d";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,4 +620,4 @@ exports.useSyncExternalStore = function (
620620
exports.useTransition = function () {
621621
return ReactCurrentDispatcher.current.useTransition();
622622
};
623-
exports.version = "18.3.0-www-modern-e57a04c5";
623+
exports.version = "18.3.0-www-modern-eb7ac9a1";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ exports.useSyncExternalStore = function (
632632
exports.useTransition = function () {
633633
return ReactCurrentDispatcher.current.useTransition();
634634
};
635-
exports.version = "18.3.0-www-classic-1cd2cf0b";
635+
exports.version = "18.3.0-www-classic-9d08c2e5";
636636
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
637637
"function" ===
638638
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ exports.useSyncExternalStore = function (
624624
exports.useTransition = function () {
625625
return ReactCurrentDispatcher.current.useTransition();
626626
};
627-
exports.version = "18.3.0-www-modern-38dd62de";
627+
exports.version = "18.3.0-www-modern-df6fe9f7";
628628
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
629629
"function" ===
630630
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if (__DEV__) {
6666
return self;
6767
}
6868

69-
var ReactVersion = "18.3.0-www-modern-40531e1c";
69+
var ReactVersion = "18.3.0-www-modern-e9e265be";
7070

7171
var LegacyRoot = 0;
7272
var ConcurrentRoot = 1;

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35894,7 +35894,7 @@ if (__DEV__) {
3589435894
return root;
3589535895
}
3589635896

35897-
var ReactVersion = "18.3.0-www-classic-034651e2";
35897+
var ReactVersion = "18.3.0-www-classic-69ce38b6";
3589835898

3589935899
function createPortal$1(
3590035900
children,
@@ -42870,7 +42870,7 @@ if (__DEV__) {
4287042870
// as a shared module for that reason.
4287142871

4287242872
var EXPECTED_FORM_ACTION_URL = // eslint-disable-next-line no-script-url
42873-
"javascript:throw new Error('A React form was unexpectedly submitted.')";
42873+
"javascript:throw new Error('React form unexpectedly submitted.')";
4287442874

4287542875
function diffHydratedGenericElement(
4287642876
domElement,
@@ -47510,7 +47510,8 @@ if (__DEV__) {
4751047510

4751147511
{
4751247512
// Check the document if there are any queued form actions.
47513-
var root = unblocked.getRootNode();
47513+
// If there's no ownerDocument, then this is the document.
47514+
var root = unblocked.ownerDocument || unblocked;
4751447515
var formReplayingQueue = root.$$reactFormReplay;
4751547516

4751647517
if (formReplayingQueue != null) {

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35730,7 +35730,7 @@ if (__DEV__) {
3573035730
return root;
3573135731
}
3573235732

35733-
var ReactVersion = "18.3.0-www-modern-2a34a48e";
35733+
var ReactVersion = "18.3.0-www-modern-2372e606";
3573435734

3573535735
function createPortal$1(
3573635736
children,
@@ -37657,7 +37657,8 @@ if (__DEV__) {
3765737657

3765837658
{
3765937659
// Check the document if there are any queued form actions.
37660-
var root = unblocked.getRootNode();
37660+
// If there's no ownerDocument, then this is the document.
37661+
var root = unblocked.ownerDocument || unblocked;
3766137662
var formReplayingQueue = root.$$reactFormReplay;
3766237663

3766337664
if (formReplayingQueue != null) {
@@ -43511,7 +43512,7 @@ if (__DEV__) {
4351143512
// as a shared module for that reason.
4351243513

4351343514
var EXPECTED_FORM_ACTION_URL = // eslint-disable-next-line no-script-url
43514-
"javascript:throw new Error('A React form was unexpectedly submitted.')";
43515+
"javascript:throw new Error('React form unexpectedly submitted.')";
4351543516

4351643517
function diffHydratedGenericElement(
4351743518
domElement,

compiled/facebook-www/ReactDOM-prod.classic.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16690,7 +16690,7 @@ function retryIfBlockedOn(unblocked) {
1669016690
)
1669116691
attemptExplicitHydrationTarget(i),
1669216692
null === i.blockedOn && queuedExplicitHydrationTargets.shift();
16693-
i = unblocked.getRootNode().$$reactFormReplay;
16693+
i = (unblocked.ownerDocument || unblocked).$$reactFormReplay;
1669416694
if (null != i)
1669516695
for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) {
1669616696
var form = i[queuedTarget],
@@ -17161,7 +17161,7 @@ Internals.Events = [
1716117161
var devToolsConfig$jscomp$inline_1819 = {
1716217162
findFiberByHostInstance: getClosestInstanceFromNode,
1716317163
bundleType: 0,
17164-
version: "18.3.0-www-classic-f06ae05b",
17164+
version: "18.3.0-www-classic-380fe00f",
1716517165
rendererPackageName: "react-dom"
1716617166
};
1716717167
var internals$jscomp$inline_2179 = {
@@ -17191,7 +17191,7 @@ var internals$jscomp$inline_2179 = {
1719117191
scheduleRoot: null,
1719217192
setRefreshHandler: null,
1719317193
getCurrentFiber: null,
17194-
reconcilerVersion: "18.3.0-www-classic-f06ae05b"
17194+
reconcilerVersion: "18.3.0-www-classic-380fe00f"
1719517195
};
1719617196
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1719717197
var hook$jscomp$inline_2180 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17534,4 +17534,4 @@ exports.useFormState = function (action, initialState, permalink) {
1753417534
exports.useFormStatus = function () {
1753517535
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
1753617536
};
17537-
exports.version = "18.3.0-www-classic-f06ae05b";
17537+
exports.version = "18.3.0-www-classic-380fe00f";

compiled/facebook-www/ReactDOM-prod.modern.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12986,7 +12986,7 @@ function retryIfBlockedOn(unblocked) {
1298612986
)
1298712987
attemptExplicitHydrationTarget(i),
1298812988
null === i.blockedOn && queuedExplicitHydrationTargets.shift();
12989-
i = unblocked.getRootNode().$$reactFormReplay;
12989+
i = (unblocked.ownerDocument || unblocked).$$reactFormReplay;
1299012990
if (null != i)
1299112991
for (queuedTarget = 0; queuedTarget < i.length; queuedTarget += 3) {
1299212992
var form = i[queuedTarget],
@@ -16677,7 +16677,7 @@ Internals.Events = [
1667716677
var devToolsConfig$jscomp$inline_1778 = {
1667816678
findFiberByHostInstance: getClosestInstanceFromNode,
1667916679
bundleType: 0,
16680-
version: "18.3.0-www-modern-5cad22af",
16680+
version: "18.3.0-www-modern-e062351c",
1668116681
rendererPackageName: "react-dom"
1668216682
};
1668316683
var internals$jscomp$inline_2143 = {
@@ -16708,7 +16708,7 @@ var internals$jscomp$inline_2143 = {
1670816708
scheduleRoot: null,
1670916709
setRefreshHandler: null,
1671016710
getCurrentFiber: null,
16711-
reconcilerVersion: "18.3.0-www-modern-5cad22af"
16711+
reconcilerVersion: "18.3.0-www-modern-e062351c"
1671216712
};
1671316713
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1671416714
var hook$jscomp$inline_2144 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -16979,4 +16979,4 @@ exports.useFormState = function (action, initialState, permalink) {
1697916979
exports.useFormStatus = function () {
1698016980
return ReactCurrentDispatcher$2.current.useHostTransitionStatus();
1698116981
};
16982-
exports.version = "18.3.0-www-modern-5cad22af";
16982+
exports.version = "18.3.0-www-modern-e062351c";

0 commit comments

Comments
 (0)