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

508 section for event.preventDefault #90

Closed
leighlawhon opened this issue Jul 13, 2017 · 2 comments
Closed

508 section for event.preventDefault #90

leighlawhon opened this issue Jul 13, 2017 · 2 comments

Comments

@leighlawhon
Copy link
Contributor

Without changing what you have, I would put a note about how preventing the default behavior of an anchor or submit button changes its intention and is therefore, no longer semantic and 508 compliant. So, anchors navigate to parts of pages or external pages, buttons perform actions and submit buttons submit forms. If you are doing anything else with these elements you should consider using another element.

@iliakan
Copy link
Member

iliakan commented Jul 16, 2017

That would be a nice note. People should keep the semantical meaning of the elements even if they add JS.

Could you make a PR with that?

@iliakan
Copy link
Member

iliakan commented Jul 17, 2017

Added a warning at the bottom.

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

No branches or pull requests

2 participants