You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Websites that use prototype.js cause axe-core v4.9.0 to not be able to load. When trying to load axe-core on the page we get an error Uncaught TypeError: No color space found with id = "oklch".
In order to get v4.9.0 working we are going to revert our update to colorjs from v0.5.0. This will allow axe-core to load on the page but will cause color-contrast to error during it's run. To fix that we're going to load an Array.from polyfill right before we call colorjs code to fix the problem, then restore the prototype.jsArray.from implementation right afterwards.
The text was updated successfully, but these errors were encountered:
…ith prototype.js (#4429)
This [puts back the v0.4.3
code](#4366) in `color.js` to
handle colorjs.io not handling rad and turn values in hsl.
I also decided to use core-js `Array.from` polyfill rather than our own
internal one since I needed to bring it in outside of the `polyfill.js`
file and could then add it as an import and reuse it in both places.
Closes: #4428
Validated with the latest axe-core dev branch code base, now on websites that uses prototype.js (http://script.aculo.us/), we are able to load and getting the a11y issues if any. But not getting color space with id="oklch"
Screen.Recording.2024-05-06.at.3.52.15.PM.mov
Environment:
Label
Value
Product
axe-core
Version
4.9.0(Dev Branch Code base
OS-Details
_MAC- Intel Core i7 - 11.6.8 _
BrowserDetails
Chrome Version 124.0.6367.119 (Official Build) (64-bit)
Websites that use
prototype.js
cause axe-core v4.9.0 to not be able to load. When trying to load axe-core on the page we get an errorUncaught TypeError: No color space found with id = "oklch"
.In order to get v4.9.0 working we are going to revert our update to colorjs from v0.5.0. This will allow axe-core to load on the page but will cause color-contrast to error during it's run. To fix that we're going to load an
Array.from
polyfill right before we call colorjs code to fix the problem, then restore theprototype.js
Array.from
implementation right afterwards.The text was updated successfully, but these errors were encountered: