You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/11/02 11:28:49 UTC

[Bug 55735] Additional quote entity in html element attribute evaluated in tagx if attribute contains EL expression

https://issues.apache.org/bugzilla/show_bug.cgi?id=55735

--- Comment #1 from azuo.lee@sohu.com ---
Um... it seems JSP spec doesn't clarify the behavior at all...

But XSLT does. If we "borrow" rules from XSLT, then some correct examples could
be (text="2 > 1"):

tagx/jspx:  <div title="&quot;${text}&quot;">ABCD</div>
output:     <div title="&quot;2 &amp;gt; 1&quot;">ABCD</div>

tagx/jspx:  <div>&quot;<c:out value="&amp;nbsp;${text}&quot;"
escapeXml="false"></div>
output:     <div>&quot;&nbsp;2 &gt; 1"</div>

But XSLT doesn't allow expressions in template text, thus, what can be the
correct result generated by the following example?

tagx/jspx:  <div>&quot;${text}&quot;</div>

Should it be
output:     <div>&quot;2 &amp;gt; 1&quot;</div>
or
output:     <div>"2 &gt; 1"</div>
or
output:     <div>&quot;2 &gt; 1&quot;</div>
or
output:     <div>"2 &amp;gt; 1"</div>

????????

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org