Skip to main content

Bug Tracker

Side navigation

#5883 closed enhancement (wontfix)

Opened January 20, 2010 10:41PM UTC

Closed November 01, 2010 05:36AM UTC

Last modified November 02, 2010 12:36AM UTC

:heading

Reported by: jablko Owned by: john
Priority: minor Milestone: 1.4.1
Component: selector Version: 1.4
Keywords: Cc:
Blocked by: Blocking:
Description

I wish jQuery supported a :heading selector, as an alias of the :header selector, since I think that (strictly speaking) <h1>, <h2>, etc. are "headings" not "headers"? http://www.w3.org/TR/html401/struct/global.html#h-7.5.5

Attachments (0)
Change History (4)

Changed November 01, 2010 05:36AM UTC by snover comment:1

resolution: → wontfix
status: newclosed

Changed November 01, 2010 01:50PM UTC by anonymous comment:2

This would be a 3 line plugin if you wanted to support this for yourself. :)

Changed November 01, 2010 03:49PM UTC by jitter comment:3

Changed November 02, 2010 12:36AM UTC by dmethvin comment:4

Although additions to the selector syntax are tempting, additions to the selector syntax will make the string invalid to querySelectorAll -- or in the worst case, *accepted* by querySelectorAll but interpreted incorrectly. The fallback is Sizzle's Javascript-based selector engine and potentially a performance hit.