WebKitDOMElement

WebKitDOMElement

Functions

gchar * webkit_dom_element_get_attribute ()
void webkit_dom_element_set_attribute ()
void webkit_dom_element_remove_attribute ()
WebKitDOMAttr * webkit_dom_element_get_attribute_node ()
WebKitDOMAttr * webkit_dom_element_set_attribute_node ()
WebKitDOMAttr * webkit_dom_element_remove_attribute_node ()
WebKitDOMNodeList * webkit_dom_element_get_elements_by_tag_name ()
gboolean webkit_dom_element_has_attributes ()
gchar * webkit_dom_element_get_attribute_ns ()
void webkit_dom_element_set_attribute_ns ()
void webkit_dom_element_remove_attribute_ns ()
WebKitDOMNodeList * webkit_dom_element_get_elements_by_tag_name_ns ()
WebKitDOMAttr * webkit_dom_element_get_attribute_node_ns ()
WebKitDOMAttr * webkit_dom_element_set_attribute_node_ns ()
gboolean webkit_dom_element_has_attribute ()
gboolean webkit_dom_element_has_attribute_ns ()
void webkit_dom_element_focus ()
void webkit_dom_element_blur ()
void webkit_dom_element_scroll_into_view ()
void webkit_dom_element_scroll_into_view_if_needed ()
void webkit_dom_element_scroll_by_lines ()
void webkit_dom_element_scroll_by_pages ()
WebKitDOMNodeList * webkit_dom_element_get_elements_by_class_name ()
WebKitDOMElement * webkit_dom_element_query_selector ()
WebKitDOMNodeList * webkit_dom_element_query_selector_all ()
gchar * webkit_dom_element_get_tag_name ()
WebKitDOMNamedNodeMap * webkit_dom_element_get_attributes ()
WebKitDOMCSSStyleDeclaration * webkit_dom_element_get_style ()
gchar * webkit_dom_element_get_id ()
void webkit_dom_element_set_id ()
gdouble webkit_dom_element_get_offset_left ()
gdouble webkit_dom_element_get_offset_top ()
gdouble webkit_dom_element_get_offset_width ()
gdouble webkit_dom_element_get_offset_height ()
gdouble webkit_dom_element_get_client_left ()
gdouble webkit_dom_element_get_client_top ()
gdouble webkit_dom_element_get_client_width ()
gdouble webkit_dom_element_get_client_height ()
glong webkit_dom_element_get_scroll_left ()
void webkit_dom_element_set_scroll_left ()
glong webkit_dom_element_get_scroll_top ()
void webkit_dom_element_set_scroll_top ()
glong webkit_dom_element_get_scroll_width ()
glong webkit_dom_element_get_scroll_height ()
WebKitDOMElement * webkit_dom_element_get_offset_parent ()
gchar * webkit_dom_element_get_inner_html ()
void webkit_dom_element_set_inner_html ()
gchar * webkit_dom_element_get_outer_html ()
void webkit_dom_element_set_outer_html ()
gchar * webkit_dom_element_get_class_name ()
void webkit_dom_element_set_class_name ()
WebKitDOMElement * webkit_dom_element_get_first_element_child ()
WebKitDOMElement * webkit_dom_element_get_last_element_child ()
WebKitDOMElement * webkit_dom_element_get_previous_element_sibling ()
WebKitDOMElement * webkit_dom_element_get_next_element_sibling ()
gulong webkit_dom_element_get_child_element_count ()

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── WebKitDOMObject
        ╰── WebKitDOMNode
            ╰── WebKitDOMElement
                ╰── WebKitDOMHTMLElement

Implemented Interfaces

WebKitDOMElement implements WebKitDOMEventTarget.

Description

Functions

webkit_dom_element_get_attribute ()

gchar *
webkit_dom_element_get_attribute (WebKitDOMElement *self,
                                  const gchar *name);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

Returns

A gchar


webkit_dom_element_set_attribute ()

void
webkit_dom_element_set_attribute (WebKitDOMElement *self,
                                  const gchar *name,
                                  const gchar *value,
                                  GError **error);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

value

A gchar

 

error

GError

 

webkit_dom_element_remove_attribute ()

void
webkit_dom_element_remove_attribute (WebKitDOMElement *self,
                                     const gchar *name);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

webkit_dom_element_get_attribute_node ()

WebKitDOMAttr *
webkit_dom_element_get_attribute_node (WebKitDOMElement *self,
                                       const gchar *name);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

Returns

A WebKitDOMAttr.

[transfer none]


webkit_dom_element_set_attribute_node ()

WebKitDOMAttr *
webkit_dom_element_set_attribute_node (WebKitDOMElement *self,
                                       WebKitDOMAttr *newAttr,
                                       GError **error);

Parameters

self

A WebKitDOMElement

 

newAttr

A WebKitDOMAttr

 

error

GError

 

Returns

A WebKitDOMAttr.

[transfer none]


webkit_dom_element_remove_attribute_node ()

WebKitDOMAttr *
webkit_dom_element_remove_attribute_node
                               (WebKitDOMElement *self,
                                WebKitDOMAttr *oldAttr,
                                GError **error);

Parameters

self

A WebKitDOMElement

 

oldAttr

A WebKitDOMAttr

 

error

GError

 

Returns

A WebKitDOMAttr.

[transfer none]


webkit_dom_element_get_elements_by_tag_name ()

WebKitDOMNodeList *
webkit_dom_element_get_elements_by_tag_name
                               (WebKitDOMElement *self,
                                const gchar *name);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

Returns

A WebKitDOMNodeList.

[transfer none]


webkit_dom_element_has_attributes ()

gboolean
webkit_dom_element_has_attributes (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gboolean


webkit_dom_element_get_attribute_ns ()

gchar *
webkit_dom_element_get_attribute_ns (WebKitDOMElement *self,
                                     const gchar *namespaceURI,
                                     const gchar *localName);

Parameters

self

A WebKitDOMElement

 

namespaceURI

A gchar

 

localName

A gchar

 

Returns

A gchar


webkit_dom_element_set_attribute_ns ()

void
webkit_dom_element_set_attribute_ns (WebKitDOMElement *self,
                                     const gchar *namespaceURI,
                                     const gchar *qualifiedName,
                                     const gchar *value,
                                     GError **error);

Parameters

self

A WebKitDOMElement

 

namespaceURI

A gchar.

[allow-none]

qualifiedName

A gchar

 

value

A gchar

 

error

GError

 

webkit_dom_element_remove_attribute_ns ()

void
webkit_dom_element_remove_attribute_ns
                               (WebKitDOMElement *self,
                                const gchar *namespaceURI,
                                const gchar *localName);

Parameters

self

A WebKitDOMElement

 

namespaceURI

A gchar

 

localName

A gchar

 

webkit_dom_element_get_elements_by_tag_name_ns ()

WebKitDOMNodeList *
webkit_dom_element_get_elements_by_tag_name_ns
                               (WebKitDOMElement *self,
                                const gchar *namespaceURI,
                                const gchar *localName);

Parameters

self

A WebKitDOMElement

 

namespaceURI

A gchar

 

localName

A gchar

 

Returns

A WebKitDOMNodeList.

[transfer none]


webkit_dom_element_get_attribute_node_ns ()

WebKitDOMAttr *
webkit_dom_element_get_attribute_node_ns
                               (WebKitDOMElement *self,
                                const gchar *namespaceURI,
                                const gchar *localName);

Parameters

self

A WebKitDOMElement

 

namespaceURI

A gchar

 

localName

A gchar

 

Returns

A WebKitDOMAttr.

[transfer none]


webkit_dom_element_set_attribute_node_ns ()

WebKitDOMAttr *
webkit_dom_element_set_attribute_node_ns
                               (WebKitDOMElement *self,
                                WebKitDOMAttr *newAttr,
                                GError **error);

Parameters

self

A WebKitDOMElement

 

newAttr

A WebKitDOMAttr

 

error

GError

 

Returns

A WebKitDOMAttr.

[transfer none]


webkit_dom_element_has_attribute ()

gboolean
webkit_dom_element_has_attribute (WebKitDOMElement *self,
                                  const gchar *name);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

Returns

A gboolean


webkit_dom_element_has_attribute_ns ()

gboolean
webkit_dom_element_has_attribute_ns (WebKitDOMElement *self,
                                     const gchar *namespaceURI,
                                     const gchar *localName);

Parameters

self

A WebKitDOMElement

 

namespaceURI

A gchar

 

localName

A gchar

 

Returns

A gboolean


webkit_dom_element_focus ()

void
webkit_dom_element_focus (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

webkit_dom_element_blur ()

void
webkit_dom_element_blur (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

webkit_dom_element_scroll_into_view ()

void
webkit_dom_element_scroll_into_view (WebKitDOMElement *self,
                                     gboolean alignWithTop);

Parameters

self

A WebKitDOMElement

 

alignWithTop

A gboolean

 

webkit_dom_element_scroll_into_view_if_needed ()

void
webkit_dom_element_scroll_into_view_if_needed
                               (WebKitDOMElement *self,
                                gboolean centerIfNeeded);

Parameters

self

A WebKitDOMElement

 

centerIfNeeded

A gboolean

 

webkit_dom_element_scroll_by_lines ()

void
webkit_dom_element_scroll_by_lines (WebKitDOMElement *self,
                                    glong lines);

Parameters

self

A WebKitDOMElement

 

lines

A glong

 

webkit_dom_element_scroll_by_pages ()

void
webkit_dom_element_scroll_by_pages (WebKitDOMElement *self,
                                    glong pages);

Parameters

self

A WebKitDOMElement

 

pages

A glong

 

webkit_dom_element_get_elements_by_class_name ()

WebKitDOMNodeList *
webkit_dom_element_get_elements_by_class_name
                               (WebKitDOMElement *self,
                                const gchar *name);

Parameters

self

A WebKitDOMElement

 

name

A gchar

 

Returns

A WebKitDOMNodeList.

[transfer none]


webkit_dom_element_query_selector ()

WebKitDOMElement *
webkit_dom_element_query_selector (WebKitDOMElement *self,
                                   const gchar *selectors,
                                   GError **error);

Parameters

self

A WebKitDOMElement

 

selectors

A gchar

 

error

GError

 

Returns

A WebKitDOMElement.

[transfer none]


webkit_dom_element_query_selector_all ()

WebKitDOMNodeList *
webkit_dom_element_query_selector_all (WebKitDOMElement *self,
                                       const gchar *selectors,
                                       GError **error);

Parameters

self

A WebKitDOMElement

 

selectors

A gchar

 

error

GError

 

Returns

A WebKitDOMNodeList.

[transfer none]


webkit_dom_element_get_tag_name ()

gchar *
webkit_dom_element_get_tag_name (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gchar


webkit_dom_element_get_attributes ()

WebKitDOMNamedNodeMap *
webkit_dom_element_get_attributes (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMNamedNodeMap.

[transfer none]


webkit_dom_element_get_style ()

WebKitDOMCSSStyleDeclaration *
webkit_dom_element_get_style (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMCSSStyleDeclaration.

[transfer none]


webkit_dom_element_get_id ()

gchar *
webkit_dom_element_get_id (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gchar


webkit_dom_element_set_id ()

void
webkit_dom_element_set_id (WebKitDOMElement *self,
                           const gchar *value);

Parameters

self

A WebKitDOMElement

 

value

A gchar

 

webkit_dom_element_get_offset_left ()

gdouble
webkit_dom_element_get_offset_left (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_offset_top ()

gdouble
webkit_dom_element_get_offset_top (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_offset_width ()

gdouble
webkit_dom_element_get_offset_width (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_offset_height ()

gdouble
webkit_dom_element_get_offset_height (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_client_left ()

gdouble
webkit_dom_element_get_client_left (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_client_top ()

gdouble
webkit_dom_element_get_client_top (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_client_width ()

gdouble
webkit_dom_element_get_client_width (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_client_height ()

gdouble
webkit_dom_element_get_client_height (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gdouble


webkit_dom_element_get_scroll_left ()

glong
webkit_dom_element_get_scroll_left (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A glong


webkit_dom_element_set_scroll_left ()

void
webkit_dom_element_set_scroll_left (WebKitDOMElement *self,
                                    glong value);

Parameters

self

A WebKitDOMElement

 

value

A glong

 

webkit_dom_element_get_scroll_top ()

glong
webkit_dom_element_get_scroll_top (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A glong


webkit_dom_element_set_scroll_top ()

void
webkit_dom_element_set_scroll_top (WebKitDOMElement *self,
                                   glong value);

Parameters

self

A WebKitDOMElement

 

value

A glong

 

webkit_dom_element_get_scroll_width ()

glong
webkit_dom_element_get_scroll_width (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A glong


webkit_dom_element_get_scroll_height ()

glong
webkit_dom_element_get_scroll_height (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A glong


webkit_dom_element_get_offset_parent ()

WebKitDOMElement *
webkit_dom_element_get_offset_parent (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMElement.

[transfer none]


webkit_dom_element_get_inner_html ()

gchar *
webkit_dom_element_get_inner_html (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gchar

Since 2.8


webkit_dom_element_set_inner_html ()

void
webkit_dom_element_set_inner_html (WebKitDOMElement *self,
                                   const gchar *value,
                                   GError **error);

Parameters

self

A WebKitDOMElement

 

value

A gchar

 

error

GError

 

Since 2.8


webkit_dom_element_get_outer_html ()

gchar *
webkit_dom_element_get_outer_html (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gchar

Since 2.8


webkit_dom_element_set_outer_html ()

void
webkit_dom_element_set_outer_html (WebKitDOMElement *self,
                                   const gchar *value,
                                   GError **error);

Parameters

self

A WebKitDOMElement

 

value

A gchar

 

error

GError

 

Since 2.8


webkit_dom_element_get_class_name ()

gchar *
webkit_dom_element_get_class_name (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gchar


webkit_dom_element_set_class_name ()

void
webkit_dom_element_set_class_name (WebKitDOMElement *self,
                                   const gchar *value);

Parameters

self

A WebKitDOMElement

 

value

A gchar

 

webkit_dom_element_get_first_element_child ()

WebKitDOMElement *
webkit_dom_element_get_first_element_child
                               (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMElement.

[transfer none]


webkit_dom_element_get_last_element_child ()

WebKitDOMElement *
webkit_dom_element_get_last_element_child
                               (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMElement.

[transfer none]


webkit_dom_element_get_previous_element_sibling ()

WebKitDOMElement *
webkit_dom_element_get_previous_element_sibling
                               (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMElement.

[transfer none]


webkit_dom_element_get_next_element_sibling ()

WebKitDOMElement *
webkit_dom_element_get_next_element_sibling
                               (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A WebKitDOMElement.

[transfer none]


webkit_dom_element_get_child_element_count ()

gulong
webkit_dom_element_get_child_element_count
                               (WebKitDOMElement *self);

Parameters

self

A WebKitDOMElement

 

Returns

A gulong

Types and Values

WebKitDOMElement

typedef struct _WebKitDOMElement WebKitDOMElement;

Property Details

The “attributes” property

  “attributes”               WebKitDOMNamedNodeMap *

read-only WebKitDOMNamedNodeMap* Element:attributes.

Flags: Read


The “child-element-count” property

  “child-element-count”      gulong

read-only gulong Element:child-element-count.

Flags: Read


The “class-list” property

  “class-list”               WebKitDOMDOMTokenList *

read-only WebKitDOMDOMTokenList* Element:class-list.

Flags: Read


The “class-name” property

  “class-name”               gchar *

read-write gchar* Element:class-name.

Flags: Read / Write

Default value: ""


The “client-height” property

  “client-height”            gdouble

read-only gdouble Element:client-height.

Flags: Read

Default value: 0


The “client-left” property

  “client-left”              gdouble

read-only gdouble Element:client-left.

Flags: Read

Default value: 0


The “client-top” property

  “client-top”               gdouble

read-only gdouble Element:client-top.

Flags: Read

Default value: 0


The “client-width” property

  “client-width”             gdouble

read-only gdouble Element:client-width.

Flags: Read

Default value: 0


The “first-element-child” property

  “first-element-child”      WebKitDOMElement *

read-only WebKitDOMElement* Element:first-element-child.

Flags: Read


The “id” property

  “id”                       gchar *

read-write gchar* Element:id.

Flags: Read / Write

Default value: ""


The “inner-html” property

  “inner-html”               gchar *

read-write gchar* Element:inner-html.

Flags: Read / Write

Default value: ""


The “last-element-child” property

  “last-element-child”       WebKitDOMElement *

read-only WebKitDOMElement* Element:last-element-child.

Flags: Read


The “next-element-sibling” property

  “next-element-sibling”     WebKitDOMElement *

read-only WebKitDOMElement* Element:next-element-sibling.

Flags: Read


The “offset-height” property

  “offset-height”            gdouble

read-only gdouble Element:offset-height.

Flags: Read

Default value: 0


The “offset-left” property

  “offset-left”              gdouble

read-only gdouble Element:offset-left.

Flags: Read

Default value: 0


The “offset-parent” property

  “offset-parent”            WebKitDOMElement *

read-only WebKitDOMElement* Element:offset-parent.

Flags: Read


The “offset-top” property

  “offset-top”               gdouble

read-only gdouble Element:offset-top.

Flags: Read

Default value: 0


The “offset-width” property

  “offset-width”             gdouble

read-only gdouble Element:offset-width.

Flags: Read

Default value: 0


The “outer-html” property

  “outer-html”               gchar *

read-write gchar* Element:outer-html.

Flags: Read / Write

Default value: ""


The “previous-element-sibling” property

  “previous-element-sibling” WebKitDOMElement *

read-only WebKitDOMElement* Element:previous-element-sibling.

Flags: Read


The “scroll-height” property

  “scroll-height”            glong

read-only glong Element:scroll-height.

Flags: Read

Default value: 0


The “scroll-left” property

  “scroll-left”              glong

read-write glong Element:scroll-left.

Flags: Read / Write

Default value: 0


The “scroll-top” property

  “scroll-top”               glong

read-write glong Element:scroll-top.

Flags: Read / Write

Default value: 0


The “scroll-width” property

  “scroll-width”             glong

read-only glong Element:scroll-width.

Flags: Read

Default value: 0


The “style” property

  “style”                    WebKitDOMCSSStyleDeclaration *

read-only WebKitDOMCSSStyleDeclaration* Element:style.

Flags: Read


The “tag-name” property

  “tag-name”                 gchar *

read-only gchar* Element:tag-name.

Flags: Read

Default value: ""


The “webkit-region-overset” property

  “webkit-region-overset”    gchar *

read-only gchar* Element:webkit-region-overset.

Flags: Read

Default value: ""