(name, value, propertyInfo, isCustomComponentTag)
| 3320 | } |
| 3321 | |
| 3322 | function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { |
| 3323 | if (value === null || typeof value === 'undefined') { |
| 3324 | return true; |
| 3325 | } |
| 3326 | if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { |
| 3327 | return true; |
| 3328 | } |
| 3329 | if (propertyInfo !== null) { |
| 3330 | switch (propertyInfo.type) { |
| 3331 | case BOOLEAN: |
| 3332 | return !value; |
| 3333 | case OVERLOADED_BOOLEAN: |
| 3334 | return value === false; |
| 3335 | case NUMERIC: |
| 3336 | return isNaN(value); |
| 3337 | case POSITIVE_NUMERIC: |
| 3338 | return isNaN(value) || value < 1; |
| 3339 | } |
| 3340 | } |
| 3341 | return false; |
| 3342 | } |
| 3343 | |
| 3344 | function getPropertyInfo(name) { |
| 3345 | return properties.hasOwnProperty(name) ? properties[name] : null; |
no test coverage detected