Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ jQuery.support = (function( support ) { | |
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; | ||
|
||
// Finish early in limited (non-browser) environments | ||
all = div.getElementsByTagName("*"); | ||
all = div.getElementsByTagName("*") || []; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
gibson042
Author
Member
|
||
a = div.getElementsByTagName("a")[ 0 ]; | ||
if ( !all || !a || !all.length ) { | ||
if ( !a || !a.style || !all.length ) { | ||
return support; | ||
} | ||
|
||
|
I wonder if we could use the first-born
NodeList.prototype
here?