You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: