(name, value, propertyInfo, isCustomComponentTag)
| 4087 | } |
| 4088 | |
| 4089 | function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { |
| 4090 | if (value === null || typeof value === 'undefined') { |
| 4091 | return true; |
| 4092 | } |
| 4093 | if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { |
| 4094 | return true; |
| 4095 | } |
| 4096 | if (propertyInfo !== null) { |
| 4097 | switch (propertyInfo.type) { |
| 4098 | case BOOLEAN: |
| 4099 | return !value; |
| 4100 | case OVERLOADED_BOOLEAN: |
| 4101 | return value === false; |
| 4102 | case NUMERIC: |
| 4103 | return isNaN(value); |
| 4104 | case POSITIVE_NUMERIC: |
| 4105 | return isNaN(value) || value < 1; |
| 4106 | } |
| 4107 | } |
| 4108 | return false; |
| 4109 | } |
| 4110 | |
| 4111 | function getPropertyInfo(name) { |
| 4112 | return properties.hasOwnProperty(name) ? properties[name] : null; |
no test coverage detected