Ticket #47 (closed defect: fixed)
Link destination anchors should not be treated as links
| Reported by: | jteh | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2009.1 |
| Component: | Virtual buffers | Version: | development |
| Keywords: | Cc: | ||
| Operating system: | Blocked by: | ||
| Blocking: |
Description (last modified by jteh) (diff)
In HTML, there are two uses for the <a> tag:
- The HREF attribute refers to a destination so that when the link is activated, the browser will jump to that destination.
- The NAME attribute creates a link destination which can be referenced elsewhere.
When there is no HREF attribute, the element is not a link (i.e. it does not jump to another destination).
Unfortunately, Firefox exposes A elements without an HREF attribute as links to accessibility APIs. Imho, this is a bug in Firefox; see MozillaBug:423603. However, this has been done for a long time and IE apparently does it as well, so fixing the issue in Firefox may cause breakage. Thus, the change needs to be made in the NVDA gecko_ia2 backend.
Two methods can be used to determine whether there is no HREF attribute:
- The link object will not have the linked state set.
- The accessible value will be empty.
Either of these methods can be used. If no HREF is detected, the backend should ignore the link object (but still render everything below).


NVDA is developed by