WebKit2WebExtension.DOMNode¶
- Subclasses:
WebKit2WebExtension.DOMAttr
,WebKit2WebExtension.DOMCharacterData
,WebKit2WebExtension.DOMDocument
,WebKit2WebExtension.DOMDocumentFragment
,WebKit2WebExtension.DOMDocumentType
,WebKit2WebExtension.DOMElement
,WebKit2WebExtension.DOMEntityReference
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only gushort Node:node-type |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class WebKit2WebExtension.DOMNode(**kwargs)¶
- Bases:
WebKit2WebExtension.DOMObject
,WebKit2WebExtension.DOMEventTarget
- Abstract:
No
- Structure:
- classmethod for_js_value(value)¶
- Parameters:
value (
JavaScriptCore.Value
) – aJavaScriptCore.Value
- Returns:
a
WebKit2WebExtension.DOMNode
, orNone
if value doesn’t reference a DOM node.- Return type:
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
) – AWebKit2WebExtension.DOMNode
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- clone_node(deep)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.14: Use
WebKit2WebExtension.DOMNode.clone_node_with_error
() instead.
- clone_node_with_error(deep)¶
- Parameters:
- Raises:
- Returns:
- Return type:
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- compare_document_position(other)¶
- Parameters:
other (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Returns:
A #gushort
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- contains(other)¶
- Parameters:
other (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Returns:
A
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_base_uri()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_child_nodes()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_first_child()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_last_child()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_local_name()¶
-
Deprecated since version 2.14: Use
WebKit2WebExtension.DOMAttr.get_local_name
() orWebKit2WebExtension.DOMElement.get_local_name
() instead.
- get_namespace_uri()¶
-
Deprecated since version 2.14: Use
WebKit2WebExtension.DOMAttr.get_namespace_uri
() orWebKit2WebExtension.DOMElement.get_namespace_uri
() instead.
- get_next_sibling()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_node_name()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_node_type()¶
- Returns:
A #gushort
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_node_value()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_owner_document()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_parent_element()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_parent_node()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_prefix()¶
-
Deprecated since version 2.14: Use
WebKit2WebExtension.DOMAttr.get_prefix
() orWebKit2WebExtension.DOMElement.get_prefix
() instead.
- get_previous_sibling()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_text_content()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- has_child_nodes()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- insert_before(newChild, refChild)¶
- Parameters:
newChild (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
refChild (
WebKit2WebExtension.DOMNode
orNone
) – AWebKit2WebExtension.DOMNode
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- is_default_namespace(namespaceURI)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- is_equal_node(other)¶
- Parameters:
other (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Returns:
A
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- is_same_node(other)¶
- Parameters:
other (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Returns:
A
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- is_supported(feature, version)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- lookup_namespace_uri(prefix)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- lookup_prefix(namespaceURI)¶
-
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
) – AWebKit2WebExtension.DOMNode
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- replace_child(newChild, oldChild)¶
- Parameters:
newChild (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
oldChild (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_node_value(value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_prefix(value)¶
- Parameters:
- Raises:
Deprecated since version 2.14.
- set_text_content(value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
Property Details¶
- WebKit2WebExtension.DOMNode.props.child_nodes¶
- Name:
child-nodes
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNodeList
Node:child-nodes
- WebKit2WebExtension.DOMNode.props.first_child¶
- Name:
first-child
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
Node:first-child
- WebKit2WebExtension.DOMNode.props.last_child¶
- Name:
last-child
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
Node:last-child
- WebKit2WebExtension.DOMNode.props.next_sibling¶
- Name:
next-sibling
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
Node:next-sibling
- WebKit2WebExtension.DOMNode.props.node_type¶
-
read-only gushort Node:node-type
- WebKit2WebExtension.DOMNode.props.owner_document¶
- Name:
owner-document
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMDocument
Node:owner-document
- WebKit2WebExtension.DOMNode.props.parent_element¶
- Name:
parent-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Node:parent-element
- WebKit2WebExtension.DOMNode.props.parent_node¶
- Name:
parent-node
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
Node:parent-node
- WebKit2WebExtension.DOMNode.props.previous_sibling¶
- Name:
previous-sibling
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNode
Node:previous-sibling