WebKit2WebExtension.DOMDocument

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.DOMDocument WebKit2WebExtension.DOMDocument WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMEventTarget->WebKit2WebExtension.DOMNode WebKit2WebExtension.DOMNode->WebKit2WebExtension.DOMDocument WebKit2WebExtension.DOMObject->WebKit2WebExtension.DOMNode

Subclasses:

WebKit2WebExtension.DOMHTMLDocument

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

adopt_node (source)

caret_range_from_point (x, y)

create_attribute (name)

create_attribute_ns (namespaceURI, qualifiedName)

create_cdata_section (data)

create_comment (data)

create_css_style_declaration ()

create_document_fragment ()

create_element (tagName)

create_element_ns (namespaceURI, qualifiedName)

create_entity_reference (name)

create_event (eventType)

create_expression (expression, resolver)

create_node_iterator (root, whatToShow, filter, expandEntityReferences)

create_ns_resolver (nodeResolver)

create_processing_instruction (target, data)

create_range ()

create_text_node (data)

create_tree_walker (root, whatToShow, filter, expandEntityReferences)

element_from_point (x, y)

evaluate (expression, contextNode, resolver, type, inResult)

exec_command (command, userInterface, value)

exit_pointer_lock ()

get_active_element ()

get_anchors ()

get_applets ()

get_body ()

get_character_set ()

get_charset ()

get_child_element_count ()

get_children ()

get_compat_mode ()

get_content_type ()

get_cookie ()

get_current_script ()

get_default_charset ()

get_default_view ()

get_design_mode ()

get_dir ()

get_doctype ()

get_document_element ()

get_document_uri ()

get_domain ()

get_element_by_id (elementId)

get_elements_by_class_name (class_name)

get_elements_by_class_name_as_html_collection (classNames)

get_elements_by_name (elementName)

get_elements_by_tag_name (tag_name)

get_elements_by_tag_name_as_html_collection (tagname)

get_elements_by_tag_name_ns (namespace_uri, tag_name)

get_elements_by_tag_name_ns_as_html_collection (namespaceURI, localName)

get_embeds ()

get_first_element_child ()

get_forms ()

get_head ()

get_hidden ()

get_images ()

get_implementation ()

get_input_encoding ()

get_last_element_child ()

get_last_modified ()

get_links ()

get_origin ()

get_override_style (element, pseudoElement)

get_plugins ()

get_pointer_lock_element ()

get_preferred_stylesheet_set ()

get_ready_state ()

get_referrer ()

get_scripts ()

get_scrolling_element ()

get_selected_stylesheet_set ()

get_style_sheets ()

get_title ()

get_url ()

get_visibility_state ()

get_webkit_current_fullscreen_element ()

get_webkit_fullscreen_element ()

get_webkit_fullscreen_enabled ()

get_webkit_fullscreen_keyboard_input_allowed ()

get_webkit_is_fullscreen ()

get_xml_encoding ()

get_xml_standalone ()

get_xml_version ()

has_focus ()

import_node (importedNode, deep)

query_command_enabled (command)

query_command_indeterm (command)

query_command_state (command)

query_command_supported (command)

query_command_value (command)

query_selector (selectors)

query_selector_all (selectors)

set_body (value)

set_charset (value)

set_cookie (value)

set_design_mode (value)

set_dir (value)

set_document_uri (value)

set_selected_stylesheet_set (value)

set_title (value)

set_xml_standalone (value)

set_xml_version (value)

webkit_cancel_fullscreen ()

webkit_exit_fullscreen ()

Virtual Methods

Inherited:

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

Properties

Inherited:

WebKit2WebExtension.DOMNode (13), WebKit2WebExtension.DOMObject (1)

Name

Type

Flags

Short Description

active-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:active-element

anchors

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:anchors

applets

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:applets

body

WebKit2WebExtension.DOMHTMLElement

r

read-only WebKit2WebExtension.DOMHTMLElement Document:body

character-set

str

r

read-only str Document:character-set

charset

str

r/w

read-write str Document:charset

child-element-count

int

r

read-only int Document:child-element-count

children

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:children

compat-mode

str

r

read-only str Document:compat-mode

content-type

str

r

read-only str Document:content-type

cookie

str

r/w

read-write str Document:cookie

current-script

WebKit2WebExtension.DOMHTMLScriptElement

