Skip to content

Commit

Permalink
add inputType assertion on accessibleAudit, #776
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Apr 21, 2020
1 parent f6a2ce5 commit dab50b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/accessibility/pdom/ParallelDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ const ParallelDOM = {
this._inputValue && assert( this._tagName.toUpperCase() === INPUT_TAG, 'tagName must be INPUT to support inputValue' );
this._accessibleChecked && assert( INPUT_TYPES_THAT_SUPPORT_CHECKED.indexOf( this._inputType.toUpperCase() ) >= 0, 'inputType does not support checked attribute: ' + this._inputType );
this._focusHighlightLayerable && assert( this.focusHighlight instanceof Node, 'focusHighlight must be Node if highlight is layerable' );
this._tagName.toUpperCase() === INPUT_TAG && assert( typeof this._inputType === 'string', ' inputType expected for input' );
}

for ( let i = 0; i < this.children.length; i++ ) {
Expand Down

0 comments on commit dab50b0

Please sign in to comment.