Element
Object Hierarchy:
Description:
[
CCode ( type_id =
"webkit_dom_element_get_type ()" ) ]
[
GIR ( name =
"DOMElement" ) ]
public class Element :
Node,
EventTarget
Content:
Properties:
Creation methods:
Methods:
- public void blur ()
- public unowned Element closest (string selectors) throws Error
- public void focus ()
- public string get_attribute (string name)
- public unowned Attr get_attribute_node (string name)
- public unowned Attr get_attribute_node_ns (string namespaceURI, string localName)
- public string get_attribute_ns (string namespaceURI, string localName)
- public NamedNodeMap get_attributes ()
- public ClientRect get_bounding_client_rect ()
Returns a
ClientRect representing the size and position of this relative to the viewport.
- public ulong get_child_element_count ()
- public HTMLCollection get_children ()
- public DOMTokenList get_class_list ()
- public string get_class_name ()
- public double get_client_height ()
- public double get_client_left ()
- public ClientRectList get_client_rects ()
Returns a collection of
ClientRect objects, each of which describe the size and position of a CSS
border box relative to the viewport.
- public double get_client_top ()
- public double get_client_width ()
- public NodeList get_elements_by_class_name (string class_name)
- public HTMLCollection get_elements_by_class_name_as_html_collection (string name)
- public NodeList get_elements_by_tag_name (string tag_name)
- public HTMLCollection get_elements_by_tag_name_as_html_collection (string name)
- public NodeList get_elements_by_tag_name_ns (string namespace_uri, string tag_name)
- public HTMLCollection get_elements_by_tag_name_ns_as_html_collection (string namespaceURI, string localName)
- public unowned Element get_first_element_child ()
- public string get_id ()
- public string get_inner_html ()
- public unowned Element get_last_element_child ()
- public string get_local_name ()
- public string get_namespace_uri ()
- public unowned Element get_next_element_sibling ()
- public double get_offset_height ()
- public double get_offset_left ()
- public unowned Element get_offset_parent ()
- public double get_offset_top ()
- public double get_offset_width ()
- public string get_outer_html ()
- public string get_prefix ()
- public unowned Element get_previous_element_sibling ()
- public long get_scroll_height ()
- public long get_scroll_left ()
- public long get_scroll_top ()
- public long get_scroll_width ()
- public CSSStyleDeclaration get_style ()
- public string get_tag_name ()
- public string get_webkit_region_overset ()
CSS Regions support has been removed.
- public bool has_attribute (string name)
- public bool has_attribute_ns (string namespaceURI, string localName)
- public bool has_attributes ()
- public bool html_input_element_get_auto_filled ()
Get whether the element is an HTML input element that has been filled
automatically.
- public bool html_input_element_is_user_edited ()
Get whether this is an HTML text
input element that has been edited by a user action.
- public void html_input_element_set_auto_filled (bool auto_filled)
Set whether the element is an HTML input element that has been filled
automatically.
- public void html_input_element_set_editing_value (string value)
Set the value of an HTML input element as if it had been edited by the
user, triggering a change event.
- public unowned Element insert_adjacent_element (string where, Element element) throws Error
- public void insert_adjacent_html (string where, string html) throws Error
- public void insert_adjacent_text (string where, string text) throws Error
- public bool matches (string selectors) throws Error
- public unowned Element query_selector (string selectors) throws Error
- public NodeList query_selector_all (string selectors) throws Error
- public void remove () throws Error
- public void remove_attribute (string name)
- public unowned Attr remove_attribute_node (Attr oldAttr) throws Error
- public void remove_attribute_ns (string namespaceURI, string localName)
- public void request_pointer_lock ()
- public void scroll_by_lines (long lines)
- public void scroll_by_pages (long pages)
- public void scroll_into_view (bool alignWithTop)
- public void scroll_into_view_if_needed (bool centerIfNeeded)
- public void set_attribute (string name, string value) throws Error
- public unowned Attr set_attribute_node (Attr newAttr) throws Error
- public unowned Attr set_attribute_node_ns (Attr newAttr) throws Error
- public void set_attribute_ns (string? namespaceURI, string qualifiedName, string value) throws Error
- public void set_class_name (string value)
- public void set_id (string value)
- public void set_inner_html (string value) throws Error
- public void set_outer_html (string value) throws Error
- public void set_scroll_left (long value)
- public void set_scroll_top (long value)
- public bool webkit_matches_selector (string selectors) throws Error
- public void webkit_request_fullscreen ()
Inherited Members:
All known members inherited from class WebKit.DOM.Node
All known members inherited from class WebKit.DOM.Object
All known members inherited from class GLib.Object
All known members inherited from interface WebKit.DOM.EventTarget