Opened 11 years ago
Closed 11 years ago
#10230 closed defect (fixed)
TabContainer: invalid title attribute on close <img>
Reported by: | Becky Gibson | Owned by: | Becky Gibson |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Accessibility | Version: | 1.4.0b |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The close Icon on closable tabs is implemented using a CSS background image and a real <img> tag. Since this close icon does not go into the tab order it does not to be spoken by screen readers and thus has empty alt text. However, in order to have the mouse user see a tooltip when they hover over the icon image, a title attribute is added to the closeNode (a span) AND closeIcon (an img) attachpoints.
The Web Content Accessibility Guidelines (WCAG) 2.0 prohibit a title attribute on an <img> when the alt attribute is empty. The closeNode is a span and putting the title attribute there works correctky except in IE versions < 8.
Currently the code puts the title attribute on both the span (closeNode) and img (closeIcon) for all browsers.
Need to update the code to only put the title attribute on the closeIcon (img) for dumb IE,
Attachments (1)
Change History (3)
Changed 11 years ago by
Attachment: | 10230.patch added |
---|
comment:1 Changed 11 years ago by
Component: | General → Accessibility |
---|---|
Owner: | changed from anonymous to Becky Gibson |
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed in [20694]