Ticket #3960 (closed defect: fixed)

Opened 16 months ago

Last modified 5 months ago

IE @cc_on breaks dojo.require

Reported by: guest Owned by: jburke
Priority: normal Milestone: 1.1
Component: PackageSystem Version: 0.9
Severity: normal Keywords:
Cc:

Description (last modified by jburke) (diff)

We have 3rd party component we use that uses conditional compilation in several places. Within IE(6&7), after a @cc_on statement, all dojo.require's fail. This is new to dojo 0.9.

I have debugged the following, and it errors when trying to eval the downloaded JavaScript?. The script looks fine, but the voodoo in dojo.eval fails with a helpful "SyntaxError?" from IE.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<title>Test Page</title>
	<script type="text/javascript" src="scripts/dojo/dojo.js" djconfig="parseOnLoad: true, isDebug: true"></script>
	<script type="text/javascript">
		/*@cc_on
			/*@if (@_win32)
				document.write("OS is 32-bit, browser is IE.");
			@else @*/
				document.write("Browser is not IE (ie: is Firefox) or Browser is not 32 bit IE.");
			/*@end
		@*/
		dojo.require("dojo.parser");
	</script>
</head>
<body>
</body>
</html>

Change History

Changed 9 months ago by dylan

  • owner changed from alex to jburke
  • milestone set to 1.2

Changed 5 months ago by jburke

  • status changed from new to closed
  • resolution set to fixed
  • description modified (diff)

This appears to be fixed now on the trunk. I think it was actually fixed in the Dojo 1.1 timeframe, when the code changed to how the firebug eval debugging filename hint was added.

Changed 5 months ago by bill

  • milestone changed from 1.2 to 1.1
Note: See TracTickets for help on using tickets.