r

read-only WebKit2WebExtension.DOMHTMLScriptElement Document:current-script

default-view

WebKit2WebExtension.DOMDOMWindow

r

read-only WebKit2WebExtension.DOMDOMWindow Document:default-view

design-mode

str

r/w

read-write str Document:design-mode

dir

str

r/w

read-write str Document:dir

doctype

WebKit2WebExtension.DOMDocumentType

r

read-only WebKit2WebExtension.DOMDocumentType Document:doctype

document-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:document-element

document-uri

str

r/w

read-write str Document:document-uri

domain

str

r

read-only str Document:domain

embeds

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:embeds

first-element-child

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:first-element-child

forms

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:forms

head

WebKit2WebExtension.DOMHTMLHeadElement

r

read-only WebKit2WebExtension.DOMHTMLHeadElement Document:head

hidden

bool

r

read-only bool Document:hidden

images

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:images

implementation

WebKit2WebExtension.DOMDOMImplementation

r

read-only WebKit2WebExtension.DOMDOMImplementation Document:implementation

input-encoding

str

r

read-only str Document:input-encoding

last-element-child

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:last-element-child

last-modified

str

r

read-only str Document:last-modified

links

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:links

origin

str

r

read-only str Document:origin

plugins

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:plugins

pointer-lock-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:pointer-lock-element

preferred-stylesheet-set

str

r

read-only str Document:preferred-stylesheet-set

ready-state

str

r

read-only str Document:ready-state

referrer

str

r

read-only str Document:referrer

scripts

WebKit2WebExtension.DOMHTMLCollection

r

read-only WebKit2WebExtension.DOMHTMLCollection Document:scripts

scrolling-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:scrolling-element

selected-stylesheet-set

str

r/w

read-write str Document:selected-stylesheet-set

style-sheets

WebKit2WebExtension.DOMStyleSheetList

r

read-only WebKit2WebExtension.DOMStyleSheetList Document:style-sheets

title

str

r/w

read-write str Document:title

url

str

r

read-only str Document:url

visibility-state

str

r

read-only str Document:visibility-state

webkit-current-full-screen-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:webkit-current-full-screen-element

webkit-full-screen-keyboard-input-allowed

bool

r

read-only bool Document:webkit-full-screen-keyboard-input-allowed

webkit-fullscreen-element

WebKit2WebExtension.DOMElement

r

read-only WebKit2WebExtension.DOMElement Document:webkit-fullscreen-element

webkit-fullscreen-enabled

bool

r

read-only bool Document:webkit-fullscreen-enabled

webkit-is-full-screen

bool

r

read-only bool Document:webkit-is-full-screen

xml-encoding

str

r

read-only str Document:xml-encoding

xml-standalone

bool

r/w

read-write bool Document:xml-standalone

xml-version

str

r/w

read-write str Document:xml-version

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

WebKit2WebExtension.DOMNode

r

Class Details

class WebKit2WebExtension.DOMDocument(**kwargs)
Bases:

WebKit2WebExtension.DOMNode

Abstract:

No

Structure:

WebKit2WebExtension.DOMDocumentClass

adopt_node(source)
Parameters:

