|
XenevaOS
|
#include <assert.h>#include <stdlib.h>#include <string.h>#include <stdio.h>#include "html/html_document.h"#include "html/html_element.h"#include "core/node.h"#include "core/attr.h"#include "core/document.h"#include "utils/utils.h"
Macros | |
| #define | SIMPLE_GET_SET(fattr, attr) |
Variables | |
| const struct dom_html_element_vtable | _dom_html_element_vtable |
| #define SIMPLE_GET_SET | ( | fattr, | |
| attr | |||
| ) |
| dom_exception _dom_html_element_copy | ( | dom_node_internal * | old, |
| dom_node_internal ** | copy | ||
| ) |
| dom_exception _dom_html_element_copy_internal | ( | dom_html_element * | old, |
| dom_html_element * | new | ||
| ) |
| dom_exception _dom_html_element_create | ( | struct dom_html_element_create_params * | params, |
| struct dom_html_element ** | result | ||
| ) |
| void _dom_html_element_destroy | ( | dom_node_internal * | node | ) |
| void _dom_html_element_finalise | ( | struct dom_html_element * | ele | ) |
| dom_exception _dom_html_element_get_attribute | ( | struct dom_element * | element, |
| dom_string * | name, | ||
| dom_string ** | value | ||
| ) |
| dom_exception _dom_html_element_get_elements_by_tag_name | ( | struct dom_element * | element, |
| dom_string * | name, | ||
| struct dom_nodelist ** | result | ||
| ) |
Retrieve a list of descendant elements of an element which match a given tag name (caselessly)
| element | The root of the subtree to search |
| name | The tag name to match (or "*" for all tags) |
| result | Pointer to location to receive result |
The returned nodelist will have its reference count increased. It is the responsibility of the caller to unref the nodelist once it has finished with it.
| dom_exception _dom_html_element_get_elements_by_tag_name_ns | ( | struct dom_element * | element, |
| dom_string * | namespace, | ||
| dom_string * | localname, | ||
| struct dom_nodelist ** | result | ||
| ) |
Retrieve a list of descendant elements of an element which match a given namespace/localname pair, caselessly.
| element | The root of the subtree to search |
| namespace | The namespace URI to match (or "*" for all) |
| localname | The local name to match (or "*" for all) |
| result | Pointer to location to receive result |
The returned nodelist will have its reference count increased. It is the responsibility of the caller to unref the nodelist once it has finished with it.
| dom_exception _dom_html_element_get_tag_type | ( | const struct dom_html_element * | element, |
| dom_html_element_type * | type | ||
| ) |
Retrieve an HTML element's tag type.
| element | The element to get the tag type of. |
| type | Updated to the tag type of the element. |
Elements with non-standard tags will be DOM_HTML_ELEMENT_TYPE__UNKNOWN.
| dom_exception _dom_html_element_has_attribute | ( | struct dom_element * | element, |
| dom_string * | name, | ||
| bool * | result | ||
| ) |
| dom_exception _dom_html_element_initialise | ( | struct dom_html_element_create_params * | params, |
| struct dom_html_element * | el | ||
| ) |
| dom_exception _dom_html_element_remove_attribute | ( | struct dom_element * | element, |
| dom_string * | name | ||
| ) |
| dom_exception _dom_html_element_set_attribute | ( | struct dom_element * | element, |
| dom_string * | name, | ||
| dom_string * | value | ||
| ) |
| dom_exception dom_html_element_get_bool_property | ( | dom_html_element * | ele, |
| const char * | name, | ||
| uint32_t | len, | ||
| bool * | has | ||
| ) |
Get the a bool property
| ele | The dom_html_element object |
| name | The name of the attribute |
| len | The length of name |
| has | The returned status |
| dom_exception dom_html_element_get_dom_ulong_property | ( | dom_html_element * | ele, |
| const char * | name, | ||
| uint32_t | len, | ||
| dom_ulong * | value | ||
| ) |
Get the a dom_ulong property
| ele | The dom_html_element object |
| name | The name of the attribute |
| len | The length of name |
| value | The returned value, or -1 if prop. not set |
| dom_exception dom_html_element_get_int32_t_property | ( | dom_html_element * | ele, |
| const char * | name, | ||
| uint32_t | len, | ||
| int32_t * | value | ||
| ) |
Get the a int32_t property
| ele | The dom_html_element object |
| name | The name of the attribute |
| len | The length of name |
| value | The returned value, or -1 if prop. not set |
| dom_exception dom_html_element_set_bool_property | ( | dom_html_element * | ele, |
| const char * | name, | ||
| uint32_t | len, | ||
| bool | has | ||
| ) |
Set a bool property
| ele | The dom_html_element object |
| name | The name of the attribute |
| len | The length of name |
| has | The status |
| dom_exception dom_html_element_set_dom_ulong_property | ( | dom_html_element * | ele, |
| const char * | name, | ||
| uint32_t | len, | ||
| dom_ulong | value | ||
| ) |
Set a dom_ulong property
| ele | The dom_html_element object |
| name | The name of the attribute |
| len | The length of name |
| value | The value |
| dom_exception dom_html_element_set_int32_t_property | ( | dom_html_element * | ele, |
| const char * | name, | ||
| uint32_t | len, | ||
| uint32_t | value | ||
| ) |
Set a int32_t property
| ele | The dom_html_element object |
| name | The name of the attribute |
| len | The length of name |
| value | The value |
| const struct dom_html_element_vtable _dom_html_element_vtable |