Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[scoped-custom-element-registry] createElementNS is unsupported #563

Open
5 tasks done
danwulff opened this issue Sep 14, 2023 · 0 comments · May be fixed by #582
Open
5 tasks done

[scoped-custom-element-registry] createElementNS is unsupported #563

danwulff opened this issue Sep 14, 2023 · 0 comments · May be fixed by #582

Comments

@danwulff
Copy link

danwulff commented Sep 14, 2023

Description

With the scoped-custom-element-registry polyfill installed. When calling createElementNS() via a shadowRoot an error is thrown.

Example

<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');

Steps to reproduce

  1. Install the scoped-custom-element-registry polyfill
  2. Attach a shadow root to an element
  3. Call 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

  • Chrome
  • Firefox
  • Edge
  • Safari
  • IE 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant