WebKit2WebExtension.DOMElement¶
- 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/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
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/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r/w |
read-write |
||
r/w |
read-write |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
||
r |
read-only |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class WebKit2WebExtension.DOMElement(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- blur()¶
Deprecated since version 2.22: Use JavaScriptCore API instead
- closest(selectors)¶
- Parameters:
- Raises:
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- focus()¶
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_attribute(name)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_attribute_node(name)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_attribute_node_ns(namespaceURI, localName)¶
- Parameters:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_attribute_ns(namespaceURI, localName)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_attributes()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_bounding_client_rect()¶
- Returns:
- Return type:
Returns a
WebKit2WebExtension.DOMClientRect
representing the size and position of self relative to the viewport.New in version 2.18.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_child_element_count()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_children()¶
- Returns:
- Return type:
New in version 2.10.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_class_list()¶
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_class_name()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_client_height()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_client_left()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_client_rects()¶
- Returns:
- Return type:
Returns a collection of
WebKit2WebExtension.DOMClientRect
objects, each of which describe the size and position of a CSS border box relative to the viewport.New in version 2.18.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_client_top()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_client_width()¶
-
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.DOMElement.get_elements_by_class_name_as_html_collection
() instead.
- get_elements_by_class_name_as_html_collection(name)¶
- Parameters:
- Returns:
- Return type:
New in version 2.12.
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.DOMElement.get_elements_by_tag_name_as_html_collection
() instead.
- get_elements_by_tag_name_as_html_collection(name)¶
- 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.DOMElement.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_first_element_child()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_id()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_inner_html()¶
-
New in version 2.8.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_last_element_child()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_local_name()¶
-
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_namespace_uri()¶
-
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_next_element_sibling()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_offset_height()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_offset_left()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_offset_parent()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_offset_top()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_offset_width()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_outer_html()¶
-
New in version 2.8.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_prefix()¶
-
New in version 2.14.
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_previous_element_sibling()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_scroll_height()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_scroll_left()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_scroll_top()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_scroll_width()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_style()¶
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_tag_name()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- get_webkit_region_overset()¶
-
CSS Regions support has been removed. This function does nothing.
Deprecated since version 2.20.
- has_attribute(name)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- has_attribute_ns(namespaceURI, localName)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- has_attributes()¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- html_input_element_get_auto_filled()¶
- Returns:
whether self has been filled automatically.
- Return type:
Get whether the element is an HTML input element that has been filled automatically.
New in version 2.22.
Deprecated since version 2.40: Use
WebKit2WebExtension.WebFormManager.input_element_is_auto_filled
() instead.
- html_input_element_is_user_edited()¶
- Returns:
whether self has been edited by a user action.
- Return type:
Get whether self is an HTML text input element that has been edited by a user action.
New in version 2.22.
Deprecated since version 2.40: Use
WebKit2WebExtension.WebFormManager.input_element_is_user_edited
() instead.
- html_input_element_set_auto_filled(auto_filled)¶
- Parameters:
auto_filled (
bool
) – value to set
Set whether the element is an HTML input element that has been filled automatically. If self is not an HTML input element this function does nothing.
New in version 2.22.
Deprecated since version 2.40: Use
WebKit2WebExtension.WebFormManager.input_element_auto_fill
() instead.
- html_input_element_set_editing_value(value)¶
- Parameters:
value (
str
) – the text to set
Set the value of an HTML input element as if it had been edited by the user, triggering a change event. If self is not an HTML input element this function does nothing.
New in version 2.22.
Deprecated since version 2.40: Use
WebKit2WebExtension.WebFormManager.input_element_auto_fill
() instead.
- insert_adjacent_element(where, element)¶
- Parameters:
element (
WebKit2WebExtension.DOMElement
) – AWebKit2WebExtension.DOMElement
- Raises:
- Returns:
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- insert_adjacent_html(where, html)¶
- Parameters:
- Raises:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- insert_adjacent_text(where, text)¶
- Parameters:
- Raises:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- matches(selectors)¶
- Parameters:
- Raises:
- Returns:
A
bool
- Return type:
New in version 2.16.
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
- remove()¶
- Raises:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- remove_attribute(name)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- remove_attribute_node(oldAttr)¶
- Parameters:
oldAttr (
WebKit2WebExtension.DOMAttr
) – AWebKit2WebExtension.DOMAttr
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- remove_attribute_ns(namespaceURI, localName)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- request_pointer_lock()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- scroll_by_lines(lines)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- scroll_by_pages(pages)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- scroll_into_view(alignWithTop)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- scroll_into_view_if_needed(centerIfNeeded)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_attribute(name, value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_attribute_node(newAttr)¶
- Parameters:
newAttr (
WebKit2WebExtension.DOMAttr
) – AWebKit2WebExtension.DOMAttr
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_attribute_node_ns(newAttr)¶
- Parameters:
newAttr (
WebKit2WebExtension.DOMAttr
) – AWebKit2WebExtension.DOMAttr
- Raises:
- Returns:
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_attribute_ns(namespaceURI, qualifiedName, value)¶
- Parameters:
- Raises:
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_class_name(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_id(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_inner_html(value)¶
- Parameters:
- Raises:
New in version 2.8.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_outer_html(value)¶
- Parameters:
- Raises:
New in version 2.8.
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_scroll_left(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- set_scroll_top(value)¶
-
Deprecated since version 2.22: Use JavaScriptCore API instead
- webkit_matches_selector(selectors)¶
- Parameters:
- Raises:
- Returns:
A
bool
- Return type:
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
- webkit_request_fullscreen()¶
New in version 2.16.
Deprecated since version 2.22: Use JavaScriptCore API instead
Property Details¶
- WebKit2WebExtension.DOMElement.props.attributes¶
- Name:
attributes
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMNamedNodeMap
Element:attributes
- WebKit2WebExtension.DOMElement.props.children¶
- Name:
children
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMHTMLCollection
Element:children
- WebKit2WebExtension.DOMElement.props.class_list¶
- Name:
class-list
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMDOMTokenList
Element:class-list
- WebKit2WebExtension.DOMElement.props.first_element_child¶
- Name:
first-element-child
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Element:first-element-child
- WebKit2WebExtension.DOMElement.props.last_element_child¶
- Name:
last-element-child
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Element:last-element-child
- WebKit2WebExtension.DOMElement.props.next_element_sibling¶
- Name:
next-element-sibling
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Element:next-element-sibling
- WebKit2WebExtension.DOMElement.props.offset_parent¶
- Name:
offset-parent
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Element:offset-parent
- WebKit2WebExtension.DOMElement.props.previous_element_sibling¶
- Name:
previous-element-sibling
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMElement
Element:previous-element-sibling
- WebKit2WebExtension.DOMElement.props.scroll_height¶
- Name:
scroll-height
- Type:
- Default Value:
0
- Flags:
read-only
int
Element:scroll-height
- WebKit2WebExtension.DOMElement.props.scroll_width¶
- Name:
scroll-width
- Type:
- Default Value:
0
- Flags:
read-only
int
Element:scroll-width
- WebKit2WebExtension.DOMElement.props.style¶
- Name:
style
- Type:
- Default Value:
- Flags:
read-only
WebKit2WebExtension.DOMCSSStyleDeclaration
Element:style