Function run

Source
fn run(
    sink: Sink,
    fragment_context: Option<(ParseNode, bool)>,
    form_parse_node: Option<ParseNode>,
    sender: Sender<ToTokenizerMsg>,
    receiver: Receiver<ToHtmlTokenizerMsg>,
    scripting_enabled: bool,
)
Expand description

Run the parser.

The fragment_context argument is Some in the fragment case and describes the context node as well as whether scripting is enabled for the context node. Note that whether or not scripting is enabled for the context node does not affect whether scripting is enabled for the parser, that is determined by the scripting_enabled argument.