Product
axe-core
Product Version
= 4.6.0
Latest Version
Issue Description
Expectation
I expect it to correctly identify color contrast issues
Actual
It does not identify color contrast issues. Instead, an error message is logged to the results:
TypeError: setting getter-only property "right"
How to Reproduce
Run axe-core >= 4.6.0 in an extension. (Feel free to reach out, and I can help you get set up with an extension with axe-core >= 4.6.0)
Additional context
I have traced down the issue and am submitting a PR to fix it. The issue is axe-core is trying to set DOMRect.right here:
|
nodeRect.right = nodeRect.left + nodeRect.width; |
. However,
DOMRect.right (and
DOMRect.bottom) is a read-only property.
Unfortunately, browsers seem to enforce this inconsistently, and it is only actually enforced from the isolated world that an extension content script runs in.
Product
axe-core
Product Version
Latest Version
Issue Description
Expectation
I expect it to correctly identify color contrast issues
Actual
It does not identify color contrast issues. Instead, an error message is logged to the results:
How to Reproduce
Run axe-core >= 4.6.0 in an extension. (Feel free to reach out, and I can help you get set up with an extension with axe-core >= 4.6.0)
Additional context
I have traced down the issue and am submitting a PR to fix it. The issue is axe-core is trying to set
DOMRect.righthere:axe-core/lib/commons/color/get-background-color.js
Line 153 in 123b83c
DOMRect.right(andDOMRect.bottom) is a read-only property.Unfortunately, browsers seem to enforce this inconsistently, and it is only actually enforced from the isolated world that an extension content script runs in.