Rework Document::element() syntax, complete type page transition.