document.registerElement is an obsolete browser API formerly used to register custom elements. A-Frame used it with a polyfill to support browsers broadly, rather than using the newer Custom Element API. section 15.2
The API appears in a custom-element design that includes attribute-change callbacks and connected callbacks. A-Frame combines those elements with ordinary inner DOM instead of Shadow DOM. section 15.2
A-Frame’s compatibility layer
An A-Frame page can use an <a-scene> element and edit its 3D contents live in browser developer tools, while the library relies on document.registerElement plus a polyfill behind the scenes. section 15.2
