MCPcopy Create free account
hub / github.com/microsoft/SandDance / shouldIgnoreAttribute

Function shouldIgnoreAttribute

docs/external/js/react-dom.development.js:920–934  ·  view source on GitHub ↗
(name, propertyInfo, isCustomComponentTag)

Source from the content-addressed store, hash-verified

918 return false;
919 }
920 function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) {
921 if (propertyInfo !== null) {
922 return propertyInfo.type === RESERVED;
923 }
924
925 if (isCustomComponentTag) {
926 return false;
927 }
928
929 if (name.length > 2 && (name[0] === 'o' || name[0] === 'O') && (name[1] === 'n' || name[1] === 'N')) {
930 return true;
931 }
932
933 return false;
934 }
935 function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) {
936 if (propertyInfo !== null && propertyInfo.type === RESERVED) {
937 return false;

Callers 2

setValueForPropertyFunction · 0.85
diffHydratedPropertiesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected