MCPcopy Create free account
hub / github.com/reactjs/react-rails / shouldIgnoreAttribute

Function shouldIgnoreAttribute

lib/assets/react-source/development/react.js:4597–4611  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

4595 return false;
4596 }
4597 function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
4598 if (propertyInfo !== null) {
4599 return propertyInfo.type === RESERVED;
4600 }
4601
4602 if (isCustomComponentTag) {
4603 return false;
4604 }
4605
4606 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
4607 return true;
4608 }
4609
4610 return false;
4611 }
4612 function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
4613 if (propertyInfo !== null && propertyInfo.type === RESERVED) {
4614 return false;

Callers 2

setValueForPropertyFunction · 0.70
diffHydratedPropertiesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected