Skip to content

prototype.js breaks axe-core v4.9.0 #4428

@straker

Description

@straker

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions