Skip to content

Commit efcac24

Browse files
authored
Remove data-reactid and data-reactchecksum from whitelist (#10402)
1 parent 4e4653d commit efcac24

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/renderers/dom/fiber/ReactDOMFiberComponent.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -931,15 +931,9 @@ var ReactDOMFiberComponent = {
931931
// TODO: Do we need to lower case this to get case insensitive matches?
932932
var name = attributes[i].name;
933933
switch (name) {
934-
// Built-in attributes are whitelisted
935-
// TODO: Once these are gone from the server renderer, we don't need
936-
// this whitelist aynymore.
934+
// Built-in SSR attribute is whitelisted
937935
case 'data-reactroot':
938936
break;
939-
case 'data-reactid':
940-
break;
941-
case 'data-react-checksum':
942-
break;
943937
// Controlled attributes are not validated
944938
// TODO: Only ignore them on controlled tags.
945939
case 'value':

0 commit comments

Comments
 (0)