Formatting from document().