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/06/20 16:00:20 UTC
[Bug 2248] New: - HTMLSerializer SAX methods check for null instead of empty
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2248
*** shadow/2248 Wed Jun 20 07:00:20 2001
--- shadow/2248.tmp.3314 Wed Jun 20 07:00:20 2001
***************
*** 0 ****
--- 1,28 ----
+ +============================================================================+
+ | HTMLSerializer SAX methods check for null instead of empty |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2248 Product: Xerces-J |
+ | Status: NEW Version: 1.4 |
+ | Resolution: Platform: All |
+ | Severity: Major OS/Version: All |
+ | Priority: Other Component: Serialization |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: gthb@dimon.is |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ In HTMLSerializer.startElement (SAX2 version), the local
+ name is used as htmlName if the namespace URI is null
+ or equal to the XHTML namespace URI. But SAX2 doesn't
+ allow the namespace URI to be null, it must be empty if
+ not specified. This means fully SAX2-compliant events
+ representing straight HTML are not recognized as HTML,
+ so elements like <BR> are serialized as <BR></BR>, etc.
+
+ See SAX2 API docs:
+ http://xml.apache.org/xerces-
+ j/apiDocs/org/xml/sax/ContentHandler.html#startElement(java.lang.String,
+ java.lang.String, java.lang.String, org.xml.sax.Attributes)
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org