WebKitDOMGTK+ Reference Manual: WebKitDOMNode

## WebKitDOMNode WebKitDOMNode |

## Synopsis

                        WebKitDOMNode;
    WebKitDOMNode *     webkit_dom_node_insert_before       (WebKitDOMNode *self,
                                                             WebKitDOMNode *newChild,
                                                             WebKitDOMNode *refChild,
                                                             GError **error);
    WebKitDOMNode *     webkit_dom_node_replace_child       (WebKitDOMNode *self,
                                                             WebKitDOMNode *newChild,
                                                             WebKitDOMNode *oldChild,
                                                             GError **error);
    WebKitDOMNode *     webkit_dom_node_remove_child        (WebKitDOMNode *self,
                                                             WebKitDOMNode *oldChild,
                                                             GError **error);
    WebKitDOMNode *     webkit_dom_node_append_child        (WebKitDOMNode *self,
                                                             WebKitDOMNode *newChild,
                                                             GError **error);
    gboolean            webkit_dom_node_has_child_nodes     (WebKitDOMNode *self);
    WebKitDOMNode *     webkit_dom_node_clone_node          (WebKitDOMNode *self,
                                                             gboolean deep);
    void                webkit_dom_node_normalize           (WebKitDOMNode *self);
    gboolean            webkit_dom_node_is_supported        (WebKitDOMNode *self,
                                                             const gchar *feature,
                                                             const gchar *version);
    gboolean            webkit_dom_node_is_same_node        (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);
    gboolean            webkit_dom_node_is_equal_node       (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);
    gchar *             webkit_dom_node_lookup_prefix       (WebKitDOMNode *self,
                                                             const gchar *namespaceURI);
    gboolean            webkit_dom_node_is_default_namespace
                                                            (WebKitDOMNode *self,
                                                             const gchar *namespaceURI);
    gchar *             webkit_dom_node_lookup_namespace_uri
                                                            (WebKitDOMNode *self,
                                                             const gchar *prefix);
    gushort             webkit_dom_node_compare_document_position
                                                            (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);
    gboolean            webkit_dom_node_contains            (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);
    gboolean            webkit_dom_node_dispatch_event      (WebKitDOMNode *self,
                                                             WebKitDOMEvent *event,
                                                             GError **error);
    gchar *             webkit_dom_node_get_node_name       (WebKitDOMNode *self);
    gchar *             webkit_dom_node_get_node_value      (WebKitDOMNode *self);
    void                webkit_dom_node_set_node_value      (WebKitDOMNode *self,
                                                             const gchar *value,
                                                             GError **error);
    gushort             webkit_dom_node_get_node_type       (WebKitDOMNode *self);
    WebKitDOMNode *     webkit_dom_node_get_parent_node     (WebKitDOMNode *self);
    WebKitDOMNodeList * webkit_dom_node_get_child_nodes     (WebKitDOMNode *self);
    WebKitDOMNode *     webkit_dom_node_get_first_child     (WebKitDOMNode *self);
    WebKitDOMNode *     webkit_dom_node_get_last_child      (WebKitDOMNode *self);
    WebKitDOMNode *     webkit_dom_node_get_previous_sibling
                                                            (WebKitDOMNode *self);
    WebKitDOMNode *     webkit_dom_node_get_next_sibling    (WebKitDOMNode *self);
    WebKitDOMDocument * webkit_dom_node_get_owner_document  (WebKitDOMNode *self);
    gchar *             webkit_dom_node_get_namespace_uri   (WebKitDOMNode *self);
    gchar *             webkit_dom_node_get_prefix          (WebKitDOMNode *self);
    void                webkit_dom_node_set_prefix          (WebKitDOMNode *self,
                                                             const gchar *value,
                                                             GError **error);
    gchar *             webkit_dom_node_get_local_name      (WebKitDOMNode *self);
    gchar *             webkit_dom_node_get_base_uri        (WebKitDOMNode *self);
    gchar *             webkit_dom_node_get_text_content    (WebKitDOMNode *self);
    void                webkit_dom_node_set_text_content    (WebKitDOMNode *self,
                                                             const gchar *value,
                                                             GError **error);
    WebKitDOMElement *  webkit_dom_node_get_parent_element  (WebKitDOMNode *self);
    WebKitDOMNamedNodeMap * webkit_dom_node_get_attributes  (WebKitDOMNode *self);
    gboolean            webkit_dom_node_has_attributes      (WebKitDOMNode *self);

