opensubscriber
   Find in this group all groups
 
Unknown more information…

j : j-dev@xerces.apache.org 16 July 2009 • 9:10PM -0400

[jira] Created: (XERCESJ-1384) DOMException thrown in HTMLDocumentImpl.getDocumentElement()
by Johannes Koch (JIRA)

REPLY TO AUTHOR
 
REPLY TO GROUP




DOMException thrown in HTMLDocumentImpl.getDocumentElement()
------------------------------------------------------------

                 Key: XERCESJ-1384
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1384
             Project: Xerces2-J
          Issue Type: Bug
          Components: DOM (HTML)
    Affects Versions: 2.9.1
            Reporter: Johannes Koch


After parsing an XHTML document with the NekoHTML parser (nekohtml-1.9.12) in namespaceAware mode, a call to HTMLDocumentImpl.getDocumentElement() results in a DOMException

When the while loop is finished, Node html is still null, because none of the document's child nodes are an instance of HTMLHtmlElement. Then all the document's child nodes are appended to the newly created HTMLHtmlElementImpl. A DocumentType node cannot be appended to an Element. See method testParseXhtmlDoc1() in appended test case DOMParserTest.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerc...
For additional commands, e-mail: j-dev-help@xerc...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.