mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove data-reactid and data-reactchecksum from whitelist (#10402)
This commit is contained in:
1 parent
4e4653da9b
commit
efcac24af2
1 file changed
+1
-7
@@ -931,15 +931,9 @@ var ReactDOMFiberComponent = {
|
||||
// TODO: Do we need to lower case this to get case insensitive matches?
|
||||
var name = attributes[i].name;
|
||||
switch (name) {
|
||||
// Built-in attributes are whitelisted
|
||||
// TODO: Once these are gone from the server renderer, we don't need
|
||||
// this whitelist aynymore.
|
||||
// Built-in SSR attribute is whitelisted
|
||||
case 'data-reactroot':
|
||||
break;
|
||||
case 'data-reactid':
|
||||
break;
|
||||
case 'data-react-checksum':
|
||||
break;
|
||||
// Controlled attributes are not validated
|
||||
// TODO: Only ignore them on controlled tags.
|
||||
case 'value':
|
||||
|
||||
Reference in new issue
Block a user