You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2005/04/07 23:40:56 UTC

DO NOT REPLY [Bug 34363] New: - Batik chokes on whitespace text before element

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=34363

           Summary: Batik chokes on whitespace text before <svg> element
           Product: Batik
           Version: 1.5
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVG DOM
        AssignedTo: batik-dev@xml.apache.org
        ReportedBy: werbung@kuhnle.net


Batik 1.5.1 chokes with the following exception if a characters event is
received before the startElement for the "svg" element, even if the characters
are only whitespace. Maybe this should be relaxed a bit, so whitespace only
characters are ignored.

org.w3c.dom.DOMException: The current node (type: 9, name: #document) do not
allow children of the given type (type: 3, name: #text)
	at org.apache.batik.dom.AbstractNode.createDOMException(AbstractNode.java:404)
	at org.apache.batik.dom.AbstractDocument.checkChildType(AbstractDocument.java:545)
	at
org.apache.batik.dom.AbstractParentNode.checkAndRemove(AbstractParentNode.java:457)
	at
org.apache.batik.dom.AbstractParentNode.insertBefore(AbstractParentNode.java:114)
	at
org.apache.batik.dom.util.SAXDocumentFactory.startElement(SAXDocumentFactory.java:542)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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