WebKit2WebExtension.DOMRange

g GObject.Object GObject.Object WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMObject GObject.Object->WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMRange WebKit2WebExtension.DOMRange WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMRange

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

clone_contents ()

clone_range ()

collapse (toStart)

compare_boundary_points (how, sourceRange)

compare_node (refNode)

compare_point (refNode, offset)

create_contextual_fragment (html)

delete_contents ()

detach ()

expand (unit)

extract_contents ()

get_collapsed ()

get_common_ancestor_container ()

get_end_container ()

get_end_offset ()

get_start_container ()

get_start_offset ()

get_text ()

insert_node (newNode)

intersects_node (refNode)

is_point_in_range (refNode, offset)

select_node (refNode)

select_node_contents (refNode)

set_end (refNode, offset)

set_end_after (refNode)

set_end_before (refNode)

set_start (refNode, offset)

set_start_after (refNode)

set_start_before (refNode)

surround_contents (newParent)

to_string ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

WebKit2WebExtension.DOMObject (1)

Name

Type

Flags

Short Description

collapsed

bool

r

read-only bool Range:collapsed

common-ancestor-container

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Range:common-ancestor-container

end-container

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Range:end-container

end-offset

r

read-only int Range:end-offset

start-container

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Range:start-container

start-offset

r

read-only int Range:start-offset

text

str

r

read-only str Range:text

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

WebKit2WebExtension.DOMObject

r

Class Details

class WebKit2WebExtension.DOMRange(**kwargs)
Bases:

WebKit2WebExtension.DOMObject

Abstract:

No

Structure:

WebKit2WebExtension.DOMRangeClass

clone_contents()
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMDocumentFragment

Return type:

WebKit2WebExtension.DOMDocumentFragment

Deprecated since version 2.22: Use JavaScriptCore API instead

clone_range()
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMRange

Return type:

WebKit2WebExtension.DOMRange

Deprecated since version 2.22: Use JavaScriptCore API instead

collapse(toStart)
Parameters:

toStart (bool) – A bool

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

compare_boundary_points(how, sourceRange)
Parameters:
Raises:

GLib.Error

Returns:

A #gshort

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

compare_node(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Returns:

A #gshort

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

compare_point(refNode, offset)
Parameters:
Raises:

GLib.Error

Returns:

A #gshort

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

create_contextual_fragment(html)
Parameters:

html (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMDocumentFragment

Return type:

WebKit2WebExtension.DOMDocumentFragment

Deprecated since version 2.22: Use JavaScriptCore API instead

delete_contents()
Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

detach()
Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

expand(unit)
Parameters:

unit (str) – A str

Raises:

GLib.Error

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

extract_contents()
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMDocumentFragment

Return type:

WebKit2WebExtension.DOMDocumentFragment

Deprecated since version 2.22: Use JavaScriptCore API instead

get_collapsed()
Raises:

GLib.Error

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

get_common_ancestor_container()
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_end_container()
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_end_offset()
Raises:

GLib.Error

Returns:

A int

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

get_start_container()
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_start_offset()
Raises:

GLib.Error

Returns:

A int

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

get_text()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

insert_node(newNode)
Parameters:

newNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

intersects_node(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

is_point_in_range(refNode, offset)
Parameters:
Raises:

GLib.Error

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

select_node(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

select_node_contents(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_end(refNode, offset)
Parameters:
Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_end_after(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_end_before(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_start(refNode, offset)
Parameters:
Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_start_after(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_start_before(refNode)
Parameters:

refNode (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

surround_contents(newParent)
Parameters:

newParent (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

to_string()
Raises:

GLib.Error

Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

Property Details

WebKit2WebExtension.DOMRange.props.collapsed
Name:

collapsed

Type:

bool

Default Value:

False

Flags:

READABLE

read-only bool Range:collapsed

WebKit2WebExtension.DOMRange.props.common_ancestor_container
Name:

common-ancestor-container

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Range:common-ancestor-container

WebKit2WebExtension.DOMRange.props.end_container
Name:

end-container

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Range:end-container

WebKit2WebExtension.DOMRange.props.end_offset
Name:

end-offset

Type:

Default Value:

0

Flags:

READABLE

read-only int Range:end-offset

WebKit2WebExtension.DOMRange.props.start_container
Name:

start-container

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Range:start-container

WebKit2WebExtension.DOMRange.props.start_offset
Name:

start-offset

Type:

Default Value:

0

Flags:

READABLE

read-only int Range:start-offset

WebKit2WebExtension.DOMRange.props.text
Name:

text

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Range:text