Skip to content
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

Technique H28 should not be sufficient to meet 3.1.4: Abbreviations #3019

Open
jialiang opened this issue Feb 12, 2023 · 1 comment · May be fixed by #4195
Open

Technique H28 should not be sufficient to meet 3.1.4: Abbreviations #3019

jialiang opened this issue Feb 12, 2023 · 1 comment · May be fixed by #4195

Comments

@jialiang
Copy link

jialiang commented Feb 12, 2023

Technique H28:Providing definitions for abbreviations by using the abbr element

Technically the <abbr> tag is used to indicate and define abbreviations. E.g. <abbr title="pound">lb.</abbr>.

But in reality, to quote the WHATWG (https://html.spec.whatwg.org/multipage/dom.html#the-title-attribute):

Relying on the title attribute is currently discouraged as many user agents do not expose the attribute in an accessible manner as required by this specification (e.g., requiring a pointing device such as a mouse to cause a tooltip to appear, which excludes keyboard-only users and touch-only users, such as anyone with a modern phone or tablet).

True enough, in major browsers like Chrome and Firefox, you can't get the text in the title attribute to show up in any way if you're using touch or keyboard.

@patrickhlauke
Copy link
Member

I would be in favour of removing this technique, or demoting it from sufficient to advisory, exactly because <abbr> is not keyboard-supported - so following this technique would lead to a 2.1.1 failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants