Last modified: 2013-03-06 05:32:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27575, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25575 - JavaScriptMinifier should preserve IE's "Conditional compilation" statements
JavaScriptMinifier should preserve IE's "Conditional compilation" statements
Status: NEW
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.17.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-19 00:00 UTC by Michael Dale
Modified: 2013-03-06 05:32 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Michael Dale 2010-10-19 00:00:44 UTC
the syntax /*@cc_on*/ is sometimes used to conditionally add content to IE browsers see: 
http://www.javascriptkit.com/javatutors/conditionalcompile.shtml

Its useful in cases where client detection library is not ready yet or you need to do user-agent independent IE conditionals. 

Minification in resource loader should probably ignore striping comments that include /*@cc_on at the start. and @/ at the end.
Comment 1 Trevor Parscal 2010-10-21 06:37:33 UTC
Yes, this is brilliant! More JSMin tweaks to make I guess...
Comment 2 Bugmeister Bot 2011-08-19 19:12:54 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links