Pattern
HTML Serialization Callback Misuse
html-serialization-callback-misuse
Lexbor’s HTML serializer streams output via a write callback, so if you try to write to QFile directly without first producing the serialized tree/buffer, the file ends up empty or incomplete.