Open terryknowlton opened 1 month ago
Thanks for the issue. It looks like the problem is a JavaScript file on the page that overrides native JavaScript functions. In this case window.Node
is not the native implementation but comes from the common.js
file (line 355, function Node
). This causes our code to not be able to run correctly.
To fix it you'll need to not have the file add the function to the global scope by either changing the name of the function or probably the most robust solution would be to not have the file add any of the functions to the global scope to prevent accidentally overriding native JavaScript functions.
Thanks for the issue. It looks like the problem is a JavaScript file on the page that overrides native JavaScript functions. In this case
window.Node
is not the native implementation but comes from thecommon.js
file (line 355,function Node
). This causes our code to not be able to run correctly.To fix it you'll need to not have the file add the function to the global scope by either changing the name of the function or probably the most robust solution would be to not have the file add any of the functions to the global scope to prevent accidentally overriding native JavaScript functions.
@straker Thank you for the details and steps to work around the issue. Unfortunately this is a client's application and I am not certain what access they have to make modifications. I will relay the suggestion and try to work with them to get their application updated. I'm assuming because they are overriding the global scope there isn't much else that can be done within the axe implemenation?
That is correct, once globals are overridden there's not much we can do.
Product
axe-core
Product Version
4.9.1
Latest Version
Issue Description
Attempting to execute a run request against
https://stg1.webassessor.com/wa.do
results in an error indicating there are 'No elements found for include in page Context' when it is run without an--include
option. When the request is run with--include html
the accessibility results are returned as expected.Fails
Passes
Expectation
Successfully returns the accessibility results for the page when only the url is provided without an
--include
argumentActual
Results in the below error
How to Reproduce
Can be reproduced by running from the command line
Additional context
OS: ubuntu 22.04 Node: 18