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

Console error in setCache for slot element #1878

Open
shunguoy opened this issue Mar 22, 2024 · 1 comment
Open

Console error in setCache for slot element #1878

shunguoy opened this issue Mar 22, 2024 · 1 comment
Labels
Bug Something isn't working engine Issues in the accessibility-checker-engine component priority-2 (med) T61 user-reported Issues identified outside of the core team

Comments

@shunguoy
Copy link
Contributor

Test page: https://www.ibm.com/us-en
Although the page scan looks fine, the console shows rule exceptions:

RULE EXCEPTION: text_spacing_valid /html[1]/body[1]/div[1]/div[1]/div[1]/dds-masthead-container[1]/dds-masthead[1]/#document-fragment[1]/div[1]/div[1]/div[1]/div[1]/slot[1]/dds-top-nav[1]/#document-fragment[1]/div[2]/div[1]/nav[1]/div[2]/slot[1]/dds-megamenu-top-nav-menu[1]/#document-fragment[1]/a[1] TypeError: Cannot read properties of null (reading 'nodeType')
at t.setCache (chrome-extension://lkcagbfjnkomcinoddgooolagloogehp/archives/preview/js/ace.js:2:512144)
at e.getAncestorWithStyles (chrome-extension://lkcagbfjnkomcinoddgooolagloogehp/archives/preview/js/ace.js:2:138488)
at Object.run (chrome-extension://lkcagbfjnkomcinoddgooolagloogehp/archives/preview/js/ace.js:2:488962)
at e.run (chrome-extension://lkcagbfjnkomcinoddgooolagloogehp/archives/preview/js/ace.js:2:172153)
at e.run (chrome-extension://lkcagbfjnkomcinoddgooolagloogehp/archives/preview/js/ace.js:2:174176)
at e.check (chrome-extension://lkcagbfjnkomcinoddgooolagloogehp/archives/preview/js/ace.js:2:202238)
at :1:346
at :1:1392

@shunguoy shunguoy added Bug Something isn't working engine Issues in the accessibility-checker-engine component user-reported Issues identified outside of the core team T61 labels Mar 22, 2024
@philljenkins
Copy link
Contributor

philljenkins commented Apr 1, 2024

Slot (shadow DOMs) may not exist in the DOM/accessibility tree.
Also, is impacting performance.
But we need to find more examples of pages that use slots/shadow DOMs, or some other situation to be investigated such as nested slots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working engine Issues in the accessibility-checker-engine component priority-2 (med) T61 user-reported Issues identified outside of the core team
Projects
None yet
Development

No branches or pull requests

2 participants