jquery/jquery-ui — pull request #604 by scottgonzalez (2012-02-27 02:47:47+00:00)
Title: Accordion: Removed requirement for headers to contain a child

In 1.8.x, we require accordion headers to contain anchors, which we had special handling for, including styles. The styling caused problems for users who wanted to add additional anchors to accordion headers. We tried to address this with the API redesign by making the selector for the style rules more specific:

> There is currently no class being added to the headings for each panel. This results in the stylesheet using .ui-accordion-header a for styling, which makes adding additional anchors to the headers difficult. To solve this, we will add a class to the first child of each header and use the new class for styling.

This change goes a step further and completely removes the need for the anchors. Anchor are no longer needed for keyboard or accessibility support either. We're already using arrow keys and ARIA, and we no longer support Safari 3, which was the only browser that required natively focusable elements for tabindex to work.