This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
when javascript is included in an a elements href attribute: <p><a href="javascript:alert()">alert</a></p> trigger a conformance error as it is not being used a link when the href attribute includes only a # and event handlers are also included on an a element trigger a conformance error: <p><a href="#" onclick="alert()">alert</a></p> Trigger a conformance error as it is not being used a link.
added a11ytf keyword; see http://www.w3.org/2010/06/17-html-a11y-minutes.html for some related discussion
Javascript URIs have real use cases. Without being able to include them in links, distributing bookmarklets to users would not be possible. This is also not an accessibility issue either, but rather a universality issue. Browsers utilising assistive technology can still activate and execute links with javacript: URIs without any problems. The only browsers that are inherently affected are those without javascript supported, but that is not an accessibility specific issue. There is also no inherent problem with the use of javascript URIs. But rather a problem with the way in which they are commonly used in ways that are more appropriately handled with regular http links and event handlers or the target attribute. Making all javascript URIs a conformance error because of these less than ideal uses is not the right approach to address the real problem, which is with regards to their misuse, rather than any use at all.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Rejected Change Description: no spec change Rationale: Concurred with comment 2.
Bug triage sub-team sees that there are a variety of problems with javascript URLs in @href. But these fall in the category of best practice issues, not spec conformance issues. Accessibility concerns are related to the concept of accessibility support and are again not directly a spec conformance issue. Therefore we accept closing this bug as is.
Closed per http://lists.w3.org/Archives/Public/public-html/2010Oct/0135.html