support document.registerElement
enteredViewCallback -> attachedCallback
leftViewCallback -> detachedCallback
update tests: register -> registerElement; entered/left -> attached/detached.
update tests: register -> registerElement; entered/left -> attached/detached.