Closed danwulff closed 3 weeks ago
With the scoped-custom-element-registry polyfill installed. When calling createElementNS() via a shadowRoot an error is thrown.
createElementNS()
<div id="app"></div>
const appDiv = document.getElementById('app'); const shadowRoot = appDiv.attachShadow({ mode: 'open' }); const div = shadowRoot.createElementNS('http://www.w3.org/1999/xhtml', 'div');
shadowRoot.createElementNS()
No error is thrown as the polyfill should support createElementNS as it is included in the spec.
Error is thrown TypeError: .createElementNS is not a function
TypeError: .createElementNS is not a function
@webcomponents/scoped-custom-element-registry@0.0.9
Description
With the scoped-custom-element-registry polyfill installed. When calling
createElementNS()
via a shadowRoot an error is thrown.Example
Steps to reproduce
shadowRoot.createElementNS()
Expected behavior
No error is thrown as the polyfill should support createElementNS as it is included in the spec.
Actual behavior
Error is thrown
TypeError: .createElementNS is not a function
Version
@webcomponents/scoped-custom-element-registry@0.0.9
Browsers affected