summaryrefslogtreecommitdiff
path: root/src/html/html_document.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/html/html_document.h')
-rw-r--r--src/html/html_document.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/html/html_document.h b/src/html/html_document.h
index 57ec1ec..fbe7155 100644
--- a/src/html/html_document.h
+++ b/src/html/html_document.h
@@ -24,14 +24,12 @@ struct dom_html_document {
dom_string *url; /**< HTML document URL */
dom_string *cookie; /**< HTML document cookie */
- /* Cached strings for html objects to use */
- dom_string *_memo_id; /**< Memoised 'id' */
- dom_string *_memo_title;/**< Memoised 'title' */
- dom_string *_memo_lang; /**< Memoised 'lang' */
- dom_string *_memo_dir; /**< Memoised 'dir' */
- dom_string *_memo_class;/**< Memoised 'class' */
+ /** Cached strings for html objects to use */
+ dom_string **memoised;
};
+#include "html_document_strings.h"
+
/* Create a HTMLDocument */
dom_exception _dom_html_document_create(
dom_events_default_action_fetcher daf,
@@ -115,6 +113,11 @@ dom_exception _dom_html_document_create_element(dom_document *doc,
dom_exception _dom_html_document_create_element_ns(dom_document *doc,
dom_string *namespace, dom_string *qname,
dom_element **result);
+dom_exception _dom_html_document_get_elements_by_tag_name(dom_document *doc,
+ dom_string *tagname, dom_nodelist **result);
+dom_exception _dom_html_document_get_elements_by_tag_name_ns(
+ dom_document *doc, dom_string *namespace,
+ dom_string *localname, dom_nodelist **result);
#define DOM_DOCUMENT_VTABLE_HTML \
_dom_document_get_doctype, \
@@ -128,11 +131,11 @@ dom_exception _dom_html_document_create_element_ns(dom_document *doc,
_dom_document_create_processing_instruction, \
_dom_document_create_attribute, \
_dom_document_create_entity_reference, \
- _dom_document_get_elements_by_tag_name, \
+ _dom_html_document_get_elements_by_tag_name, \
_dom_document_import_node, \
_dom_html_document_create_element_ns, \
_dom_document_create_attribute_ns, \
- _dom_document_get_elements_by_tag_name_ns, \
+ _dom_html_document_get_elements_by_tag_name_ns, \
_dom_document_get_element_by_id, \
_dom_document_get_input_encoding, \
_dom_document_get_xml_encoding, \