package SZXX

  1. Overview
  2. Docs

Module SAX.To_DOMSource

Sourcetype state = {
  1. decl_attrs : attr_list option;
  2. stack : partial list;
  3. top : DOM.element option;
}
Sourceval sexp_of_state : state -> Sexplib0.Sexp.t
Sourceval init : state
Sourceval folder : ?strict:bool -> (state, string) Core.result -> node -> (state, string) Core.result

strict (default: true) When false, non-closed elements are treated as self-closing elements, HTML-style. For example a <br> without a matching </br> is treated as <br />