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 ji...@apache.org on 2004/04/12 23:13:49 UTC

[jira] Updated: (XERCERJ-18) HTMLSerializer SAX methods check for null instead of empty

The following issue has been updated:

    Updater: Serge Knystautas (mailto:sergek@lokitech.com)
       Date: Mon, 12 Apr 2004 2:12 PM
    Changes:
             Attachment changed from serializer-sax.patch
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XERCERJ-18?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCERJ-18

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCERJ-18
    Summary: HTMLSerializer SAX methods check for null instead of empty
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: Xerces2-J

   Assignee: Xerces-J Developers Mailing List
   Reporter: Gunnlaugur Thor Briem

    Created: Wed, 20 Jun 2001 7:00 AM
    Updated: Mon, 12 Apr 2004 2:12 PM
Environment: Operating System: All
Platform: All

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)


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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