From 89944512a27f1920ae5000c15e6b4f6fa9ca3bee Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Mon, 13 Mar 2023 18:34:16 +0000 Subject: [PATCH] Allow empty string to be passed to formAction (#26379) We disallow empty strings for `href` and `src` since they're common mistakes that end up loading the current page as a preload, image or link. We also disallow it for `action`. You have to pass `null` which is the same. However, for `formAction` passing `null` is not the same as passing empty string. Passing empty string overrides the form's action to be the current page even if the form's action was set to something else. There's no easy way to express the same thing `#` show up in the user visible URLs and `?` clears the search params. Since this is also not a common mistake, we can just allow this. DiffTrain build for [2788d0d8dd95ed57e2dbb148853fe69010e992fe](https://github.com/facebook/react/commit/2788d0d8dd95ed57e2dbb148853fe69010e992fe) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 2 +- compiled/facebook-www/ReactART-prod.modern.js | 4 ++-- compiled/facebook-www/ReactDOM-dev.classic.js | 15 +++++++++++++-- compiled/facebook-www/ReactDOM-dev.modern.js | 15 +++++++++++++-- compiled/facebook-www/ReactDOM-prod.classic.js | 17 +++++++++++++---- compiled/facebook-www/ReactDOM-prod.modern.js | 17 +++++++++++++---- .../facebook-www/ReactDOM-profiling.classic.js | 17 +++++++++++++---- .../facebook-www/ReactDOM-profiling.modern.js | 17 +++++++++++++---- .../facebook-www/ReactDOMServer-dev.classic.js | 15 +++++++++++++-- .../facebook-www/ReactDOMServer-dev.modern.js | 15 +++++++++++++-- .../facebook-www/ReactDOMServer-prod.classic.js | 13 +++++++++++-- .../facebook-www/ReactDOMServer-prod.modern.js | 13 +++++++++++-- .../ReactDOMServerStreaming-dev.modern.js | 13 ++++++++++++- .../ReactDOMServerStreaming-prod.modern.js | 11 ++++++++++- .../facebook-www/ReactDOMTesting-dev.classic.js | 15 +++++++++++++-- .../facebook-www/ReactDOMTesting-dev.modern.js | 15 +++++++++++++-- .../ReactDOMTesting-prod.classic.js | 17 +++++++++++++---- .../facebook-www/ReactDOMTesting-prod.modern.js | 17 +++++++++++++---- .../ReactFlightDOMRelayServer-dev.classic.js | 12 +++++++++++- .../ReactFlightDOMRelayServer-dev.modern.js | 12 +++++++++++- .../ReactFlightDOMRelayServer-prod.classic.js | 3 ++- .../ReactFlightDOMRelayServer-prod.modern.js | 3 ++- .../ReactTestRenderer-dev.modern.js | 2 +- 25 files changed, 232 insertions(+), 52 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 18ef9b5e3c67c..ee73d4c05aa95 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -131768166b60b3bc271b54a3f93f011f310519de +2788d0d8dd95ed57e2dbb148853fe69010e992fe diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 7c618e865cf27..3ca572e53db01 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -27,7 +27,7 @@ if ( } "use strict"; -var ReactVersion = "18.3.0-www-modern-052eefbf"; +var ReactVersion = "18.3.0-www-modern-f236d170"; // ATTENTION // When adding new symbols to this file, diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 6d10ddc7241b7..3767cfd623f49 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -69,7 +69,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = "18.3.0-www-classic-e28878a7"; +var ReactVersion = "18.3.0-www-classic-dd1bbdc2"; var LegacyRoot = 0; var ConcurrentRoot = 1; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index dffd96807eed9..00a3b1bbd68d6 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -9555,7 +9555,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "18.3.0-www-modern-10cf7e02", + version: "18.3.0-www-modern-6722015e", rendererPackageName: "react-art" }; var internals$jscomp$inline_1283 = { @@ -9586,7 +9586,7 @@ var internals$jscomp$inline_1283 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-10cf7e02" + reconcilerVersion: "18.3.0-www-modern-6722015e" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1284 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 956c6d59af3a9..315896516aa65 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -1811,7 +1811,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, @@ -42601,7 +42612,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-bab45118"; +var ReactVersion = "18.3.0-www-classic-e6bf1439"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index eef7abfe40a02..dbc82e4a221de 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -1207,7 +1207,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, @@ -42205,7 +42216,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-10cf7e02"; +var ReactVersion = "18.3.0-www-modern-6722015e"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index bba62558a12ab..60b86d678834a 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -595,7 +595,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -15716,7 +15725,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1761 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-a5e3f87b", + version: "18.3.0-www-classic-90a2338a", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2156 = { @@ -15746,7 +15755,7 @@ var internals$jscomp$inline_2156 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-a5e3f87b" + reconcilerVersion: "18.3.0-www-classic-90a2338a" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2157 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16002,4 +16011,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-a5e3f87b"; +exports.version = "18.3.0-www-classic-90a2338a"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 5674a2d16657d..39feffdfb8f80 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -409,7 +409,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -15243,7 +15252,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1720 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-46c135c4", + version: "18.3.0-www-modern-8420e676", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2120 = { @@ -15274,7 +15283,7 @@ var internals$jscomp$inline_2120 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-46c135c4" + reconcilerVersion: "18.3.0-www-modern-8420e676" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2121 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15459,4 +15468,4 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-46c135c4"; +exports.version = "18.3.0-www-modern-8420e676"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 17afd3feb51cf..bc7224a484906 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -609,7 +609,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -16493,7 +16502,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1841 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-471dc273", + version: "18.3.0-www-classic-ac5c9cb7", rendererPackageName: "react-dom" }; (function (internals) { @@ -16537,7 +16546,7 @@ var devToolsConfig$jscomp$inline_1841 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-471dc273" + reconcilerVersion: "18.3.0-www-classic-ac5c9cb7" }); assign(Internals, { ReactBrowserEventEmitter: { @@ -16780,7 +16789,7 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-471dc273"; +exports.version = "18.3.0-www-classic-ac5c9cb7"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 657431eb72aef..b5ed2e163bbe2 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -423,7 +423,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -16010,7 +16019,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1800 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-2d8a876e", + version: "18.3.0-www-modern-0b070620", rendererPackageName: "react-dom" }; (function (internals) { @@ -16055,7 +16064,7 @@ var devToolsConfig$jscomp$inline_1800 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-2d8a876e" + reconcilerVersion: "18.3.0-www-modern-0b070620" }); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = function (children, container) { @@ -16227,7 +16236,7 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-2d8a876e"; +exports.version = "18.3.0-www-modern-0b070620"; /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */ if ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index b8d0d0e3f8e59..6f80276c9e989 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-classic-de517acf"; +var ReactVersion = "18.3.0-www-classic-6c50c84e"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -739,7 +739,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 36871e47c5c56..786342eacd3e2 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); -var ReactVersion = "18.3.0-www-modern-ef6ae966"; +var ReactVersion = "18.3.0-www-modern-0898b5b3"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -739,7 +739,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index f4efacc96d6c5..a05219d160b7f 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -209,7 +209,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -3797,4 +3806,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "18.3.0-www-classic-0c26a784"; +exports.version = "18.3.0-www-classic-c710ea2f"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 6b0e6dd48e2c5..2ecb3e4b73ca1 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -208,7 +208,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -3695,4 +3704,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "18.3.0-www-modern-b92877ae"; +exports.version = "18.3.0-www-modern-3593be7c"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index 46e7536c1017f..bfa5408074dfc 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -736,7 +736,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 9dcc3556ff06d..7de73c1072516 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -196,7 +196,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 9af6a9b37c4ea..da7f7d4e959cb 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -1854,7 +1854,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, @@ -31647,7 +31658,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-classic-9a02c30a"; +var ReactVersion = "18.3.0-www-classic-87f4bed4"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 85078ff8d4f89..cd5a97a05bb50 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -1268,7 +1268,18 @@ properties[xlinkHref] = new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +var formAction = "formAction"; // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions + +properties[formAction] = new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions properties[attributeName] = new PropertyInfoRecord( attributeName, @@ -38221,7 +38232,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-915078f5"; +var ReactVersion = "18.3.0-www-modern-067984be"; function createPortal$1( children, diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 84adcdbf85b36..629401d89718e 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -638,7 +638,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -11729,7 +11738,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1552 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-classic-e28878a7", + version: "18.3.0-www-classic-dd1bbdc2", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2106 = { @@ -11759,7 +11768,7 @@ var internals$jscomp$inline_2106 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-classic-e28878a7" + reconcilerVersion: "18.3.0-www-classic-dd1bbdc2" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2107 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -15008,4 +15017,4 @@ exports.unstable_renderSubtreeIntoContainer = function ( ); }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-classic-e28878a7"; +exports.version = "18.3.0-www-classic-dd1bbdc2"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index a3e947b727b8f..4c391d2e9f754 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -458,7 +458,16 @@ properties.xlinkHref = new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +properties.formAction = new PropertyInfoRecord( + "formAction", + 1, + !1, + "formaction", + null, + !0, + !1 +); +["src", "href", "action"].forEach(function (attributeName) { properties[attributeName] = new PropertyInfoRecord( attributeName, 1, @@ -14105,7 +14114,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1672 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "18.3.0-www-modern-052eefbf", + version: "18.3.0-www-modern-f236d170", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2080 = { @@ -14136,7 +14145,7 @@ var internals$jscomp$inline_2080 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "18.3.0-www-modern-052eefbf" + reconcilerVersion: "18.3.0-www-modern-f236d170" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2081 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -14464,4 +14473,4 @@ exports.unstable_flushControlled = function (fn) { } }; exports.unstable_runWithPriority = runWithPriority; -exports.version = "18.3.0-www-modern-052eefbf"; +exports.version = "18.3.0-www-modern-f236d170"; diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js index 77fe5e4190483..fc2a98b1e649f 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js @@ -615,7 +615,17 @@ new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { + +new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions new PropertyInfoRecord( attributeName, diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js index 2dbe2b8587c28..f3812c363fbd7 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js @@ -615,7 +615,17 @@ new PropertyInfoRecord( true, // sanitizeURL false ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { + +new PropertyInfoRecord( + "formAction", + STRING, + false, // mustUseProperty + "formaction", // attributeName + null, // attributeNamespace + true, // sanitizeURL + false +); +["src", "href", "action"].forEach(function (attributeName) { // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions new PropertyInfoRecord( attributeName, diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js index 6e4406be9becc..2980dfbf843a3 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.classic.js @@ -182,7 +182,8 @@ new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +new PropertyInfoRecord("formAction", 1, !1, "formaction", null, !0, !1); +["src", "href", "action"].forEach(function (attributeName) { new PropertyInfoRecord( attributeName, 1, diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js index 6e4406be9becc..2980dfbf843a3 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-prod.modern.js @@ -182,7 +182,8 @@ new PropertyInfoRecord( !0, !1 ); -["src", "href", "action", "formAction"].forEach(function (attributeName) { +new PropertyInfoRecord("formAction", 1, !1, "formaction", null, !0, !1); +["src", "href", "action"].forEach(function (attributeName) { new PropertyInfoRecord( attributeName, 1, diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 5badcfcd7189d..da9c8f2122427 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -23954,7 +23954,7 @@ function createFiberRoot( return root; } -var ReactVersion = "18.3.0-www-modern-052eefbf"; +var ReactVersion = "18.3.0-www-modern-f236d170"; // Might add PROFILE later.