aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector.js
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-07-19 13:32:53 +0000
committerJohn Resig <jeresig@gmail.com>2009-07-19 13:32:53 +0000
commit48e9a3999596c2ee1f4470a78637de8f27e3b219 (patch)
tree8f4c68775a0645be21cce8d49cd6959d000bfb00 /src/selector.js
parent0d5c3a68a092401089c9242bdafdb1b2534feb6a (diff)
downloadjquery-48e9a3999596c2ee1f4470a78637de8f27e3b219.tar.gz
jquery-48e9a3999596c2ee1f4470a78637de8f27e3b219.zip
Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.
Diffstat (limited to 'src/selector.js')
-rw-r--r--src/selector.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selector.js b/src/selector.js
index a7d94c39d..c6fc0255a 100644
--- a/src/selector.js
+++ b/src/selector.js
@@ -978,7 +978,7 @@ jQuery.expr[":"] = jQuery.expr.filters;
Sizzle.selectors.filters.hidden = function(elem){
var width = elem.offsetWidth, height = elem.offsetHeight,
- force = /^tr$/i.test( elem.tagName ); // ticket #4512
+ force = /^tr$/i.test( elem.nodeName ); // ticket #4512
return ( width === 0 && height === 0 && !force ) ?
true :
( width !== 0 && height !== 0 && !force ) ?