use document-register-element