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

SC 2.1.1 should include warning for onclick events #88

Closed
majornista opened this issue Feb 28, 2014 · 0 comments
Closed

SC 2.1.1 should include warning for onclick events #88

majornista opened this issue Feb 28, 2014 · 0 comments

Comments

@majornista
Copy link

HTML_CodeSniffer makes a poor assumption that onclick event handlers will only be assigned to focusable elements like links and buttons. It does not currently throw a warning when generic elements like "div" or "span" are have onclick event handlers. The sniff should probably evaluate whether or the element focusable and throw a warning/error if it is not.

@luketw luketw changed the title HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_1_2_1_1 should include warning for onclick events SC 2.1.1 should include warning for onclick events Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants