ISSUE-208: What to do with <a href="#">?

What to do with <a href="#">?

State:
CLOSED
Product:
mobileOK Basic tests
Raised by:
Sean Owen
Opened on:
2007-08-23
Description:
http://www.w3.org/2006/02/lc-comments-tracker/37584/WD-mobileOK-basic10-tests-20070525/1740?cid=1740

The comment asks us to fail on a link which specifies href="#" in OBJECTS_AND_SCRIPT since it is commonly used as a dummy URL in links which specify script handlers like onclick="javascript:..." The reason is that while "#" is a valid URL its behavior is claimed to be undefined. Seems reasonable, but:

1) Does the check belong in OBJECTS_AND_SCRIPT? While it may be commonly used when scripting is being used it is not directly related to scripts.
2) LINK_TARGET_FORMAT? it has to do with checking links, but the links in question are not to external documents
3) VALID_MARKUP?

Separately, should some test check for valid anchors in general? that is if href="#foo" is found then some element has id="foo"?

This relates to ACTION-538.
Related Actions Items:
No related actions
Related emails:
  1. Minutes for 2007-09-13 phone conference (from mike@w3.org on 2007-09-14)
  2. ISSUE-208: What to do with <a href='#'>? (from sysbot+tracker@w3.org on 2007-08-23)

Related notes:

No additional notes.

Display change log ATOM feed


Jo Rabin <jo@linguafranca.org>, Daniel Appelquist <daniel.appelquist@vodafone.com>, Chairs, Dominique Hazaël-Massieux <dom@w3.org>, François Daoust <fd@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 208.html,v 1.1 2011/01/10 15:19:43 dom Exp $