## Object Hierarchy

      GObject
       +----WebKitDOMObject
             +----WebKitDOMNode
                   +----WebKitDOMAttr
                   +----WebKitDOMCharacterData
                   +----WebKitDOMDocumentFragment
                   +----WebKitDOMDocument
                   +----WebKitDOMDocumentType
                   +----WebKitDOMElement
                   +----WebKitDOMEntityReference

## Implemented Interfaces

WebKitDOMNode implements WebKitDOMEventTarget.

## Properties

      "base-uri"                 gchar*                : Read
      "child-nodes"              WebKitDOMNodeList*    : Read
      "first-child"              WebKitDOMNode*        : Read
      "last-child"               WebKitDOMNode*        : Read
      "local-name"               gchar*                : Read
      "namespace-uri"            gchar*                : Read
      "next-sibling"             WebKitDOMNode*        : Read
      "node-name"                gchar*                : Read
      "node-type"                guint                 : Read
      "node-value"               gchar*                : Read / Write
      "owner-document"           WebKitDOMDocument*    : Read
      "parent-element"           WebKitDOMElement*     : Read
      "parent-node"              WebKitDOMNode*        : Read
      "prefix"                   gchar*                : Read / Write
      "previous-sibling"         WebKitDOMNode*        : Read
      "text-content"             gchar*                : Read / Write

## Description

## Details

### WebKitDOMNode

    typedef struct _WebKitDOMNode WebKitDOMNode;

### webkit_dom_node_insert_before ()

    WebKitDOMNode *     webkit_dom_node_insert_before       (WebKitDOMNode *self,
                                                             WebKitDOMNode *newChild,
                                                             WebKitDOMNode *refChild,
                                                             GError **error);

`self` : | A WebKitDOMNode
`newChild` : | A WebKitDOMNode
`refChild` : | A WebKitDOMNode. [allow-none]
`error` : | GError
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_replace_child ()

    WebKitDOMNode *     webkit_dom_node_replace_child       (WebKitDOMNode *self,
                                                             WebKitDOMNode *newChild,
                                                             WebKitDOMNode *oldChild,
                                                             GError **error);

`self` : | A WebKitDOMNode
`newChild` : | A WebKitDOMNode
`oldChild` : | A WebKitDOMNode
`error` : | GError
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_remove_child ()

    WebKitDOMNode *     webkit_dom_node_remove_child        (WebKitDOMNode *self,
                                                             WebKitDOMNode *oldChild,
                                                             GError **error);

`self` : | A WebKitDOMNode
`oldChild` : | A WebKitDOMNode
`error` : | GError
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_append_child ()

    WebKitDOMNode *     webkit_dom_node_append_child        (WebKitDOMNode *self,
                                                             WebKitDOMNode *newChild,
                                                             GError **error);

`self` : | A WebKitDOMNode
`newChild` : | A WebKitDOMNode
`error` : | GError
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_has_child_nodes ()

    gboolean            webkit_dom_node_has_child_nodes     (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gboolean

### webkit_dom_node_clone_node ()

    WebKitDOMNode *     webkit_dom_node_clone_node          (WebKitDOMNode *self,
                                                             gboolean deep);

`self` : | A WebKitDOMNode
`deep` : | A gboolean
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_normalize ()

    void                webkit_dom_node_normalize           (WebKitDOMNode *self);

`self` : | A WebKitDOMNode

### webkit_dom_node_is_supported ()

    gboolean            webkit_dom_node_is_supported        (WebKitDOMNode *self,
                                                             const gchar *feature,
                                                             const gchar *version);

`self` : | A WebKitDOMNode
`feature` : | A gchar
`version` : | A gchar
Returns : | A gboolean

### webkit_dom_node_is_same_node ()

    gboolean            webkit_dom_node_is_same_node        (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);

`self` : | A WebKitDOMNode
`other` : | A WebKitDOMNode
Returns : | A gboolean

### webkit_dom_node_is_equal_node ()

    gboolean            webkit_dom_node_is_equal_node       (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);

`self` : | A WebKitDOMNode
`other` : | A WebKitDOMNode
Returns : | A gboolean

### webkit_dom_node_lookup_prefix ()

    gchar *             webkit_dom_node_lookup_prefix       (WebKitDOMNode *self,
                                                             const gchar *namespaceURI);

`self` : | A WebKitDOMNode
`namespaceURI` : | A gchar
Returns : | A gchar

### webkit_dom_node_is_default_namespace ()

    gboolean            webkit_dom_node_is_default_namespace
                                                            (WebKitDOMNode *self,
                                                             const gchar *namespaceURI);

`self` : | A WebKitDOMNode
`namespaceURI` : | A gchar
Returns : | A gboolean

### webkit_dom_node_lookup_namespace_uri ()

    gchar *             webkit_dom_node_lookup_namespace_uri
                                                            (WebKitDOMNode *self,
                                                             const gchar *prefix);

`self` : | A WebKitDOMNode
`prefix` : | A gchar
Returns : | A gchar

### webkit_dom_node_compare_document_position ()

    gushort             webkit_dom_node_compare_document_position
                                                            (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);

`self` : | A WebKitDOMNode
`other` : | A WebKitDOMNode
Returns : | A gushort

### webkit_dom_node_contains ()

    gboolean            webkit_dom_node_contains            (WebKitDOMNode *self,
                                                             WebKitDOMNode *other);

`self` : | A WebKitDOMNode
`other` : | A WebKitDOMNode
Returns : | A gboolean

### webkit_dom_node_dispatch_event ()

    gboolean            webkit_dom_node_dispatch_event      (WebKitDOMNode *self,
                                                             WebKitDOMEvent *event,
                                                             GError **error);

### Warning

`webkit_dom_node_dispatch_event` has been deprecated since version 2.4 and should not be used in newly-written code. Use `webkit_dom_event_target_dispatch_event()` instead.

`self` : | A WebKitDOMNode
`event` : | A WebKitDOMEvent
`error` : | GError
Returns : | A gboolean

### webkit_dom_node_get_node_name ()

    gchar *             webkit_dom_node_get_node_name       (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_get_node_value ()

    gchar *             webkit_dom_node_get_node_value      (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_set_node_value ()

    void                webkit_dom_node_set_node_value      (WebKitDOMNode *self,
                                                             const gchar *value,
                                                             GError **error);

`self` : | A WebKitDOMNode
`value` : | A gchar
`error` : | GError

### webkit_dom_node_get_node_type ()

    gushort             webkit_dom_node_get_node_type       (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gushort

### webkit_dom_node_get_parent_node ()

    WebKitDOMNode *     webkit_dom_node_get_parent_node     (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_get_child_nodes ()

    WebKitDOMNodeList * webkit_dom_node_get_child_nodes     (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMNodeList. [transfer none]

### webkit_dom_node_get_first_child ()

    WebKitDOMNode *     webkit_dom_node_get_first_child     (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_get_last_child ()

    WebKitDOMNode *     webkit_dom_node_get_last_child      (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_get_previous_sibling ()

    WebKitDOMNode *     webkit_dom_node_get_previous_sibling
                                                            (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_get_next_sibling ()

    WebKitDOMNode *     webkit_dom_node_get_next_sibling    (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMNode. [transfer none]

### webkit_dom_node_get_owner_document ()

    WebKitDOMDocument * webkit_dom_node_get_owner_document  (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMDocument. [transfer none]

### webkit_dom_node_get_namespace_uri ()

    gchar *             webkit_dom_node_get_namespace_uri   (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_get_prefix ()

    gchar *             webkit_dom_node_get_prefix          (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_set_prefix ()

    void                webkit_dom_node_set_prefix          (WebKitDOMNode *self,
                                                             const gchar *value,
                                                             GError **error);

`self` : | A WebKitDOMNode
`value` : | A gchar
`error` : | GError

### webkit_dom_node_get_local_name ()

    gchar *             webkit_dom_node_get_local_name      (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_get_base_uri ()

    gchar *             webkit_dom_node_get_base_uri        (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_get_text_content ()

    gchar *             webkit_dom_node_get_text_content    (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A gchar

### webkit_dom_node_set_text_content ()

    void                webkit_dom_node_set_text_content    (WebKitDOMNode *self,
                                                             const gchar *value,
                                                             GError **error);

`self` : | A WebKitDOMNode
`value` : | A gchar
`error` : | GError

### webkit_dom_node_get_parent_element ()

    WebKitDOMElement *  webkit_dom_node_get_parent_element  (WebKitDOMNode *self);

`self` : | A WebKitDOMNode
Returns : | A WebKitDOMElement. [transfer none]

### webkit_dom_node_get_attributes ()

    WebKitDOMNamedNodeMap * webkit_dom_node_get_attributes  (WebKitDOMNode *self);

### Warning

`webkit_dom_node_get_attributes` is deprecated and should not be used in newly-written code. 2.2

This functionality has been removed from WebKit, this function does nothing.

`self` : | A WebKitDOMNode
Returns : | a WebKitDOMNamedNodeMap. [transfer none]

### webkit_dom_node_has_attributes ()

    gboolean            webkit_dom_node_has_attributes      (WebKitDOMNode *self);

### Warning

`webkit_dom_node_has_attributes` is deprecated and should not be used in newly-written code. 2.2

This functionality has been removed from WebKit, this function does nothing.

`self` : | A WebKitDOMNode
Returns : | A gboolean

## Property Details

### The `"base-uri"` property

      "base-uri"                 gchar*                : Read

read-only gchar* Node:base-uri.

Default value: ""

### The `"child-nodes"` property

      "child-nodes"              WebKitDOMNodeList*    : Read

read-only WebKitDOMNodeList* Node:child-nodes.

### The `"first-child"` property

      "first-child"              WebKitDOMNode*        : Read

read-only WebKitDOMNode* Node:first-child.

### The `"last-child"` property

      "last-child"               WebKitDOMNode*        : Read

read-only WebKitDOMNode* Node:last-child.

### The `"local-name"` property

      "local-name"               gchar*                : Read

read-only gchar* Node:local-name.

Default value: ""

### The `"namespace-uri"` property

      "namespace-uri"            gchar*                : Read

read-only gchar* Node:namespace-uri.

Default value: ""

### The `"next-sibling"` property

      "next-sibling"             WebKitDOMNode*        : Read

read-only WebKitDOMNode* Node:next-sibling.

### The `"node-name"` property

      "node-name"                gchar*                : Read

read-only gchar* Node:node-name.

Default value: ""

### The `"node-type"` property

      "node-type"                guint                 : Read

read-only gushort Node:node-type.

Default value: 0

### The `"node-value"` property

      "node-value"               gchar*                : Read / Write

read-only gchar* Node:node-value.

Default value: ""

### The `"owner-document"` property

      "owner-document"           WebKitDOMDocument*    : Read

read-only WebKitDOMDocument* Node:owner-document.

### The `"parent-element"` property

      "parent-element"           WebKitDOMElement*     : Read

read-only WebKitDOMElement* Node:parent-element.

### The `"parent-node"` property

      "parent-node"              WebKitDOMNode*        : Read

read-only WebKitDOMNode* Node:parent-node.

### The `"prefix"` property

      "prefix"                   gchar*                : Read / Write

read-only gchar* Node:prefix.

Default value: ""

### The `"previous-sibling"` property

      "previous-sibling"         WebKitDOMNode*        : Read

read-only WebKitDOMNode* Node:previous-sibling.

### The `"text-content"` property

      "text-content"             gchar*                : Read / Write

read-only gchar* Node:text-content.

Default value: ""