hello-world-element
hello-world-element copied to clipboard
createShadowRoot is deprecated
https://developer.mozilla.org/ru/docs/Web/API/Element/createShadowRoot
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Do not use it in old or new projects. Pages or Web apps using it may break at any time.
This is known. There's been a lot of churn on shadow dom recently, and the browser vendors have finally settled on pursuing Shadow DOM v1: https://www.chromestatus.com/features/4667415417847808
createShadowRoot
is part of the original standard: https://www.chromestatus.com/features/4507242028072960
Chrome is shipping the createShadowRoot
API but the polyfill has not been updated yet to support the new stuff.
See https://github.com/webcomponents/webcomponentsjs/issues/430
https://github.com/webcomponents/hello-world-element/pull/12