From 49effe103a260a60949d3c95494ae81b031799d9 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 19 Jun 2012 09:35:51 +0000 Subject: restructure javascript binding layout to be more explicit fix html content so it correctly loads all the script tags svn path=/trunk/netsurf/; revision=13968 --- render/html.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'render/html.h') diff --git a/render/html.h b/render/html.h index 7d2ef82cf..f0ab47d51 100644 --- a/render/html.h +++ b/render/html.h @@ -58,6 +58,26 @@ struct html_stylesheet { } data; /**< Sheet data */ }; +/** + * Container for scripts used by an HTML document + */ +struct html_script { + /** Type of script */ + enum html_script_type { HTML_SCRIPT_EXTERNAL, HTML_SCRIPT_INTERNAL } type; + union { + struct hlcache_handle *external; + struct dom_string *internal; + } data; /**< Script data */ + struct dom_string *script_type; + struct dom_string *encoding; + bool already_started; + bool parser_inserted; + bool force_async; + bool ready_exec; + bool async; + bool defer; +}; + /** An object (, , etc.) in a CONTENT_HTML document. */ struct content_html_object { -- cgit v1.2.3