source (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

caret_range_from_point(x, y)
Parameters:
Returns:

A WebKit2WebExtension.DOMRange

Return type:

WebKit2WebExtension.DOMRange

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

create_attribute(name)
Parameters:

name (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMAttr

Return type:

WebKit2WebExtension.DOMAttr

Deprecated since version 2.22: Use JavaScriptCore API instead

create_attribute_ns(namespaceURI, qualifiedName)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMAttr

Return type:

WebKit2WebExtension.DOMAttr

Deprecated since version 2.22: Use JavaScriptCore API instead

create_cdata_section(data)
Parameters:

data (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMCDATASection

Return type:

WebKit2WebExtension.DOMCDATASection

Deprecated since version 2.22: Use JavaScriptCore API instead

create_comment(data)
Parameters:

data (str) – A str

Returns:

A WebKit2WebExtension.DOMComment

Return type:

WebKit2WebExtension.DOMComment

Deprecated since version 2.22: Use JavaScriptCore API instead

create_css_style_declaration()
Returns:

A WebKit2WebExtension.DOMCSSStyleDeclaration

Return type:

WebKit2WebExtension.DOMCSSStyleDeclaration

Deprecated since version 2.22: Use JavaScriptCore API instead

create_document_fragment()
Returns:

A WebKit2WebExtension.DOMDocumentFragment

Return type:

WebKit2WebExtension.DOMDocumentFragment

Deprecated since version 2.22: Use JavaScriptCore API instead

create_element(tagName)
Parameters:

tagName (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

create_element_ns(namespaceURI, qualifiedName)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

create_entity_reference(name)
Parameters:

name (str or None) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMEntityReference

Return type:

WebKit2WebExtension.DOMEntityReference

This function has been removed from the DOM spec and it just returns None.

Deprecated since version 2.12.

create_event(eventType)
Parameters:

eventType (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMEvent

Return type:

WebKit2WebExtension.DOMEvent

Deprecated since version 2.22: Use JavaScriptCore API instead

create_expression(expression, resolver)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMXPathExpression

Return type:

WebKit2WebExtension.DOMXPathExpression

Deprecated since version 2.22: Use JavaScriptCore API instead

create_node_iterator(root, whatToShow, filter, expandEntityReferences)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNodeIterator

Return type:

WebKit2WebExtension.DOMNodeIterator

Deprecated since version 2.22: Use JavaScriptCore API instead

create_ns_resolver(nodeResolver)
Parameters:

nodeResolver (WebKit2WebExtension.DOMNode) – A WebKit2WebExtension.DOMNode

Returns:

A WebKit2WebExtension.DOMXPathNSResolver

Return type:

WebKit2WebExtension.DOMXPathNSResolver

Deprecated since version 2.22: Use JavaScriptCore API instead

create_processing_instruction(target, data)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMProcessingInstruction

Return type:

WebKit2WebExtension.DOMProcessingInstruction

Deprecated since version 2.22: Use JavaScriptCore API instead

create_range()
Returns:

A WebKit2WebExtension.DOMRange

Return type:

WebKit2WebExtension.DOMRange

Deprecated since version 2.22: Use JavaScriptCore API instead

create_text_node(data)
Parameters:

data (str) – A str

Returns:

A WebKit2WebExtension.DOMText

Return type:

WebKit2WebExtension.DOMText

Deprecated since version 2.22: Use JavaScriptCore API instead

create_tree_walker(root, whatToShow, filter, expandEntityReferences)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMTreeWalker

Return type:

WebKit2WebExtension.DOMTreeWalker

Deprecated since version 2.22: Use JavaScriptCore API instead

element_from_point(x, y)
Parameters:
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

evaluate(expression, contextNode, resolver, type, inResult)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMXPathResult

Return type:

WebKit2WebExtension.DOMXPathResult

Deprecated since version 2.22: Use JavaScriptCore API instead

exec_command(command, userInterface, value)
Parameters:
Returns:

A bool

Return type:

bool

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:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

get_anchors()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

Deprecated since version 2.22: Use JavaScriptCore API instead

get_applets()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

Deprecated since version 2.22: Use JavaScriptCore API instead

get_body()
Returns:

A WebKit2WebExtension.DOMHTMLElement

Return type:

WebKit2WebExtension.DOMHTMLElement

Deprecated since version 2.22: Use JavaScriptCore API instead

get_character_set()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_charset()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_child_element_count()
Returns:

A int

Return type:

int

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_children()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_compat_mode()
Returns:

A str

Return type:

str

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_content_type()
Returns:

A str

Return type:

str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

Raises:

GLib.Error

Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_current_script()
Returns:

A WebKit2WebExtension.DOMHTMLScriptElement

Return type:

WebKit2WebExtension.DOMHTMLScriptElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_default_charset()
Returns:

A str

Return type:

str

Deprecated since version 2.14.

get_default_view()
Returns:

A WebKit2WebExtension.DOMDOMWindow

Return type:

WebKit2WebExtension.DOMDOMWindow

Deprecated since version 2.22: Use JavaScriptCore API instead

get_design_mode()
Returns:

A str

Return type:

str

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_dir()
Returns:

A str

Return type:

str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_doctype()
Returns:

A WebKit2WebExtension.DOMDocumentType

Return type:

WebKit2WebExtension.DOMDocumentType

Deprecated since version 2.22: Use JavaScriptCore API instead

get_document_element()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

get_document_uri()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_domain()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_element_by_id(elementId)
Parameters:

elementId (str) – A str

Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

get_elements_by_class_name(class_name)
Parameters:

class_name (str) – a str with the tag name

Returns:

a WebKit2WebExtension.DOMNodeList

Return type:

WebKit2WebExtension.DOMNodeList

get_elements_by_class_name_as_html_collection(classNames)
Parameters:

classNames (str) – A str

Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

New in version 2.12.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_elements_by_name(elementName)
Parameters:

elementName (str) – A str

Returns:

A WebKit2WebExtension.DOMNodeList

Return type:

WebKit2WebExtension.DOMNodeList

Deprecated since version 2.22: Use JavaScriptCore API instead

get_elements_by_tag_name(tag_name)
Parameters:

tag_name (str) – a str with the tag name

Returns:

a WebKit2WebExtension.DOMNodeList

Return type:

WebKit2WebExtension.DOMNodeList

get_elements_by_tag_name_as_html_collection(tagname)
Parameters:

tagname (str) – A str

Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

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:
  • namespace_uri (str) – a str with the namespace URI

  • tag_name (str) – a str with the tag name

Returns:

a WebKit2WebExtension.DOMNodeList

Return type:

WebKit2WebExtension.DOMNodeList

get_elements_by_tag_name_ns_as_html_collection(namespaceURI, localName)
Parameters:
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

New in version 2.12.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_embeds()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_first_element_child()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_forms()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

Deprecated since version 2.22: Use JavaScriptCore API instead

get_head()
Returns:

A WebKit2WebExtension.DOMHTMLHeadElement

Return type:

WebKit2WebExtension.DOMHTMLHeadElement

Deprecated since version 2.22: Use JavaScriptCore API instead

get_hidden()
Returns:

A bool

Return type:

bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_images()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

Deprecated since version 2.22: Use JavaScriptCore API instead

get_implementation()
Returns:

A WebKit2WebExtension.DOMDOMImplementation

Return type:

WebKit2WebExtension.DOMDOMImplementation

Deprecated since version 2.22: Use JavaScriptCore API instead

get_input_encoding()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_last_element_child()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_last_modified()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

Deprecated since version 2.22: Use JavaScriptCore API instead

get_origin()
Returns:

A str

Return type:

str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_override_style(element, pseudoElement)
Parameters:
Returns:

A WebKit2WebExtension.DOMCSSStyleDeclaration

Return type:

WebKit2WebExtension.DOMCSSStyleDeclaration

Deprecated since version 2.22: Use JavaScriptCore API instead

get_plugins()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_pointer_lock_element()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_preferred_stylesheet_set()
Returns:

A str

Return type:

str

This function has been removed and does nothing.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_ready_state()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_referrer()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_scripts()
Returns:

A WebKit2WebExtension.DOMHTMLCollection

Return type:

WebKit2WebExtension.DOMHTMLCollection

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_scrolling_element()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_selected_stylesheet_set()
Returns:

A str

Return type:

str

This function has been removed and does nothing.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_style_sheets()
Returns:

A WebKit2WebExtension.DOMStyleSheetList

Return type:

WebKit2WebExtension.DOMStyleSheetList

Deprecated since version 2.22: Use JavaScriptCore API instead

get_title()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_url()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_visibility_state()
Returns:

A str

Return type:

str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_webkit_current_fullscreen_element()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_webkit_fullscreen_element()
Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_webkit_fullscreen_enabled()
Returns:

A bool

Return type:

bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_webkit_fullscreen_keyboard_input_allowed()
Returns:

A bool

Return type:

bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_webkit_is_fullscreen()
Returns:

A bool

Return type:

bool

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

get_xml_encoding()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

get_xml_standalone()
Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

get_xml_version()
Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

has_focus()
Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

import_node(importedNode, deep)
Parameters:
Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNode

Return type:

WebKit2WebExtension.DOMNode

Deprecated since version 2.22: Use JavaScriptCore API instead

query_command_enabled(command)
Parameters:

command (str) – A str

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

query_command_indeterm(command)
Parameters:

command (str) – A str

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

query_command_state(command)
Parameters:

command (str) – A str

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

query_command_supported(command)
Parameters:

command (str) – A str

Returns:

A bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

query_command_value(command)
Parameters:

command (str) – A str

Returns:

A str

Return type:

str

Deprecated since version 2.22: Use JavaScriptCore API instead

query_selector(selectors)
Parameters:

selectors (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMElement

Return type:

WebKit2WebExtension.DOMElement

Deprecated since version 2.22: Use JavaScriptCore API instead

query_selector_all(selectors)
Parameters:

selectors (str) – A str

Raises:

GLib.Error

Returns:

A WebKit2WebExtension.DOMNodeList

Return type:

WebKit2WebExtension.DOMNodeList

Deprecated since version 2.22: Use JavaScriptCore API instead

set_body(value)
Parameters:

value (WebKit2WebExtension.DOMHTMLElement) – A WebKit2WebExtension.DOMHTMLElement

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_charset(value)
Parameters:

value (str) – A str

Deprecated since version 2.22: Use JavaScriptCore API instead

Parameters:

value (str) – A str

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_design_mode(value)
Parameters:

value (str) – A str

New in version 2.14.

Deprecated since version 2.22: Use JavaScriptCore API instead

set_dir(value)
Parameters:

value (str) – A str

New in version 2.16.

Deprecated since version 2.22: Use JavaScriptCore API instead

set_document_uri(value)
Parameters:

value (str) – A str

Deprecated since version 2.22: Use JavaScriptCore API instead

set_selected_stylesheet_set(value)
Parameters:

value (str) – A str

This function has been removed and does nothing.

Deprecated since version 2.22: Use JavaScriptCore API instead

set_title(value)
Parameters:

value (str) – A str

Deprecated since version 2.22: Use JavaScriptCore API instead

set_xml_standalone(value)
Parameters:

value (bool) – A bool

Raises:

GLib.Error

Deprecated since version 2.22: Use JavaScriptCore API instead

set_xml_version(value)
Parameters:

value (str) – A str

Raises:

GLib.Error

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:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:active-element

WebKit2WebExtension.DOMDocument.props.anchors
Name:

anchors

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:anchors

WebKit2WebExtension.DOMDocument.props.applets
Name:

applets

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:applets

WebKit2WebExtension.DOMDocument.props.body
Name:

body

Type:

WebKit2WebExtension.DOMHTMLElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLElement Document:body

WebKit2WebExtension.DOMDocument.props.character_set
Name:

character-set

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:character-set

WebKit2WebExtension.DOMDocument.props.charset
Name:

charset

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:charset

WebKit2WebExtension.DOMDocument.props.child_element_count
Name:

child-element-count

Type:

int

Default Value:

0

Flags:

READABLE

read-only int Document:child-element-count

WebKit2WebExtension.DOMDocument.props.children
Name:

children

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:children

WebKit2WebExtension.DOMDocument.props.compat_mode
Name:

compat-mode

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:compat-mode

WebKit2WebExtension.DOMDocument.props.content_type
Name:

content-type

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:content-type

WebKit2WebExtension.DOMDocument.props.cookie
Name:

cookie

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:cookie

WebKit2WebExtension.DOMDocument.props.current_script
Name:

current-script

Type:

WebKit2WebExtension.DOMHTMLScriptElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLScriptElement Document:current-script

WebKit2WebExtension.DOMDocument.props.default_view
Name:

default-view

Type:

WebKit2WebExtension.DOMDOMWindow

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMDOMWindow Document:default-view

WebKit2WebExtension.DOMDocument.props.design_mode
Name:

design-mode

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:design-mode

WebKit2WebExtension.DOMDocument.props.dir
Name:

dir

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:dir

WebKit2WebExtension.DOMDocument.props.doctype
Name:

doctype

Type:

WebKit2WebExtension.DOMDocumentType

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMDocumentType Document:doctype

WebKit2WebExtension.DOMDocument.props.document_element
Name:

document-element

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:document-element

WebKit2WebExtension.DOMDocument.props.document_uri
Name:

document-uri

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:document-uri

WebKit2WebExtension.DOMDocument.props.domain
Name:

domain

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:domain

WebKit2WebExtension.DOMDocument.props.embeds
Name:

embeds

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:embeds

WebKit2WebExtension.DOMDocument.props.first_element_child
Name:

first-element-child

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:first-element-child

WebKit2WebExtension.DOMDocument.props.forms
Name:

forms

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:forms

WebKit2WebExtension.DOMDocument.props.head
Name:

head

Type:

WebKit2WebExtension.DOMHTMLHeadElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLHeadElement Document:head

WebKit2WebExtension.DOMDocument.props.hidden
Name:

hidden

Type:

bool

Default Value:

False

Flags:

READABLE

read-only bool Document:hidden

WebKit2WebExtension.DOMDocument.props.images
Name:

images

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:images

WebKit2WebExtension.DOMDocument.props.implementation
Name:

implementation

Type:

WebKit2WebExtension.DOMDOMImplementation

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMDOMImplementation Document:implementation

WebKit2WebExtension.DOMDocument.props.input_encoding
Name:

input-encoding

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:input-encoding

WebKit2WebExtension.DOMDocument.props.last_element_child
Name:

last-element-child

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:last-element-child

WebKit2WebExtension.DOMDocument.props.last_modified
Name:

last-modified

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:last-modified

Name:

links

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:links

WebKit2WebExtension.DOMDocument.props.origin
Name:

origin

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:origin

WebKit2WebExtension.DOMDocument.props.plugins
Name:

plugins

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:plugins

WebKit2WebExtension.DOMDocument.props.pointer_lock_element
Name:

pointer-lock-element

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:pointer-lock-element

WebKit2WebExtension.DOMDocument.props.preferred_stylesheet_set
Name:

preferred-stylesheet-set

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:preferred-stylesheet-set

WebKit2WebExtension.DOMDocument.props.ready_state
Name:

ready-state

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:ready-state

WebKit2WebExtension.DOMDocument.props.referrer
Name:

referrer

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:referrer

WebKit2WebExtension.DOMDocument.props.scripts
Name:

scripts

Type:

WebKit2WebExtension.DOMHTMLCollection

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMHTMLCollection Document:scripts

WebKit2WebExtension.DOMDocument.props.scrolling_element
Name:

scrolling-element

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:scrolling-element

WebKit2WebExtension.DOMDocument.props.selected_stylesheet_set
Name:

selected-stylesheet-set

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:selected-stylesheet-set

WebKit2WebExtension.DOMDocument.props.style_sheets
Name:

style-sheets

Type:

WebKit2WebExtension.DOMStyleSheetList

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMStyleSheetList Document:style-sheets

WebKit2WebExtension.DOMDocument.props.title
Name:

title

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:title

WebKit2WebExtension.DOMDocument.props.url
Name:

url

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:url

WebKit2WebExtension.DOMDocument.props.visibility_state
Name:

visibility-state

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:visibility-state

WebKit2WebExtension.DOMDocument.props.webkit_current_full_screen_element
Name:

webkit-current-full-screen-element

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:webkit-current-full-screen-element

WebKit2WebExtension.DOMDocument.props.webkit_full_screen_keyboard_input_allowed
Name:

webkit-full-screen-keyboard-input-allowed

Type:

bool

Default Value:

False

Flags:

READABLE

read-only bool Document:webkit-full-screen-keyboard-input-allowed

WebKit2WebExtension.DOMDocument.props.webkit_fullscreen_element
Name:

webkit-fullscreen-element

Type:

WebKit2WebExtension.DOMElement

Default Value:

None

Flags:

READABLE

read-only WebKit2WebExtension.DOMElement Document:webkit-fullscreen-element

WebKit2WebExtension.DOMDocument.props.webkit_fullscreen_enabled
Name:

webkit-fullscreen-enabled

Type:

bool

Default Value:

False

Flags:

READABLE

read-only bool Document:webkit-fullscreen-enabled

WebKit2WebExtension.DOMDocument.props.webkit_is_full_screen
Name:

webkit-is-full-screen

Type:

bool

Default Value:

False

Flags:

READABLE

read-only bool Document:webkit-is-full-screen

WebKit2WebExtension.DOMDocument.props.xml_encoding
Name:

xml-encoding

Type:

str

Default Value:

''

Flags:

READABLE

read-only str Document:xml-encoding

WebKit2WebExtension.DOMDocument.props.xml_standalone
Name:

xml-standalone

Type:

bool

Default Value:

False

Flags:

READABLE, WRITABLE

read-write bool Document:xml-standalone

WebKit2WebExtension.DOMDocument.props.xml_version
Name:

xml-version

Type:

str

Default Value:

''

Flags:

READABLE, WRITABLE

read-write str Document:xml-version