parseToSnapshot

fnDomSnapshot parseToSnapshot(string html, bool scripting, ref RawParseError[] errors) pure

Parse html and take its snapshot; the parse errors go in errors (it works at compile time too). Unlike parseToSnapshot, it collects the errors.

fnDomSnapshot parseToSnapshot(string html, bool scripting = false) pure

Parse html and take its snapshot (for compile time: static immutable s = parseToSnapshot(html);)