Pattern
Callback-Based HTML Serialization
callback-based-serialization-ordering
DOM HTML fails to reach disk because Lexbor’s serializer emits through a streaming callback, so attempting to dump characters directly (or write before serialization) produces empty or incomplete output, requiring tree serialization into the callback or explicit buffer writes.