diff --git a/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js b/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
index 1c7ab533edf89..13774ec2de075 100644
--- a/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
+++ b/packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js
@@ -117,10 +117,6 @@ describe('ReactDOMFizzServer', () => {
// We assume this is a React added ID that's a non-visual implementation detail.
continue;
}
- if (attributes[i].name === 'data-reactroot') {
- // We ignore React injected attributes.
- continue;
- }
props[attributes[i].name] = attributes[i].value;
}
props.children = getVisibleChildren(node);
diff --git a/packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js b/packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js
index 71c301134dd07..c813b6f55858a 100644
--- a/packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js
+++ b/packages/react-dom/src/__tests__/ReactDOMFizzServerBrowser-test.js
@@ -55,9 +55,7 @@ describe('ReactDOMFizzServer', () => {
hello world
,
);
const result = await readResult(stream);
- expect(result).toMatchInlineSnapshot(
- `"hello world
"`,
- );
+ expect(result).toMatchInlineSnapshot(`"hello world
"`);
});
// @gate experimental
@@ -96,7 +94,7 @@ describe('ReactDOMFizzServer', () => {
const result = await readResult(stream);
expect(result).toMatchInlineSnapshot(
- `"Done
"`,
+ `"Done
"`,
);
});
diff --git a/packages/react-dom/src/__tests__/ReactDOMFizzServerNode-test.js b/packages/react-dom/src/__tests__/ReactDOMFizzServerNode-test.js
index 464ee488d25cb..7afc45aa4a5b5 100644
--- a/packages/react-dom/src/__tests__/ReactDOMFizzServerNode-test.js
+++ b/packages/react-dom/src/__tests__/ReactDOMFizzServerNode-test.js
@@ -65,9 +65,7 @@ describe('ReactDOMFizzServer', () => {
);
startWriting();
jest.runAllTimers();
- expect(output.result).toMatchInlineSnapshot(
- `"hello world
"`,
- );
+ expect(output.result).toMatchInlineSnapshot(`"hello world
"`);
});
// @gate experimental
@@ -84,7 +82,7 @@ describe('ReactDOMFizzServer', () => {
// Then React starts writing.
startWriting();
expect(output.result).toMatchInlineSnapshot(
- `"testhello world
"`,
+ `"testhello world
"`,
);
});
@@ -132,7 +130,7 @@ describe('ReactDOMFizzServer', () => {
// Then React starts writing.
startWriting();
expect(output.result).toMatchInlineSnapshot(
- `"testDone
"`,
+ `"testDone
"`,
);
});
diff --git a/packages/react-dom/src/server/ReactDOMServerFormatConfig.js b/packages/react-dom/src/server/ReactDOMServerFormatConfig.js
index e723299f92420..bc9e21c24920b 100644
--- a/packages/react-dom/src/server/ReactDOMServerFormatConfig.js
+++ b/packages/react-dom/src/server/ReactDOMServerFormatConfig.js
@@ -32,7 +32,6 @@ import {
OVERLOADED_BOOLEAN,
NUMERIC,
POSITIVE_NUMERIC,
- ROOT_ATTRIBUTE_NAME,
} from '../shared/DOMProperty';
import {isUnitlessNumber} from '../shared/CSSProperty';
@@ -64,7 +63,6 @@ export type ResponseState = {
sentCompleteSegmentFunction: boolean,
sentCompleteBoundaryFunction: boolean,
sentClientRenderFunction: boolean,
- hasEmittedRoot: boolean,
};
// Allows us to keep track of what we've already written so we can refer back to it.
@@ -81,7 +79,6 @@ export function createResponseState(
sentCompleteSegmentFunction: false,
sentCompleteBoundaryFunction: false,
sentClientRenderFunction: false,
- hasEmittedRoot: false,
};
}
@@ -102,7 +99,7 @@ type InsertionMode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
// Lets us keep track of contextual state and pick it back up after suspending.
export type FormatContext = {
- insertionMode: InsertionMode, // svg/html/mathml/table
+ insertionMode: InsertionMode, // root/svg/html/mathml/table
selectedValue: null | string | Array, // the selected value(s) inside a