JS Error (syntax error) when running Lightbox

  • Question
  • Updated 5 years ago
  • Answered
Poor Benjamin, you're going to hate me.

Anyway, I noticed the lightbox plugin kicking up a JS error in IE in two separate installations. To make sure it wasn't anything I did (editing some of the paths to files and text), I put your original zipped files on my server and got the same error.

In IE6, I get a syntax error (Line 2, Char 1) that disappears when I remove the lightbox reference in the head.

In Firefox/Mac with Firebug, I can see that there's another error (maybe the same?) which crops up when I'm referencing the Lightbox plugin: "Expected ']' to terminate attribute selector but found '/'."

Any ideas? Is it me? I haven't upgraded to the newest jQuery, so that possible conflict can be eliminated. In fact, removing all other JavaScript/jQuery on the page, I still get the error.

Solution? Is it me?
Photo of Kate Hall

Kate Hall

  • 4 Posts
  • 1 Reply Like
  • sad

Posted 5 years ago

  • 3
Photo of Benjamin Lupton

Benjamin Lupton, Chief Architect & Director

  • 273 Posts
  • 10 Reply Likes
Official Response
Hi Kate,

No no, I don't hate you. Actually I'm thankful for you reporting such an issue. It would appear to be a CSS warning at first hand (given the screenshots you have attached).

To give a little background of the error, it would appear it only shows when they have "display a notification about every script error" enabled on IE.

The lightbox is the first thing on my priority list for end of February/March, and will get cracking on releasing a new version and ensuring that this issue is fixed.