-
Notifications
You must be signed in to change notification settings - Fork 783
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
getFlattenedTree fails on firefox in pages with <content> elements #1576
Comments
For Docs: Not sure if we need to document this or not, but since |
The point that "anytime an element isn't supported (currently FF) we treat it like a I don't think we're on the hook for documenting that we match FF functionality over a deprecated shadow DOM element. @WilcoFiers : Opinion? |
Wilco agrees this is not a documentation issue. |
Expectation: It shouldn't error.
Actual: It errors with
TypeError: "e.getDistributedNodes is not a function"
.Motivation: Crashing on
axe.run
isn't good.Expected to occur on any page developed with shadow DOM v0.
Error occurs on line 110 of
lib/core/utils/flattened-tree.js
. It callsgetDistributedNodes()
when the node is a<content>
element. The issue is thatgetDistributedNodes()
is deprecated and removed from Firefox.Minimal page that triggers the bug (taken from this MDN page) (this page as well):
Cause of #1512
The text was updated successfully, but these errors were encountered: