It is not the parser that serializes things. A parser just builds the dom-like node tree. Beautification comes from how you serialize the tree back to text / xhtml.
Gumbo like all browser parsers is a an automatic mend/repair parser. It can take horrible html junk code and still build a viable node tree using the official rules of html5+ whatwg parsing.
|