Pattern
Streaming HTML Serialization
streamed-html-serialization-callback-misuse
HTML output fails to reach disk because Lexbor’s serializer streams via a callback, so you can’t write directly with QFile until the DOM is serialized (or the serialized buffer is written) through the expected write path.