aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2007-08-31 05:43:24 +0000
committerJohn Resig <jeresig@gmail.com>2007-08-31 05:43:24 +0000
commit346ceacce3fb6f83701d742ce0835d4db0ba98aa (patch)
tree9935695f3c925ddda65987829c75d4a5a6411bd0 /src/selector/selector.js
parentfbd2b066a71c8c2371e11f7f6b201a9000b564e4 (diff)
downloadjquery-346ceacce3fb6f83701d742ce0835d4db0ba98aa.tar.gz
jquery-346ceacce3fb6f83701d742ce0835d4db0ba98aa.zip
Added support for a new :header psuedo-selector (only selects H1-H6 elements).
Diffstat (limited to 'src/selector/selector.js')
-rw-r--r--src/selector/selector.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selector/selector.js b/src/selector/selector.js
index 5fc3e0ed9..f75bae3c4 100644
--- a/src/selector/selector.js
+++ b/src/selector/selector.js
@@ -56,7 +56,10 @@ jQuery.extend({
input: "/input|select|textarea|button/i.test(a.nodeName)",
// :has()
- has: "jQuery.find(m[3],a).length"
+ has: "jQuery.find(m[3],a).length",
+
+ // :header
+ header: "/h\\d/i.test(a.nodeName)"
},
// DEPRECATED
"[": "jQuery.find(m[2],a).length"