summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 17:12:02 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-07 17:12:02 +0100
commit1464b39df09d285c440dcb0388ecb5dfd64590fb (patch)
tree06163b4156949ed6d0971e8341fb416748302008 /src/html/html_document.c
parentb38d185fddf093f5f56dd1c30f90385df62a2fb1 (diff)
downloadlibdom-1464b39df09d285c440dcb0388ecb5dfd64590fb.tar.gz
libdom-1464b39df09d285c440dcb0388ecb5dfd64590fb.tar.bz2
HTMLDocument: Allow memoised strings to differ from their names
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r--src/html/html_document.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c
index 288de82..69b40eb 100644
--- a/src/html/html_document.c
+++ b/src/html/html_document.c
@@ -86,9 +86,9 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc,
goto out;
}
-#define HTML_DOCUMENT_STRINGS_ACTION(attr) \
- error = dom_string_create_interned((const uint8_t *) #attr, \
- SLEN(#attr), &doc->memoised[hds_##attr]); \
+#define HTML_DOCUMENT_STRINGS_ACTION(attr,str) \
+ error = dom_string_create_interned((const uint8_t *) #str, \
+ SLEN(#str), &doc->memoised[hds_##attr]); \
if (error != DOM_NO_ERR) { \
goto out; \
}