You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/03/02 21:26:57 UTC
[Bug 820] New - HTMLSerializer does not check for XHTML serialization when writing characters
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=820
*** shadow/820 Fri Mar 2 12:26:57 2001
--- shadow/820.tmp.26758 Fri Mar 2 12:26:57 2001
***************
*** 0 ****
--- 1,24 ----
+ +============================================================================+
+ | HTMLSerializer does not check for XHTML serialization when writing charact |
+ +----------------------------------------------------------------------------+
+ | Bug #: 820 Product: Xerces-J |
+ | Status: NEW Version: unspecified |
+ | Resolution: Platform: All |
+ | Severity: Normal OS/Version: All |
+ | Priority: Component: Serialization |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: corey@morphis.org |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ In the HTMLSerializer methods:
+
+ public void characters(char[] chars, int start, int length)
+ protected void characters( String text )
+
+ the element state is set doCData=false without a check for _xhtml which is the
+ flag for XHTML serialization. This prevents the text in a script tag being
+ wrapped in a CDATA section as it should be in XHTML.