-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML-AAM: should aria-placeholder be used for accessible description on elements? #334
Comments
@stevefaulkner @jasonkiss another question for you |
@AmeliaBR any thoughts on this one? |
@cyns unclear what you mean are you talking about "aria-placeholder attribute" being in accname but not accdescription calc? |
yes, sorry, aria-placeholder. changed it. |
I think, if it's following general rules, that it would come after label and before placeholder. |
@stevefaulkner @AmeliaBR |
@cyns, are you suggesting the following? 5.1.1 input type="text", input type="password", input type="search", input type="tel", input type="email", input type="url" and textarea Element Accessible Name Calculation
5.1.2 input type="text", input type="password", input type="search", input type="tel", input type="email", input type="url" and textarea Element Accessible Description Calculation
|
@jasonkiss's suggestion makes sense to me. Make the text available one way or the other. |
@jasonkiss yes, that's what I was suggesting. make sense? |
Apologies if I'm misunderstanding this, but the placeholder mapping spec states: "When the placeholder and aria-placeholder attributes are both present, and the placeholder attribute's value is non-empty, user agents must expose the value of the placeholder attribute, and ignore aria-placeholder. If the placeholder attribute's value is empty, then user agents must expose the value of the aria-placeholder attribute." – https://w3c.github.io/aria/html-aam/html-aam.html#att-placeholder …so it would seem weird to me if aria-placeholder wins out in step 2 over placeholder in step 3. Shouldn't it be the other way around? (and ignored for description if placeholder exists due to the fact the text above says it should be ignored if placeholder is non empty) My perhaps incorrect assumption was either placeholder or aria-placeholder is used in step 3 of the naming algorithm and 2 of the description algorithm (https://w3c.github.io/aria/html-aam/html-aam.html#input-type-text-input-type-password-input-type-search-input-type-tel-input-type-email-input-type-url-and-textarea-element-accessible-name-calculation) depending on which one wins out based on the quoted text above. |
@dstorey Good call. See http://lists.linux-foundation.org/pipermail/accessibility-ia2/2015-April/001877.html for part of the discussion around that text you quote from the HTML-AAM. So Also, while I haven't been able to find a definite consensus or decision in the record re order of
I also get the impression that how Admittedly late to this, I know, but I'll note that I haven't been entirely comfortable with the HTML-AAM recommending the use of an attribute as fallback for name or description when other specs and guidance around the use of that same attribute recommends that authors not use it in such a way that it might be a reasonable fallback. A similar question came up around the HTML-AAM providing mappings for deprecated elements and attributes (can't remember which elements or attributes in particular right now). Since the AAMs are normative specs, I feel like they shouldn't be identifying mappings for elements and attributes that are not part of the host language or that are being used in ways that are contrary to best practice as recommended by the host language. It seems to me that simply including Does this mean I think that Meanwhile, I do understand the argument for so including it in the computation, given its popular use that way. From that perspective, if we keep with the current, then I'd hope we could at least add some kind of note accompanying that section in the HTML-AAM explaining that, despite its presence in the name computation, |
This issue was moved to w3c/html-aam#41 |
* col & colgroup span attribute no ARIA role/attribute mapping * title attribute aria mappings * updates to title attribute revise per Joanie’s feedback w3c/html-aam#334 (comment)
in 5.1.1, aria-description is used for name calculation, but it is not used in 5.1.2 for description calculation, even if it was not used as the name. Is this intentional? If so, what's the rationale?
The text was updated successfully, but these errors were encountered: