fix Document.isRewritten for documents without parser-specific rewrite
rules
enable parsing of multiple different markup formats within the same
document tree