Community
Participate
Working Groups
Currently the JSDT validator does not support text after a leading opening HTML style comment in a JavaScript region. This scenario is stated as valid in http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.3 Example: <script type="text/javascript"> <!-- to hide script contents from old browsers var v = "foo"; // --> </script>
I have opened Bug 326420 and Bug 326422 to track getting this fixed in 3.2.2patches and 3.2.3/3.3 respectively.
Created attachment 179759 [details] Fix Patch This patch fixes up the JsTranslator to ignore the text after the leading HTML comment thats on the same line.
Created attachment 180381 [details] updated version of Ian's patch Updating Ian's patch to better use some nonvariants, and changing variable names so they're a little easier to follow.
Carl, this is claimed to be in P20101016021951. Can it be resolved?
Committed to R3_0_5_patches