Open carmacleod opened 4 years ago
per the discussion about aria-haspopup from https://github.com/w3c/aria/pull/2030, it seems maybe the differences are fine / not really worth making consistent - especially since each attribute does have varying levels of baggage that could be jostled by making such changes.
cc @jnurthen do you still think we should do this, or maybe close until someone can point out a problem these variants cause?
The definition of aria-haspopup needs to clearly state that the default value is false if no value is given. It currently mentions empty string, but I think it needs to also say something like "if the attribute is not present":
https://w3c.github.io/aria/#aria-haspopup
For comparison, the definitions of aria-current and aria-invalid (which are also enumerated types) say:
https://w3c.github.io/aria/#aria-current
https://w3c.github.io/aria/#aria-invalid
It might be useful to make these paragraphs more consistent with one another.
Do we need to say "an empty string or undefined" (aria-current says this, but not the other 2).
Do we need to say "MUST NOT be exposed by user agents" (like aria-current)?
The last sentence in aria-invalid doesn't say "user agents MUST"... should it? It just says:
Does it make any sense to use the word null instead of "if the attribute is not present"? DOM spec says: