[Mono-bugs] [Bug 81458][Nor] New - Parser problem with quotes in script tag

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 26 03:16:33 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by joe at ammendolias.com.


--- shadow/81458	2007-04-26 03:16:31.000000000 -0400
+++ shadow/81458.tmp.1982	2007-04-26 03:16:31.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 81458
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Fedora Core 6 x86_64
+Status: NEW   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: joe at ammendolias.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Parser problem with quotes in script tag
+Description of Problem:
+This bug seems similar to, but not exactly the same as bug # 81034
+To prevent caching of my javascript includes, I use the old document.write
+trick and appending "?" + the current time from Date.getTime() after the
+script name. This works on IIS with ASP.Net 1.1 but fails with a parser
+error in Apache/Mono (mod_mono). 
+It appears that the parser is not recognizing the quotes and is expecting
+an actual <script> tag. Also, it may be worth noting that it makes no
+difference if you use single or double quotes.
+Steps to reproduce the problem:
+1. Create a webform
+2. in the html view add the following in the body: 
+	<script language=javascript>
+		var dt = new Date();
+		document.write("<sc" + "ript src='script/somescript.js?" + dt.getTime() +
+"'></sc" + "ript>");
+	</script>
+3. compile and test.
+Actual Results:
+Parser Error
+Description: Error parsing a resource required to service this request.
+Review your source file and modify it to fix this error.
+Error message:
+expecting '>'. Got 'sc'
+File name: /web/sites/ammendolias.com/dev/html/monobug/scriptquote.aspx   
+Line: 15
+Source Error:
+  <body MS_POSITIONING="GridLayout">
+	<script language=javascript>
+		var dt = new Date();
+		document.write("<sc" + "ript src='script/bugscript.js?" + dt.getTime() +
+"'></sc" + "ript>");
+	</script>
+    <form id="Form1" method="post" runat="server">
+Expected Results:
+   The page should load
+How often does this happen? 
+   Every time. Reproducable.
+Additional Information:
+    For a demonstration of the bug, visit:

More information about the mono-bugs mailing list