Use Landmark Roles in Place of IDs.

Jeremy Keith recommends using ARIA landmark roles as an accessible alternative to superfluous IDs:

In HTML5 you can, for the first time, use ARIA roles and still have a valid document. ARIA landmark roles add an extra layer of semantics onto your document, distinguishing them as navigational landmarks for assistive technology.

CSS attribute selectors are supported by Safari, Firefox, Chrome, Opera, and Internet Explorer 7–9.