diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-26 17:57:06 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2012-03-26 17:57:06 +0000 |
commit | a03f470334566315bbd0a57dd53406f7738856ce (patch) | |
tree | 80aeb349585fab5cef089dc2194d03dcb4972ba0 /src/html/html_document.c | |
parent | 057abe26bb66c87dec76d58c5fde14f67c82d847 (diff) | |
download | libdom-a03f470334566315bbd0a57dd53406f7738856ce.tar.gz libdom-a03f470334566315bbd0a57dd53406f7738856ce.tar.bz2 |
Intern an 'id' string for our HTML elements to use
svn path=/trunk/libdom/; revision=13723
Diffstat (limited to 'src/html/html_document.c')
-rw-r--r-- | src/html/html_document.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/html/html_document.c b/src/html/html_document.c index 607bbaf..80737e6 100644 --- a/src/html/html_document.c +++ b/src/html/html_document.c @@ -75,7 +75,9 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc, doc->url = NULL; doc->cookie = NULL; - return DOM_NO_ERR; + error = dom_string_create_interned((const uint8_t *) "id", SLEN("id"), + &doc->_memo_id); + return error; } /* Finalise a HTMLDocument */ @@ -86,7 +88,9 @@ void _dom_html_document_finalise(dom_html_document *doc) dom_string_unref(doc->domain); dom_string_unref(doc->referrer); dom_string_unref(doc->title); - + + dom_string_unref(doc->_memo_id); + _dom_document_finalise(&doc->base); } |