Opened 6 years ago

Last modified 6 years ago

#10679 confirmed Bug

IE complains if "@" is used right after comment start

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: IE Cc:

Description

Problem was described on forum: http://ckeditor.com/forums/CKEditor/ckeditor-causes-comments-prefixed-by-in-subsequent-scripts-to-be-executed-as-code-in

CKEditor uses conditional compilation to determine whether it is ran on IE. If CKEditor's source file is followed (even indirectly) by:

//@

or:

/*@

IE will parse this comment as a CC statement (although, I have no idea why :|) causing a very likely syntax error.

Possible workarounds:

  • load CKEditor source after script with such comment,
  • do not use @ right after comment start (space is enough).

Attachments (1)

test.html (232 bytes) - added by Piotrek Koszuliński 6 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 6 years ago by Piotrek Koszuliński

Status: newconfirmed
Summary: IE is complaining if @ used right after // or /*IE complains if "@" is used right after comment start

Changed 6 years ago by Piotrek Koszuliński

Attachment: test.html added

comment:2 Changed 6 years ago by Piotrek Koszuliński

This issue already caused some minor problems in Drupal: https://drupal.org/node/1846214

comment:3 Changed 6 years ago by Piotrek Koszuliński

Linked in #10612.

comment:4 Changed 6 years ago by Jakub Ś

Version: 3.0

Reproducible in Ie from CKE 3.0

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy