NAME

Mozilla::DOM::NSRange

Mozilla::DOM::NSRange is a wrapper around an instance of Mozilla's nsIDOMNSRange interface. This class inherits from Supports.

The following constants are available, exportable with

use Mozilla::DOM::NSRange qw(compare);
NODE_BEFORE => 0
NODE_AFTER => 1
NODE_BEFORE_AND_AFTER => 2
NODE_INSIDE => 3

CLASS METHODS

$iid = Mozilla::DOM::NSRange->GetIID()

Pass this to QueryInterface.

METHODS

$retval = $nsrange->CreateContextualFragment($fragment)

Input:

$fragment (string)

Output:

$retval (Mozilla::DOM::DocumentFragment)

$bool = $nsrange->IsPointInRange($parent, $offset)

Input:

$parent (Mozilla::DOM::Node)
$offset (int)

Output:

$bool (bool)

$retval = $nsrange->ComparePoint($parent, $offset)

Input:

$parent (Mozilla::DOM::Node)
$offset (int)

Output:

$retval (int)

$bool = $nsrange->IntersectsNode($n)

Input:

$n (Mozilla::DOM::Node)

Output:

$bool (bool)

$retval = $nsrange->CompareNode($n)

Input:

$n (Mozilla::DOM::Node)

Output:

$retval (int)

$nsrange->NSDetach()

SEE ALSO

Mozilla::DOM

COPYRIGHT

Copyright (C) 2005-2007, Scott Lanning

This software is licensed under the LGPL. See Mozilla::DOM for a full notice.