summaryrefslogtreecommitdiff
path: root/src/html/html_document.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 10:56:51 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 10:56:51 +0100
commiteec1716bbd8a692aa260c24db57c0465fcb9fb43 (patch)
tree051286c5c2601533d8b0ec70065c39c10a959968 /src/html/html_document.h
parent4e99ad2213dba5244f2df0f73d8c32c16f995840 (diff)
downloadlibdom-eec1716bbd8a692aa260c24db57c0465fcb9fb43.tar.gz
libdom-eec1716bbd8a692aa260c24db57c0465fcb9fb43.tar.bz2
HTML: Make Document memoise more generically and port HTMLElement to that interface
Diffstat (limited to 'src/html/html_document.h')
-rw-r--r--src/html/html_document.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/html/html_document.h b/src/html/html_document.h
index 57ec1ec..7f9bdb8 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,