On Sat, 27 Jan 2007 18:03:35 -0500, Martijn <[EMAIL PROTECTED]>
wrote:
I don't see any difference:.
document.getElementBySelector("html > p")
is the same as document.getElementListBySelector("html > p")[0]
document.getElementBySelector("html > p:not(:first-child)")
is the same as document.getElementListBySelector("html >
p:not(:first-child)")[0]
document.getElementBySelector("html > p:last-child")
is the same as document.getElementListBySelector("html >
p:last-child")[0]
as far as I can see.
Given that the latter returns a StaticNodeList you can't do fancy stuff
such as lazy evaluation. So they become different in terms of speed.
--
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>