summaryrefslogtreecommitdiff
path: root/src/core/document.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/document.c')
-rw-r--r--src/core/document.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/document.c b/src/core/document.c
index 3f7ce77..c4e0283 100644
--- a/src/core/document.c
+++ b/src/core/document.c
@@ -132,6 +132,11 @@ dom_exception _dom_document_initialise(dom_document *doc,
doc->id_name = NULL;
+ if (lwc_intern_string("class", SLEN("class"),
+ &doc->class_string) != lwc_error_ok) {
+ return DOM_NO_MEM_ERR;
+ }
+
/* We should not pass a NULL when all things hook up */
return _dom_document_event_internal_initialise(doc, &doc->dei, daf);
}
@@ -164,6 +169,8 @@ bool _dom_document_finalise(dom_document *doc)
if (doc->id_name != NULL)
dom_string_unref(doc->id_name);
+
+ lwc_string_unref(doc->class_string);
_dom_document_event_internal_finalise(doc, &doc->dei);