Remove data-reactid and data-reactchecksum from whitelist (#10402)

This commit is contained in:
Dan Abramov authored and GitHub committed 2017-08-07 21:28:26 +01:00
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':