Adding contains method to mozilla
|
Apr. 10, 2006, 12:01 AM
Post: #1
|
|||
|
|||
Adding contains method to mozilla
Here's the code I'm trying out:
Code: // create a contains method for gecko to check if one node is contained in another It seems that this would be more efficient than looping or bubbling up through the document, ala BrainJar. Mike |
|||
Apr. 21, 2006, 09:45 AM
Post: #2
|
|||
|
|||
Heres the latest version I'm using:
Code: //----------------------------------- IE & Opera return true when a node is compared to itself, so I added the isSameNode check. This function has turned out to be quite handy. Mike |
|||
« Next Oldest | Next Newest »
|