WebKit2WebExtension.DOMDocument¶
- Subclasses:
Methods¶
- Inherited:
WebKit2WebExtension.DOMNode (36), GObject.Object (37), WebKit2WebExtension.DOMEventTarget (3)
- Structs:
Virtual Methods¶
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r |
read-only |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r/w |
read-write |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class WebKit2WebExtension.DOMDocument(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- adopt_node(source)¶
- Parameters:
source (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- caret_range_from_point(x, y)¶
- Parameters:
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_attribute(name)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_attribute_ns(namespaceURI, qualifiedName)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_cdata_section(data)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_comment(data)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_css_style_declaration()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_document_fragment()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_element(tagName)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_element_ns(namespaceURI, qualifiedName)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_entity_reference(name)¶
- Parameters:
- Raises:
- Returns:
- Return type:
This function has been removed from the DOM spec and it just returns
None
.Deprecated since version 2.12.
- create_event(eventType)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_expression(expression, resolver)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_node_iterator(root, whatToShow, filter, expandEntityReferences)¶
- Parameters:
root (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
filter (
WebKit2WebExtension.DOMNodeFilter
orNone
) – AWebKit2WebExtension.DOMNodeFilter
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_ns_resolver(nodeResolver)¶
- Parameters:
nodeResolver (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_processing_instruction(target, data)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_range()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_text_node(data)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- create_tree_walker(root, whatToShow, filter, expandEntityReferences)¶
- Parameters:
root (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
filter (
WebKit2WebExtension.DOMNodeFilter
orNone
) – AWebKit2WebExtension.DOMNodeFilter
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- element_from_point(x, y)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- evaluate(expression, contextNode, resolver, type, inResult)¶
- Parameters:
contextNode (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
resolver (
WebKit2WebExtension.DOMXPathNSResolver
orNone
) – AWebKit2WebExtension.DOMXPathNSResolver
type (
int
) – A #gushortinResult (
WebKit2WebExtension.DOMXPathResult
orNone
) – AWebKit2WebExtension.DOMXPathResult
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- exec_command(command, userInterface, value)¶
- Parameters:
- Returns:
A
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- exit_pointer_lock()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_active_element()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_anchors()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_applets()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_body()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_character_set()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_charset()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_child_element_count()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_children()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_compat_mode()¶
-
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_content_type()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_cookie()¶
- Raises:
- Returns:
A
str
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_current_script()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_default_view()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_design_mode()¶
-
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_dir()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_doctype()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_document_element()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_document_uri()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_domain()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_element_by_id(elementId)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_elements_by_class_name(class_name)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.12: Use
WebKit2WebExtension.DOMDocument.get_elements_by_class_name_as_html_collection
() instead.
- get_elements_by_class_name_as_html_collection(classNames)¶
- Parameters:
- Returns:
- Return type:
New in version 2.12.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_elements_by_name(elementName)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_elements_by_tag_name(tag_name)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.12: Use
WebKit2WebExtension.DOMDocument.get_elements_by_tag_name_as_html_collection
() instead.
- get_elements_by_tag_name_as_html_collection(tagname)¶
- Parameters:
- Returns:
- Return type:
New in version 2.12.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_elements_by_tag_name_ns(namespace_uri, tag_name)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.12: Use
WebKit2WebExtension.DOMDocument.get_elements_by_tag_name_ns_as_html_collection
() instead.
- get_elements_by_tag_name_ns_as_html_collection(namespaceURI, localName)¶
- Parameters:
- Returns:
- Return type:
New in version 2.12.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_embeds()¶
- Returns:
- Return type:
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_first_element_child()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_forms()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_head()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_images()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_implementation()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_input_encoding()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_last_element_child()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_last_modified()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_links()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_origin()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_override_style(element, pseudoElement)¶
- Parameters:
element (
WebKit2WebExtension.DOMElement
) – AWebKit2WebExtension.DOMElement
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_plugins()¶
- Returns:
- Return type:
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_pointer_lock_element()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_preferred_stylesheet_set()¶
-
This function has been removed and does nothing.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_ready_state()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_referrer()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_scripts()¶
- Returns:
- Return type:
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_scrolling_element()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_selected_stylesheet_set()¶
-
This function has been removed and does nothing.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_style_sheets()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_title()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_url()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_visibility_state()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_webkit_current_fullscreen_element()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_webkit_fullscreen_element()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_webkit_fullscreen_enabled()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_webkit_fullscreen_keyboard_input_allowed()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_webkit_is_fullscreen()¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_xml_encoding()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_xml_standalone()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_xml_version()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- has_focus()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- import_node(importedNode, deep)¶
- Parameters:
importedNode (
WebKit2WebExtension.DOMNode
) – AWebKit2WebExtension.DOMNode
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_command_enabled(command)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_command_indeterm(command)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_command_state(command)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_command_supported(command)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_command_value(command)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_selector(selectors)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- query_selector_all(selectors)¶
- Parameters:
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_body(value)¶
- Parameters:
value (
WebKit2WebExtension.DOMHTMLElement
) – AWebKit2WebExtension.DOMHTMLElement
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_charset(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_cookie(value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_design_mode(value)¶
-
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_dir(value)¶
-
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_document_uri(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_selected_stylesheet_set(value)¶
-
This function has been removed and does nothing.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_title(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_xml_standalone(value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_xml_version(value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- webkit_cancel_fullscreen()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- webkit_exit_fullscreen()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
Property Details¶
- WebKit2WebExtension.DOMDocument.props.active_element¶
- Name:
active-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:active-element
- WebKit2WebExtension.DOMDocument.props.anchors¶
- Name:
anchors
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:anchors
- WebKit2WebExtension.DOMDocument.props.applets¶
- Name:
applets
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:applets
- WebKit2WebExtension.DOMDocument.props.body¶
- Name:
body
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLElement
Document:body
- WebKit2WebExtension.DOMDocument.props.child_element_count¶
-
read-only
int
Document:child-element-count
- WebKit2WebExtension.DOMDocument.props.children¶
- Name:
children
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:children
- WebKit2WebExtension.DOMDocument.props.current_script¶
- Name:
current-script
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLScriptElement
Document:current-script
- WebKit2WebExtension.DOMDocument.props.default_view¶
- Name:
default-view
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMDOMWindow
Document:default-view
- WebKit2WebExtension.DOMDocument.props.doctype¶
- Name:
doctype
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMDocumentType
Document:doctype
- WebKit2WebExtension.DOMDocument.props.document_element¶
- Name:
document-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:document-element
- WebKit2WebExtension.DOMDocument.props.embeds¶
- Name:
embeds
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:embeds
- WebKit2WebExtension.DOMDocument.props.first_element_child¶
- Name:
first-element-child
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:first-element-child
- WebKit2WebExtension.DOMDocument.props.forms¶
- Name:
forms
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:forms
- WebKit2WebExtension.DOMDocument.props.head¶
- Name:
head
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLHeadElement
Document:head
- WebKit2WebExtension.DOMDocument.props.images¶
- Name:
images
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:images
- WebKit2WebExtension.DOMDocument.props.implementation¶
- Name:
implementation
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMDOMImplementation
Document:implementation
- WebKit2WebExtension.DOMDocument.props.last_element_child¶
- Name:
last-element-child
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:last-element-child
- WebKit2WebExtension.DOMDocument.props.links¶
- Name:
links
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:links
- WebKit2WebExtension.DOMDocument.props.plugins¶
- Name:
plugins
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:plugins
- WebKit2WebExtension.DOMDocument.props.pointer_lock_element¶
- Name:
pointer-lock-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:pointer-lock-element
- WebKit2WebExtension.DOMDocument.props.preferred_stylesheet_set¶
-
read-only
str
Document:preferred-stylesheet-set
- WebKit2WebExtension.DOMDocument.props.scripts¶
- Name:
scripts
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Document:scripts
- WebKit2WebExtension.DOMDocument.props.scrolling_element¶
- Name:
scrolling-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:scrolling-element
- WebKit2WebExtension.DOMDocument.props.selected_stylesheet_set¶
-
read-write
str
Document:selected-stylesheet-set
- WebKit2WebExtension.DOMDocument.props.style_sheets¶
- Name:
style-sheets
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMStyleSheetList
Document:style-sheets
- WebKit2WebExtension.DOMDocument.props.webkit_current_full_screen_element¶
- Name:
webkit-current-full-screen-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:webkit-current-full-screen-element
- WebKit2WebExtension.DOMDocument.props.webkit_full_screen_keyboard_input_allowed¶
-
read-only
bool
Document:webkit-full-screen-keyboard-input-allowed
- WebKit2WebExtension.DOMDocument.props.webkit_fullscreen_element¶
- Name:
webkit-fullscreen-element
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Document:webkit-fullscreen-element
- WebKit2WebExtension.DOMDocument.props.webkit_fullscreen_enabled¶
-
read-only
bool
Document:webkit-fullscreen-enabled
- WebKit2WebExtension.DOMDocument.props.webkit_is_full_screen¶
-
read-only
bool
Document:webkit-is-full-screen