package SZXX
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Assemble a sequence of SAX.node
"events" into a "shallow DOM" while streaming out the children matching a certain path. Those children aren't added to the DOM (hence "shallow").
module Hash_state : sig ... end
type state = {
decl_attrs : DOM.attr_list Base.option;
stack : partial Base.list;
path_stack : (Base.int * Hash_state.t * Base.int) Base.list;
top : DOM.element Base.option;
}
val sexp_of_state : state -> Sexplib0.Sexp.t
val init : state
val folder :
filter_path:Base.string Base.list ->
on_match:(DOM.element -> Base.unit) ->
?strict:Base.bool ->
state ->
node ->
state
strict
(default: true
) When false, non-closed elements are treated as self-closing elements, HTML-style. For example a <br>
without a matching </br>
will be treated as a self-closing <br />
. Note that non-closed elements within the path to filter_path
will prevent on_match
from being called on some (but not all) otherwise matching elements.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>