![]() |
|
Adding contains method to mozilla - Printable Version +- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums) +-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38) +--- Forum: FIP (/forumdisplay.php?fid=36) +--- Thread: Adding contains method to mozilla (/showthread.php?tid=778) |
Adding contains method to mozilla - z12 - Apr. 10, 2006 12:01 AM Here's the code I'm trying out: Code: // create a contains method for gecko to check if one node is contained in anotherIt seems that this would be more efficient than looping or bubbling up through the document, ala BrainJar. Mike - z12 - Apr. 21, 2006 09:45 AM 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 |