This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24273 - Consider allowing the nohref attribute on area elements
Summary: Consider allowing the nohref attribute on area elements
Status: RESOLVED WONTFIX
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Macintosh Mac System 9.x
: P3 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/the-map-...
Whiteboard:
Keywords: a11y
Depends on: 13814
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-11 22:22 UTC by Leif Halvard Silli
Modified: 2014-02-24 10:06 UTC (History)
6 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2014-01-11 22:22:57 UTC
Whenever an <area> element has an @alt attribute but does  not have a @href attribute, the validator screams that @href is lacking.

Thus, @nohref is needed to signal to the validator that the the curren element is not meant to have a href attribute.
Comment 1 Leif Halvard Silli 2014-01-11 22:59:39 UTC
Btw, as I noted in bug 13814, then, in Firefox, the <area> elements are included in the tabbing order even if the element lacks both @alt and @href.
Comment 2 steve faulkner 2014-01-12 11:45:44 UTC
(In reply to Leif Halvard Silli from comment #0)
> Whenever an <area> element has an @alt attribute but does  not have a @href
> attribute, the validator screams that @href is lacking.
> 
> Thus, @nohref is needed to signal to the validator that the the curren
> element is not meant to have a href attribute.

adding an attribute for this seems OTT, why not make it conforming to have

<area alt="blah"> ?
Comment 3 Michael[tm] Smith 2014-01-12 17:55:36 UTC
(In reply to Leif Halvard Silli from comment #0)
> Whenever an <area> element has an @alt attribute but does  not have a @href
> attribute, the validator screams that @href is lacking.

Yeah, that's intentional, because the spec says, "If the area element has no href attribute... the alt attribute must be omitted."
 
> Thus, @nohref is needed to signal to the validator that the the curren
> element is not meant to have a href attribute.

No, the fact that the element doesn't have an href attribute signals to the validator that the element doesn't have an href attribute. No @nohref attribute is needed.
Comment 4 steve faulkner 2014-01-13 09:45:15 UTC
(In reply to Michael[tm] Smith from comment #3)
> (In reply to Leif Halvard Silli from comment #0)
> > Whenever an <area> element has an @alt attribute but does  not have a @href
> > attribute, the validator screams that @href is lacking.
> 
> Yeah, that's intentional, because the spec says, "If the area element has no
> href attribute... the alt attribute must be omitted."

what would be useful is to know why the spec says this.
Comment 5 steve faulkner 2014-02-24 10:06:40 UTC
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 change
Rationale: agreed with Comment 3 "No, the fact that the element doesn't have an href attribute signals to the validator that the element doesn't have an href attribute. No @nohref attribute is needed."