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.js Array.from implementation right afterwards.
Websites that use
prototype.jscause 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.frompolyfill right before we call colorjs code to fix the problem, then restore theprototype.jsArray.fromimplementation right afterwards.