@samitouri / QOS-React / commits / efcac24af2

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

Dan Abramov committed Aug 7, 2017 at 21:28 UTC efcac24af26afba90e2ef525509ca40f3bd6f270
1 file changed +1 -7
src/renderers/dom/fiber/ReactDOMFiberComponent.js
+1 -7
@@ -931,15 +931,9 @@ var ReactDOMFiberComponent = {
931 // TODO: Do we need to lower case this to get case insensitive matches?
932 var name = attributes[i].name;
933 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
935 case 'data-reactroot':
936 break;
939 - case 'data-reactid':
940 - break;
941 - case 'data-react-checksum':
942 - break;
937 // Controlled attributes are not validated
938 // TODO: Only ignore them on controlled tags.
939 case 'value':