Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/core/document.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ dom_exception _dom_document_initialise(dom_document *doc,
return err;
}

doc->is_html = false;
doc->nodelists = NULL;
doc->script_added_callback = NULL;
doc->script_added_callback_ctx = NULL;
Expand Down
2 changes: 2 additions & 0 deletions src/core/document.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ struct dom_document {
void* script_added_callback_ctx;
dom_script_added_callback script_added_callback;

bool is_html;

/* Memoised event strings */
dom_string *_memo_domnodeinserted; /**< DOMNodeInserted */
dom_string *_memo_domnoderemoved; /**< DOMNodeRemoved */
Expand Down
2 changes: 2 additions & 0 deletions src/html/html_document.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ dom_exception _dom_html_document_initialise(dom_html_document *doc,
if (error != DOM_NO_ERR)
return error;

doc->base.is_html = true;

doc->title = NULL;
doc->referrer = NULL;
doc->domain = NULL;
Expand Down
Loading