From 19b45fb494358838be8b3175fde9e3ab55ef5bfa Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 4 May 2019 12:18:21 +0100 Subject: Support script insertion after conversion has begun Signed-off-by: Daniel Silverstone --- content/handlers/html/html_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'content/handlers/html/html_internal.h') diff --git a/content/handlers/html/html_internal.h b/content/handlers/html/html_internal.h index 77354c369..a4ae1da57 100644 --- a/content/handlers/html/html_internal.h +++ b/content/handlers/html/html_internal.h @@ -98,6 +98,7 @@ typedef struct html_content { dom_hubbub_parser *parser; /**< Parser object handle */ bool parse_completed; /**< Whether the parse has been completed */ + bool conversion_begun; /**< Whether or not the conversion has begun */ /** Document tree */ dom_document *document; @@ -313,9 +314,10 @@ dom_hubbub_error html_process_script(void *ctx, dom_node *node); * http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#the-script-element * * \param htmlc html content. + * \param allow_defer allow deferred execution, if not, only async scripts. * \return NSERROR_OK error code. */ -nserror html_script_exec(html_content *htmlc); +nserror html_script_exec(html_content *htmlc, bool allow_defer); /** * Free all script resources and references for a html content. -- cgit v1.2.3