axe should be aware of input type default of text #2514
Labels
commons
Issues in the common code (lib/commons)
fix
Bug fixes
good first issue
For first-time contributors
hacktoberfest
Help contribute during the month of October to participate https://hacktoberfest.digitalocean.com/
regarding input type...
from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input
example markup:
(from https://returns.narvar.com/reionline/returns)
Expectation:
getRole(document.querySelector('input'))
should returntextbox
Actual:
getRole(document.querySelector('input'))
returnsnull
I can tell this is because the above input, has an invalid type of
input.type
🤦 but it appears that all browsers treat that invalidtype
attribute value as the same as not having it present at all (which defaults to text). I've tested this rei page out with safari + vo and inspected a11y trees in the 3 major browsers.Motivation: 🤷
The text was updated successfully, but these errors were encountered: