Opened 10 years ago

Closed 10 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)

10230.patch (981 bytes) - added by Becky Gibson 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Becky Gibson

Attachment: 10230.patch added

comment:1 Changed 10 years ago by Becky Gibson

Component: GeneralAccessibility
Owner: changed from anonymous to Becky Gibson

comment:2 Changed 10 years ago by Becky Gibson

Resolution: fixed
Status: newclosed

fixed in [20694]

Note: See TracTickets for help on using tickets.