Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2015

Doctype added twice because root element (html) is inlined

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2
    • None
    • Blocks: HTML
    • None
    • Patch available

    Description

      When using the CleanupTransformer without any inline elements configured, it will also inline the root element (typically html). By doing this, the method ignorableWhitespace() is called before startElement() on the contentHandler. When using Xalan 2.7.0, this leads to the doctype added twice, which seems to be a bug (I reported this under http://issues.apache.org/jira/browse/XALANJ-2369).

      To fix that problem, this patch ensures that ignorableWhitespace() will not get called before the root element of the document.

      Attachments

        Activity

          People

            Unassigned Unassigned
            alexander.klimetschek Alexander Klimetschek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: