html5ever::driver

Function parse_fragment_for_element

Source
pub fn parse_fragment_for_element<Sink>(
    sink: Sink,
    opts: ParseOpts,
    context_element: Sink::Handle,
    form_element: Option<Sink::Handle>,
) -> Parser<Sink>
where Sink: TreeSink,
Expand description

Like parse_fragment, but with an existing context element and optionally a form element.