#include <assert.h>
#include <stdlib.h>
#include <libwapcaplet/libwapcaplet.h>
#include "html/html_options_collection.h"
#include "core/node.h"
#include "core/element.h"
#include "core/string.h"
#include "utils/utils.h"
|
dom_exception | _dom_html_options_collection_create (struct dom_html_document *doc, struct dom_node_internal *root, dom_callback_is_in_collection ic, void *ctx, struct dom_html_options_collection **col) |
|
dom_exception | _dom_html_options_collection_initialise (struct dom_html_document *doc, struct dom_html_options_collection *col, struct dom_node_internal *root, dom_callback_is_in_collection ic, void *ctx) |
|
void | _dom_html_options_collection_finalise (struct dom_html_options_collection *col) |
|
void | _dom_html_options_collection_destroy (struct dom_html_options_collection *col) |
|
dom_exception | dom_html_options_collection_get_length (dom_html_options_collection *col, uint32_t *len) |
|
dom_exception | dom_html_options_collection_set_length (dom_html_options_collection *col, uint32_t len) |
|
dom_exception | dom_html_options_collection_item (dom_html_options_collection *col, uint32_t index, struct dom_node **node) |
|
dom_exception | dom_html_options_collection_named_item (dom_html_options_collection *col, dom_string *name, struct dom_node **node) |
|
void | dom_html_options_collection_ref (dom_html_options_collection *col) |
|
void | dom_html_options_collection_unref (dom_html_options_collection *col) |
|
◆ _dom_html_options_collection_create()
Create a dom_html_options_collection
- Parameters
-
doc | The document |
root | The root element of the collection |
ic | The callback function used to determin whether certain node beint32_ts to the collection |
col | The result collection object |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.
◆ _dom_html_options_collection_destroy()
◆ _dom_html_options_collection_finalise()
◆ _dom_html_options_collection_initialise()
Intialiase a dom_html_options_collection
- Parameters
-
doc | The document |
col | The collection object to be initialised |
root | The root element of the collection |
ic | The callback function used to determin whether certain node beint32_ts to the collection |
- Returns
- DOM_NO_ERR on success.
◆ dom_html_options_collection_get_length()
◆ dom_html_options_collection_item()
Get the node with certain index
- Parameters
-
- Returns
- DOM_NO_ERR on success.
◆ dom_html_options_collection_named_item()
Get the node in the collection according name
- Parameters
-
col | The collection |
name | The name of target node |
node | The returned node object |
- Returns
- DOM_NO_ERR on success.
◆ dom_html_options_collection_ref()
Claim a reference on this collection
\pram col The collection object
◆ dom_html_options_collection_set_length()
◆ dom_html_options_collection_unref()
Relese a reference on this collection
\pram col The collection object