Cleanup HTML and doctype.
Use node color to indicate the document type not its distance from the source.