Crayon Syntax Highlighter
[resolved] IE8 JS problems? (5 posts)

  1. tzdk
    Posted 4 years ago #

    There seem to be some issues with IE8. Like on your own demo page http://aksandbox.webege.com/?p=1 Line numbers gone, tool bar do not work. I see that on own tests as well.

    I tried to disable this and that, no good.

    However while writing this I noticed this site http://kampungtoys.com/tag/crayon-syntax-highlighter/ using 1.9.9 and there it works in IE8! How come not on your demo site or any of mine then? That site use jQuery 1.7.2 like me so that cant be it. I added question mark to title just to cover my butt, heh.

    I test in Virtualbox but should be valid enough.


  2. tzdk
    Posted 4 years ago #

    Good news is it works fine when using IE7.

    Both IE8 and IE7 tested in updated XP.

  3. tzdk
    Posted 4 years ago #

    Seems like problem is setProperty, line 61 in crayon.js - only works from IE9 they say http://help.dottoro.com/ljdpsdnb.php There are 2 instances of setProperty but same issue I think.

    If changed to old setAttribute IE8 works fine but then problems pop up in newer browser. And JS error "style.setAttribute is not a function".

  4. akarmenia
    Plugin Author

    Posted 4 years ago #

    Yep, I believe I've fixed it. Please try replacing with this:


  5. tzdk
    Posted 4 years ago #

    From a quick test - yes you have :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Crayon Syntax Highlighter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic