Simplify getter function for Document.compatMode