5 comments
Comment actions Permalink

Context please...
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Cannot parse the javascript statement below

var strRepoDate = <%= "\""strRepoDate"\""%>;



0
Comment actions Permalink

Context please...

Context is Javascript of course, but what the expected behaviour should be is an open question, i.e. does this stmt should be red?
What about

var strRepoDate = <![CDATA[<%= strQuotedRepoDate %>; or ]]>

I guess we are at the point were some things are beter left unspoken (unchecked) ...

0
Comment actions Permalink

Andrei Tokar wrote:

>>Context please...


Context is Javascript of course, but what the expected behaviour should be is an open question, i.e. does this stmt should be red?
What about

var strRepoDate = <%= strQuotedRepoDate %>;


More context would be to say "javascript within a JSP file".

In a straight HTML file that would be invalid javascript.

0
Comment actions Permalink

I see the same problem with all <![CDATA[<%=code%> constructs inside javascript

0
Comment actions Permalink

It seems that same problem appears when mixing CSS Styles and JSP insertions

<![CDATA[

...

]]>

0

Please sign in to leave a comment.