Aframe: stop using document.registerElememt?

Created on 27 Nov 2018  路  4Comments  路  Source: aframevr/aframe

Chrome prints this message in the JS console

screen shot 2018-11-27 at 15 45 40

Most helpful comment

What's the plan to use the Custom Elements implementation that ships in Chrome, Safari and Firefox?

All 4 comments

That鈥檚 an innocous message. native document.registerElelement will be deprecated but A-Frame functionality won鈥檛 be affected. We polyfill via Mutation Observers.

A-Frame uses the custom elements API v0 (document.registerElement) to register all its elements a-node, a-scene... V0 will be deprecated next year in favor of V1. A-Frame has a polyfill for the old version and the deprecation won鈥檛 affect any functionality. You can safely ignore that warning message.

What's the plan to use the Custom Elements implementation that ships in Chrome, Safari and Firefox?

Was this page helpful?
0 / 5 - 0 ratings