8#ifndef dom_internal_html_document_h_
9#define dom_internal_html_document_h_
14#include "core/document.h"
54#define DOM_HTML_DOCUMENT_PROTECT_VTABLE \
55 _dom_html_document_destroy, \
56 _dom_html_document_copy
97#define DOM_HTML_DOCUMENT_VTABLE \
98 _dom_html_document_get_title, \
99 _dom_html_document_set_title, \
100 _dom_html_document_get_referrer, \
101 _dom_html_document_get_domain, \
102 _dom_html_document_get_url, \
103 _dom_html_document_get_body, \
104 _dom_html_document_set_body, \
105 _dom_html_document_get_images, \
106 _dom_html_document_get_applets, \
107 _dom_html_document_get_links, \
108 _dom_html_document_get_forms, \
109 _dom_html_document_get_anchors, \
110 _dom_html_document_get_cookie, \
111 _dom_html_document_set_cookie, \
112 _dom_html_document_open, \
113 _dom_html_document_close, \
114 _dom_html_document_write, \
115 _dom_html_document_writeln, \
116 _dom_html_document_get_elements_by_name
139#define DOM_DOCUMENT_VTABLE_HTML \
140 _dom_document_get_doctype, \
141 _dom_document_get_implementation, \
142 _dom_document_get_document_element, \
143 _dom_html_document_create_element, \
144 _dom_document_create_document_fragment, \
145 _dom_document_create_text_node, \
146 _dom_document_create_comment, \
147 _dom_document_create_cdata_section, \
148 _dom_document_create_processing_instruction, \
149 _dom_html_document_create_attribute, \
150 _dom_document_create_entity_reference, \
151 _dom_html_document_get_elements_by_tag_name, \
152 _dom_document_import_node, \
153 _dom_html_document_create_element_ns, \
154 _dom_html_document_create_attribute_ns, \
155 _dom_html_document_get_elements_by_tag_name_ns, \
156 _dom_document_get_element_by_id, \
157 _dom_document_get_input_encoding, \
158 _dom_document_get_xml_encoding, \
159 _dom_document_get_xml_standalone, \
160 _dom_document_set_xml_standalone, \
161 _dom_document_get_xml_version, \
162 _dom_document_set_xml_version, \
163 _dom_document_get_strict_error_checking, \
164 _dom_document_set_strict_error_checking, \
165 _dom_document_get_uri, \
166 _dom_document_set_uri, \
167 _dom_document_adopt_node, \
168 _dom_document_get_dom_config, \
169 _dom_document_normalize, \
170 _dom_document_rename_node, \
171 _dom_document_get_quirks_mode, \
172 _dom_document_set_quirks_mode
dom_exception
Definition exceptions.h:24
dom_default_action_callback(* dom_events_default_action_fetcher)(dom_string *type, dom_default_action_phase phase, void **pw)
Definition document_event.h:83
dom_exception _dom_html_document_set_body(dom_html_document *doc, struct dom_html_element *body)
Definition html_document.c:1160
dom_exception _dom_html_document_create_attribute(dom_document *doc, dom_string *name, dom_attr **result)
Definition html_document.c:907
dom_exception _dom_html_document_set_cookie(dom_html_document *doc, dom_string *cookie)
Definition html_document.c:1383
bool applet_callback(struct dom_node_internal *node, void *ctx)
Definition html_document.c:1200
dom_exception _dom_html_document_get_links(dom_html_document *doc, struct dom_html_collection **col)
Definition html_document.c:1281
dom_exception _dom_html_document_create_attribute_ns(dom_document *doc, dom_string *namespace, dom_string *qname, dom_attr **result)
Definition html_document.c:940
dom_exception _dom_html_document_get_domain(dom_html_document *doc, dom_string **domain)
Definition html_document.c:1088
dom_exception _dom_html_document_copy(dom_node_internal *old, dom_node_internal **copy)
Definition html_document.c:243
dom_exception _dom_html_document_write(dom_html_document *doc, dom_string *text)
Definition html_document.c:1408
dom_exception _dom_html_document_get_cookie(dom_html_document *doc, dom_string **cookie)
Definition html_document.c:1374
dom_exception _dom_html_document_create_element(dom_document *doc, dom_string *tag_name, dom_element **result)
Definition html_document.c:855
bool anchors_callback(struct dom_node_internal *node, void *ctx)
Definition html_document.c:1339
bool images_callback(struct dom_node_internal *node, void *ctx)
Definition html_document.c:1174
dom_exception _dom_html_document_get_forms(dom_html_document *doc, struct dom_html_collection **col)
Definition html_document.c:1307
dom_exception _dom_html_document_create(dom_events_default_action_fetcher daf, void *daf_ctx, dom_html_document **doc)
Definition html_document.c:93
bool links_callback(struct dom_node_internal *node, void *ctx)
Definition html_document.c:1258
dom_exception _dom_html_document_get_elements_by_tag_name(dom_document *doc, dom_string *tagname, dom_nodelist **result)
Definition html_document.c:980
dom_exception _dom_html_document_writeln(dom_html_document *doc, dom_string *text)
Definition html_document.c:1418
dom_exception _dom_html_document_close(dom_html_document *doc)
Definition html_document.c:1401
dom_exception _dom_html_document_get_body(dom_html_document *doc, struct dom_html_element **body)
Definition html_document.c:1104
bool _dom_html_document_finalise(dom_html_document *doc)
Definition html_document.c:196
dom_exception _dom_html_document_open(dom_html_document *doc)
Definition html_document.c:1393
dom_exception _dom_html_document_get_elements_by_name(dom_html_document *doc, dom_string *name, struct dom_nodelist **list)
Definition html_document.c:1428
dom_exception _dom_html_document_get_referrer(dom_html_document *doc, dom_string **referrer)
Definition html_document.c:1080
bool applets_callback(struct dom_node_internal *node, void *ctx)
Definition html_document.c:1217
dom_exception _dom_html_document_get_anchors(dom_html_document *doc, struct dom_html_collection **col)
Definition html_document.c:1359
dom_exception _dom_html_document_get_elements_by_tag_name_ns(dom_document *doc, dom_string *namespace, dom_string *localname, dom_nodelist **result)
Definition html_document.c:1001
dom_exception _dom_html_document_initialise(dom_html_document *doc, dom_events_default_action_fetcher daf, void *daf_ctx)
Definition html_document.c:119
dom_exception _dom_html_document_get_title(dom_html_document *doc, dom_string **title)
Definition html_document.c:1025
dom_exception _dom_html_document_get_applets(dom_html_document *doc, struct dom_html_collection **col)
Definition html_document.c:1236
dom_exception _dom_html_document_get_url(dom_html_document *doc, dom_string **url)
Definition html_document.c:1096
dom_exception _dom_html_document_get_images(dom_html_document *doc, struct dom_html_collection **col)
Definition html_document.c:1185
dom_exception _dom_html_document_set_title(dom_html_document *doc, dom_string *title)
Definition html_document.c:1069
dom_exception _dom_html_document_create_element_ns(dom_document *doc, dom_string *namespace, dom_string *qname, dom_element **result)
Definition html_document.c:865
void _dom_html_document_destroy(dom_node_internal *node)
Definition html_document.c:235
Definition html_collection.h:21
Definition html_document.h:19
dom_string * url
Definition html_document.h:25
struct dom_document base
Definition html_document.h:20
dom_string * referrer
Definition html_document.h:23
dom_string ** elements
Definition html_document.h:32
dom_string * cookie
Definition html_document.h:26
dom_html_element * body
Definition html_document.h:27
dom_string * domain
Definition html_document.h:24
dom_string * title
Definition html_document.h:22
dom_string ** memoised
Definition html_document.h:30
Definition html_element.h:22