Axe-core: axe extension suppresses code highlighting script on getbootstrap.com

Created on 14 Dec 2020  路  4Comments  路  Source: dequelabs/axe-core

in Chrome at least, loading https://getbootstrap.com/docs/5.0/getting-started/introduction/ when the extension is active blocks/overrides the JS-based code highlighting.

Screenshot of the 'Starter Template' code block, showing no code highlighting

extension

Most helpful comment

Hey folks, we've implemented a fix for this and this will be rolling out in a release soon.

All 4 comments

This appears to be related to #1868

I've noticed this on my own blog and the issue was driving me crazy. I thought it must be something with PrismJS or Chrome, until I found the real root cause. The axe web extension reapplies PrismJS on already tokenized code, so things are breaking.

But this also means that all my code examples are broken for axe web extension users (mainly because of #1868). Please prioritize this issue, as Axe users and people posting code examples on the internet are often the same group, and the Axe extension is messing things up (missing line breaks, missing syntax highlighting):

image

Notice: same issue as #2711

Hey folks, we've implemented a fix for this and this will be rolling out in a release soon.

Was this page helpful?
0 / 5 - 0 ratings