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

No support for CustomElements Shadow DOM ? #9

Open
BerndWessels opened this issue Sep 26, 2020 · 0 comments
Open

No support for CustomElements Shadow DOM ? #9

BerndWessels opened this issue Sep 26, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@BerndWessels
Copy link

Summary

ARC Toolkit does not work with the websites using CustomElements Shadow DOM

Expected result

ARC Toolkit should behave like assistive technology and support CustomElements Shadow DOM

Actual result

ARC Toolkit does not recognize any elements within the CustomElements Shadow DOM

Test Case

Without CustomElements

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ARC Toolkit Shadow DOM issue</title>
</head>
<body>
<main role="main"><h1>My Product</h1></main>
</body>
</html>

image

image

With CustomElements

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ARC Toolkit Shadow DOM issue</title>
    <script>
        class ProductTitle extends HTMLElement {
            connectedCallback() {
                this.attachShadow({ mode: 'open' });
                this.shadowRoot.innerHTML = "<h1>My Product</h1>";
            }
        }
        customElements.define('my-product-title', ProductTitle);
    </script>
</head>
<body>
<main role="main"><my-product-title></my-product-title></main>
</body>
</html>

image

image

Additional Information

CustomElements are a widely used standard and without support for it ARC Toolkit becomes useless in most modern websites.

ARC Toolkit version

Version: 3.3.2.0

Operating System and version

Windows 10

Browser and version:

Google Chrome Version 85.0.4183.121 (Official Build) (64-bit)

@BerndWessels BerndWessels added the bug Something isn't working label Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant