On 2009/08/01 01:02:48, MikeSamuel wrote:
Maybe use contains/compareDocumentPosition to check whether the node
is
contained.

Yeah, we could check if it's contained by
node.ownerDocument.documentElement first instead of last, but then every
parentNode lookup would pay the price of checking containment.

Which is the more common case?

http://codereview.appspot.com/98088

Reply via email to