view : replace `document.register` -> `document.registerElement`

fix deprecation warnings