parserino.html.parser
The HTML parser: tokenizer + tree builder, for documents (also chunk by chunk) and fragments.
struct Parser
Types 1
structParser
A parser. It must not be moved after begin (the tokenizer points to the tree builder): keep it in memory that doesn't move (heap, or a local variable used in place).
Methods
bool feed(scope const(char)[] chunk) @nogc nothrow pure @safeParse a chunk of input. It returns false if out of memory.Functions 4
fn
bool parseDocument(DomDocument * doc, scope const(char)[] html) @nogc nothrow pure @safeParse a whole document into `doc` (an empty document)fn
DomElement * parseFragment(DomDocument * doc, DomElement * context, scope const(char)[] html) @nogc nothrow pure @safeParse a fragment in the context of `context` (an element of `doc`). It returns a detached `<html>` element whose children are the result, or null if out of memory.