diff options
author | John Resig <jeresig@gmail.com> | 2009-07-19 13:32:53 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-07-19 13:32:53 +0000 |
commit | 48e9a3999596c2ee1f4470a78637de8f27e3b219 (patch) | |
tree | 8f4c68775a0645be21cce8d49cd6959d000bfb00 /src/selector.js | |
parent | 0d5c3a68a092401089c9242bdafdb1b2534feb6a (diff) | |
download | jquery-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.js | 2 |
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 ) ? |