Javascript Reference
Categories: selection

javascript selection containsNode( )

@March 15, 2008, 1:22 a.m.
containsNode( )Firefox/Netscape/NN 6 IE n/a Chrome/Safari/DOM n/a  

containsNode(nodeReference, entirelyFlag)

  

Returns Boolean true if the current selection object contains a node passed as a parameter. The second parameter is supposed to let you loosen or tighten the definition of contains, but the behavior of the method seems backward to the intended purpose of the flag. You can assure accuracy if you pass null as the second parameter, which forces the method to define containment as containing the node in its entirety.

 
Parameters
 
  • Reference to any addressable text or element node in the document tree.
  • Boolean value or null. Observed behavior is that a value of true means the selection can contain only a part of the node for the method to return true.
 
Returned Value

Boolean value: true | false.

buy atorvastatin 10mg online <a href="https://lipiws.top/">order lipitor without prescription</a> buy atorvastatin 40mg generic
Gxpsoh - 10 months

Powered by Linode.