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

Disallow roles on a[href] #187

Open
karlgroves opened this issue Oct 17, 2019 · 2 comments
Open

Disallow roles on a[href] #187

karlgroves opened this issue Oct 17, 2019 · 2 comments
Labels
Allowed roles Pertaining to the allowed roles of HTML elements

Comments

@karlgroves
Copy link

karlgroves commented Oct 17, 2019

Currently this document states the following in column 3 for roles which may be used on a[href]

Roles: button, checkbox, menuitem, menuitemcheckbox, menuitemradio, option, radio, switch, tab or treeitem

The construction of links & linking between documents has been with HTML since its very beginning. In fact, supporting links is one of the foundational conformance requirements for user agents

Section 7 of RFC 1866 discusses the purpose and structure of links.

The content of the href attribute must be a valid resource.

I simply cannot see any relevant use case for applying a role for what would otherwise be a link.

If the author has constructed an <a> element that contains an href attribute, then the use of any other role should be considered invalid.

@karlgroves
Copy link
Author

As a quick follow-up, area[href] is listed as "No Role"

@masi
Copy link

masi commented Feb 13, 2021

Can the ticket be closed? AS I understand your second comment everything is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Allowed roles Pertaining to the allowed roles of HTML elements
Projects
None yet
Development

No branches or pull requests

3 participants