You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/13 21:05:48 UTC

DO NOT REPLY [Bug 4845] New: - xsltc should escape quote chars in an html attribute

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4845>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4845

xsltc should escape quote chars in an html attribute

           Summary: xsltc should escape quote chars in an html attribute
           Product: XalanJ2
           Version: 2.0.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


A customer test, editing, fails because quote characters within 
an html attribute are not escaped. Consequently, the html is invalid
and will cause errors in the browser.

For example (with some spaced deleted for readability), XSLTC outputs:

onClick="if(this.checked) top.applet.updateProperty( "TopNews8", "", "visible",
"true");  else top.applet.updateProperty( "TopNews8", "", "visible", "false");"

and Xalan outputs:

onClick="if(this.checked) top.applet.updateProperty(
&quot;TopNews8&quot;, &quot;&quot;, &quot;visible&quot;,
&quot;true&quot;); else top.applet.updateProperty( &quot;TopNews8&quot;,
&quot;&quot;, &quot;visible&quot;, &quot;false&quot;);"