add superscript, subscript, and document attribute