Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Aral Balkan
Aral Balkan
@aral@mastodon.ar.al  ·  activity timestamp last month

So I just wasted a morning trying to debug why the Highlight.js syntax highlighting in Kitten suddenly began to fail only to realise that @1password is stripping the hljs- prefixes from the class names.

You can see this for yourself if you have the 1password extension installed at:

https://kitten.small-web.org/#the-ubiquitous-counter-example

Load that page with 1password enabled in your browser and you will see that the syntax highlighting doesn’t work and the hljs- prefixes have been stripped.

Disable the 1password extension and load the page again and you will see syntax highlighting working properly.

WTF?!

#1password #browser #extension #highlightJS #Kitten

  • Copy link
  • Flag this post
  • Block
Hippo 🍉
Hippo 🍉
@badrihippo@fosstodon.org replied  ·  activity timestamp last month

@aral @1password

"WTF?!"

My reaction exactly 😶

  • Copy link
  • Flag this comment
  • Block
Fady
Fady
@Fady@mastodon.tn replied  ·  activity timestamp last month

@aral Dear friends. Unfortunately, we're dying slowly and suffering from hunger and thirst, and we're asking you to donate five dollars, which means a lot to my family and give you life and hope
https://www.gofundme.com/f/56mx4-help-me-to-reunion-with-my-family

gofundme.com

Donate to Help my husband survive genocide&reunite together, organized by Rania Abo Agwa

… Rania Abo Agwa needs your support for Help my husband survive genocide&reunite together
  • Copy link
  • Flag this comment
  • Block
Ben Tasker
Ben Tasker
@ben@mastodon.bentasker.co.uk replied  ·  activity timestamp last month

@aral @1password

How weird and frustrating...

The highlighting works fine for me.

Looking at 1password's about, though, I'm running 8.11.16.35 which appears to be 3 releases out of date, so it probably breaks in a newer release.

Browser on another my machines has 8.11.18.36 and highlighting works there.

Which leaves the 8.11.20 and 8.11.22 updates as likely culprits

  • Copy link
  • Flag this comment
  • Block
Josh :blobcat_googly2:
Josh :blobcat_googly2:
@joshbal4@m.fa.gl replied  ·  activity timestamp last month

@aral wow that is frustrating, great job catching it! Really goes to show that web dev is really at the mercy of the weird and wonderful browser setups people have!

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-beta.35 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct