WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tzdk
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/crayon-syntax-highlighter/

  2. tzdk
    Member
    Posted 2 years ago #

    Good news is it works fine when using IE7.

    Both IE8 and IE7 tested in updated XP.

  3. tzdk
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 years ago #

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

    https://dl.dropbox.com/u/33811812/Crayon/minor/crayon-syntax-highlighter-1.9.10-minor-1.zip

  5. tzdk
    Member
    Posted 2 years ago #

    From a quick test - yes you have :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic