NetSurf
Public Types | Data Fields
html_script Struct Reference

Container for scripts used by an HTML document. More...

#include <html.h>

Collaboration diagram for html_script:
[legend]

Public Types

enum  html_script_type { HTML_SCRIPT_INLINE , HTML_SCRIPT_SYNC , HTML_SCRIPT_DEFER , HTML_SCRIPT_ASYNC }
 Type of script. More...
 

Data Fields

enum html_script::html_script_type type
 
union {
   struct hlcache_handle *   handle
 
   struct dom_string *   string
 
data
 Script data. More...
 
struct dom_string * mimetype
 
struct dom_string * encoding
 
bool already_started
 
bool parser_inserted
 
bool force_async
 
bool ready_exec
 
bool async
 
bool defer
 

Detailed Description

Container for scripts used by an HTML document.

Definition at line 69 of file html.h.

Member Enumeration Documentation

◆ html_script_type

Type of script.

Enumerator
HTML_SCRIPT_INLINE 
HTML_SCRIPT_SYNC 
HTML_SCRIPT_DEFER 
HTML_SCRIPT_ASYNC 

Definition at line 71 of file html.h.

Field Documentation

◆ already_started

bool html_script::already_started

◆ async

bool html_script::async

Definition at line 85 of file html.h.

Referenced by exec_src_script(), and html_process_new_script().

◆ 

union { ... } html_script::data

◆ defer

bool html_script::defer

Definition at line 86 of file html.h.

Referenced by exec_src_script(), and html_process_new_script().

◆ encoding

struct dom_string* html_script::encoding

Definition at line 80 of file html.h.

◆ force_async

bool html_script::force_async

Definition at line 83 of file html.h.

Referenced by html_process_new_script().

◆ handle

struct hlcache_handle* html_script::handle

◆ mimetype

struct dom_string* html_script::mimetype

◆ parser_inserted

bool html_script::parser_inserted

Definition at line 82 of file html.h.

Referenced by html_process_new_script().

◆ ready_exec

bool html_script::ready_exec

Definition at line 84 of file html.h.

Referenced by html_process_new_script().

◆ string

struct dom_string* html_script::string

Definition at line 77 of file html.h.

Referenced by exec_inline_script(), and html_script_free().

◆ type

enum html_script::html_script_type html_script::type

The documentation for this struct was generated from the following file: