schema-components - v3.7.0
    Preparing search index...

    Function serializeChunks

    • Serialise an HTML node to chunks, yielded at natural element boundaries.

      • Each top-level child element becomes its own chunk
      • Leaf text within an element stays with its parent
      • Void elements are single chunks

      This is used by the streaming renderer to produce incremental output.

      Parameters

      • node: HtmlNode

        An HTML node to serialise

      Returns Iterable<string, void, undefined>

      Iterable of HTML string chunks