Closed stephenmathieson closed 11 years ago
document.getElementsByTagName('*') is more expensive than need be. IE will barf when attempting to slice an empty NodeList, so there's no need to query each element in the DOM.
document.getElementsByTagName('*')
slice
Cool. Sounds good to me.
document.getElementsByTagName('*')
is more expensive than need be. IE will barf when attempting toslice
an empty NodeList, so there's no need to query each element in the DOM.