View Full Version : //@ comments crashes IE

2 Mar 2010, 3:45 AM
Comments like this, crashes IE:
//@compat addButton and buttons could possibly be removed
//@target 4.0

If I add a space between // and @ it works in IE.~o)

2 Mar 2010, 6:41 AM
that was resolved in SVN only recently.
(though i still think it's a stupid IE bug -- why on earth should browsers crash on js comments?!)

you'll see it in the next minor release.

Mike Robinson
2 Mar 2010, 8:08 AM
It kinda reminds me of the #! ("shebang") construct of a Shell script. "A comment that isn't quite."

There could be some kind of "compiler directive" code in the guts of IE's parser that maybe is undocumented and forgotten. Or maybe there is a document somewhere.