Dom
Range
Iface
constructor
name
clone_
contents
clone_
range
collapse
compare_
boundary_
points
compare_
point
delete_
contents
detach
extract_
contents
get_
collapsed
get_
common_
ancestor_
container
get_
end_
container
get_
end_
offset
get_
start_
container
get_
start_
offset
insert_
node
intersects_
node
is_
point_
in_
range
select_
node
select_
node_
contents
set_
end
set_
end_
after
set_
end_
before
set_
start
set_
start_
after
set_
start_
before
surround_
contents
to_
string
GJS API Reference
GXml-0.20
GXml
DomRangeIface
Class DomRangeIface
Hierarchy
DomRangeIface
Index
Constructors
constructor
Properties
name
Methods
clone_
contents
clone_
range
collapse
compare_
boundary_
points
compare_
point
delete_
contents
detach
extract_
contents
get_
collapsed
get_
common_
ancestor_
container
get_
end_
container
get_
end_
offset
get_
start_
container
get_
start_
offset
insert_
node
intersects_
node
is_
point_
in_
range
select_
node
select_
node_
contents
set_
end
set_
end_
after
set_
end_
before
set_
start
set_
start_
after
set_
start_
before
surround_
contents
to_
string
Constructors
constructor
new
Dom
Range
Iface
(
)
:
GXml
.
DomRangeIface
Returns
GXml
.
DomRangeIface
Properties
Static
name
name
:
string
Methods
clone_
contents
clone_
contents
(
self
:
GXml
.
DomRange
)
:
GXml
.
DomDocumentFragment
Parameters
self:
GXml
.
DomRange
Returns
GXml
.
DomDocumentFragment
clone_
range
clone_
range
(
self
:
GXml
.
DomRange
)
:
GXml
.
DomRange
Parameters
self:
GXml
.
DomRange
Returns
GXml
.
DomRange
collapse
collapse
(
self
:
GXml
.
DomRange
, to_start
:
boolean
)
:
void
Parameters
self:
GXml
.
DomRange
to_start:
boolean
Returns
void
compare_
boundary_
points
compare_
boundary_
points
(
self
:
GXml
.
DomRange
, how
:
GXml
.
DomRangeBoundaryPoints
, sourceRange
:
GXml
.
DomRange
)
:
number
Parameters
self:
GXml
.
DomRange
how:
GXml
.
DomRangeBoundaryPoints
sourceRange:
GXml
.
DomRange
Returns
number
compare_
point
compare_
point
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
, offset
:
number
)
:
number
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
offset:
number
Returns
number
delete_
contents
delete_
contents
(
self
:
GXml
.
DomRange
)
:
void
Parameters
self:
GXml
.
DomRange
Returns
void
detach
detach
(
self
:
GXml
.
DomRange
)
:
void
Parameters
self:
GXml
.
DomRange
Returns
void
extract_
contents
extract_
contents
(
self
:
GXml
.
DomRange
)
:
GXml
.
DomDocumentFragment
Parameters
self:
GXml
.
DomRange
Returns
GXml
.
DomDocumentFragment
get_
collapsed
get_
collapsed
(
self
:
GXml
.
DomRange
)
:
boolean
Parameters
self:
GXml
.
DomRange
Returns
boolean
get_
common_
ancestor_
container
get_
common_
ancestor_
container
(
self
:
GXml
.
DomRange
)
:
GXml
.
DomNode
Parameters
self:
GXml
.
DomRange
Returns
GXml
.
DomNode
get_
end_
container
get_
end_
container
(
self
:
GXml
.
DomRange
)
:
GXml
.
DomNode
Parameters
self:
GXml
.
DomRange
Returns
GXml
.
DomNode
get_
end_
offset
get_
end_
offset
(
self
:
GXml
.
DomRange
)
:
number
Parameters
self:
GXml
.
DomRange
Returns
number
get_
start_
container
get_
start_
container
(
self
:
GXml
.
DomRange
)
:
GXml
.
DomNode
Parameters
self:
GXml
.
DomRange
Returns
GXml
.
DomNode
get_
start_
offset
get_
start_
offset
(
self
:
GXml
.
DomRange
)
:
number
Parameters
self:
GXml
.
DomRange
Returns
number
insert_
node
insert_
node
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
intersects_
node
intersects_
node
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
boolean
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
boolean
is_
point_
in_
range
is_
point_
in_
range
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
, offset
:
number
)
:
boolean
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
offset:
number
Returns
boolean
select_
node
select_
node
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
select_
node_
contents
select_
node_
contents
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
set_
end
set_
end
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
, offset
:
number
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
offset:
number
Returns
void
set_
end_
after
set_
end_
after
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
set_
end_
before
set_
end_
before
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
set_
start
set_
start
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
, offset
:
number
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
offset:
number
Returns
void
set_
start_
after
set_
start_
after
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
set_
start_
before
set_
start_
before
(
self
:
GXml
.
DomRange
, node
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
node:
GXml
.
DomNode
Returns
void
surround_
contents
surround_
contents
(
self
:
GXml
.
DomRange
, newParent
:
GXml
.
DomNode
)
:
void
Parameters
self:
GXml
.
DomRange
newParent:
GXml
.
DomNode
Returns
void
to_
string
to_
string
(
self
:
GXml
.
DomRange
)
:
string
Parameters
self:
GXml
.
DomRange
Returns
string
Dom
Range
Iface
constructor
name
clone_
contents
clone_
range
collapse
compare_
boundary_
points
compare_
point
delete_
contents
detach
extract_
contents
get_
collapsed
get_
common_
ancestor_
container
get_
end_
container
get_
end_
offset
get_
start_
container
get_
start_
offset
insert_
node
intersects_
node
is_
point_
in_
range
select_
node
select_
node_
contents
set_
end
set_
end_
after
set_
end_
before
set_
start
set_
start_
after
set_
start_
before
surround_
contents
to_
string
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHWG1sXzBfMjAuR1htbC5Eb21SYW5nZUlmYWNlLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyB0c2QtaXMtc3RhdGljIiwiaHJlZiI6IkdYbWxfMF8yMC5HWG1sLkRvbVJhbmdlSWZhY2UuaHRtbCNuYW1lIiwibmFtZSI6Im5hbWUiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLW1ldGhvZCB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiR1htbF8wXzIwLkdYbWwuRG9tUmFuZ2VJZmFjZS5odG1sI2Nsb25lX2NvbnRlbnRzIiwibmFtZSI6ImNsb25lX2NvbnRlbnRzIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1tZXRob2QgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6IkdYbWxfMF8yMC5HWG1sLkRvbVJhbmdlSWZhY2UuaHRtbCNjbG9uZV9yYW5nZSIsIm5hbWUiOiJjbG9uZV9yYW5nZSIsImNoaWxkcmVuIjpbXSwiaXNFe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