WebKit2WebExtension.DOMNode

g GObject.GInterface GObject.GInterface WebKit2WebExtension.DOMEventTarget WebKit2WebExtension.DOMEventTarget GObject.GInterface->WebKit2WebExtension.DOMEventTarget GObject.Object GObject.Object WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMObject GObject.Object->WebKit2WebExtension.DOMObject WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMEventTarget->WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMNode

Subclasses:

WebKit2WebExtension.DOMAttr, WebKit2WebExtension.DOMCharacterData, WebKit2WebExtension.DOMDocument, WebKit2WebExtension.DOMDocumentFragment, WebKit2WebExtension.DOMDocumentType, WebKit2WebExtension.DOMElement, WebKit2WebExtension.DOMEntityReference

Methods

Inherited:

GObject.Object (37), WebKit2WebExtension.DOMEventTarget (3)

Structs:

GObject.ObjectClass (5)

class

for_js_value (value)

append_child (newChild)

clone_node (deep)

clone_node_with_error (deep)

compare_document_position (other)

contains (other)

get_base_uri ()

get_child_nodes ()

get_first_child ()

get_last_child ()

get_local_name ()

get_namespace_uri ()

get_next_sibling ()

get_node_name ()

get_node_type ()

get_node_value ()

get_owner_document ()

get_parent_element ()

get_parent_node ()

get_prefix ()

get_previous_sibling ()

get_text_content ()

has_child_nodes ()

insert_before (newChild, refChild)

is_default_namespace (namespaceURI)

is_equal_node (other)

is_same_node (other)

is_supported (feature, version)

lookup_namespace_uri (prefix)

lookup_prefix (namespaceURI)

normalize ()

remove_child (oldChild)

replace_child (newChild, oldChild)

set_node_value (value)

set_prefix (value)

set_text_content (value)

Virtual Methods

Inherited:

GObject.Object (7), WebKit2WebExtension.DOMEventTarget (3)

Properties

Inherited:

WebKit2WebExtension.DOMObject (1)

Name

Type

Flags

Short Description

base-uri

str

r

read-only str Node:base-uri

child-nodes

WebKit2WebExtension.DOMNodeList

r

read-only WebKit2WebExtension.DOMNodeList Node:child-nodes

first-child

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Node:first-child

last-child

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Node:last-child

next-sibling

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Node:next-sibling

node-name

str

r

read-only str Node:node-name

node-type

int

r

read-only gushort Node:node-type

node-value

str

r/w

read-write str Node:node-value

owner-document

WebKit2WebExtension.DOMDocument

r

read-only WebKit2WebExtension.DOMDocument Node:owner-document

parent-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Node:parent-element

parent-node

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Node:parent-node

previous-sibling

WebKit2WebExtension.DOMNode

r

read-only WebKit2WebExtension.DOMNode Node:previous-sibling

text-content

str

r/w

read-write str Node:text-content

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

WebKit2WebExtension.DOMObject

r

Class Details

class WebKit2WebExtension.DOMNode(**kwargs)
Bases:

WebKit2WebExtension.DOMObject, WebKit2WebExtension.DOMEventTarget

Abstract:

No

Structure:

WebKit2WebExtension.DOMNodeClass

classmethod for_js_value(value)
Parameters:

value (JavaScriptCore.Value) – a JavaScriptCore.Value

Returns:

a WebKit2WebExtension.DOMNode, or None if value doesn’t reference a DOM node.

Return type:

WebKit2WebExtension.DOMNode

Get the WebKit2WebExtension.DOMNode for the DOM node referenced by value.

New in version 2.22.

Deprecated since version 2.40.

append_child(newChild)
Parameters:

newChild (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

clone_node(deep)
Parameters:

deep (bool) – A bool

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.14: Use WebKit2WebExtension.DOMNode.clone_node_with_error() instead.

clone_node_with_error(deep)
Parameters:

deep (bool) – A bool

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

compare_document_position(other)
Parameters:

other (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Returns:

A #gushort

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

contains(other)
Parameters:

other (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

get_base_uri()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_child_nodes()
Returns:

A WebKit2WebExtension.DOMNodeList

Return type:

WebKit2WebExtension.DOMNodeList

Deprecated since version 2.22: Use JavaScriptCore API instead

get_first_child()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_last_child()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_local_name()
Returns:

A str

Return type:

str

get_namespace_uri()
Returns:

A str

Return type:

str

get_next_sibling()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_node_name()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_node_type()
Returns:

A #gushort

Return type:

int

Deprecated since version 2.22: Use JavaScriptCore API instead

get_node_value()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_owner_document()
Returns:

A WebKit2WebExtension.DOMDocument

Return type:

WebKit2WebExtension.DOMDocument

Deprecated since version 2.22: Use JavaScriptCore API instead

get_parent_element()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

get_parent_node()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_prefix()
Returns:

A str

Return type:

str

Deprecated since version 2.14: Use WebKit2WebExtension.DOMAttr.get_prefix() or WebKit2WebExtension.DOMElement.get_prefix() instead.

get_previous_sibling()
Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

get_text_content()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

has_child_nodes()
Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

insert_before(newChild, refChild)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

is_default_namespace(namespaceURI)
Parameters:

namespaceURI (str) – A str

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

is_equal_node(other)
Parameters:

other (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

is_same_node(other)
Parameters:

other (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

is_supported(feature, version)
Parameters:
Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

lookup_namespace_uri(prefix)
Parameters:

prefix (str) – A str

Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

lookup_prefix(namespaceURI)
Parameters:

namespaceURI (str) – A str

Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

normalize()

Deprecated since version 2.22: Use JavaScriptCore API instead

remove_child(oldChild)
Parameters:

oldChild (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

replace_child(newChild, oldChild)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

set_node_value(value)
Parameters:

value (str) – A str

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_prefix(value)
Parameters:

value (str) – A str

Raises:

GLib.Error

Deprecated since version 2.14.

set_text_content(value)
Parameters:

value (str) – A str

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

Property Details

WebKit2WebExtension.DOMNode.props.base_uri
Name:

base-uri

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Node:base-uri

WebKit2WebExtension.DOMNode.props.child_nodes
Name:

child-nodes

Type:

WebKit2WebExtension.DOMNodeList

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNodeList Node:child-nodes

WebKit2WebExtension.DOMNode.props.first_child
Name:

first-child

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Node:first-child

WebKit2WebExtension.DOMNode.props.last_child
Name:

last-child

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Node:last-child

WebKit2WebExtension.DOMNode.props.next_sibling
Name:

next-sibling

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Node:next-sibling

WebKit2WebExtension.DOMNode.props.node_name
Name:

node-name

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Node:node-name

WebKit2WebExtension.DOMNode.props.node_type
Name:

node-type

Type:

int

Default Value:

0

Flags:

READABLE

read-only gushort Node:node-type

WebKit2WebExtension.DOMNode.props.node_value
Name:

node-value

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Node:node-value

WebKit2WebExtension.DOMNode.props.owner_document
Name:

owner-document

Type:

WebKit2WebExtension.DOMDocument

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMDocument Node:owner-document

WebKit2WebExtension.DOMNode.props.parent_element
Name:

parent-element

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Node:parent-element

WebKit2WebExtension.DOMNode.props.parent_node
Name:

parent-node

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Node:parent-node

WebKit2WebExtension.DOMNode.props.previous_sibling
Name:

previous-sibling

Type:

WebKit2WebExtension.DOMNode

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMNode Node:previous-sibling

WebKit2WebExtension.DOMNode.props.text_content
Name:

text-content

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Node:text-content