Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-699

Xhtml5Parser may emit sectionX() without sectionX_() when using both <hX> and <section>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M5
    • 2.0.0, 2.0.0-M9
    • Core
    • None

    Description

      Due to the logic in https://github.com/apache/maven-doxia/blob/37173794270ee68894aac0e252dcb87545770952/doxia-core/src/main/java/org/apache/maven/doxia/parser/Xhtml5BaseParser.java#L631 there may calls of Sink.sectionX() without the according call of Sink.sectionX_().

      The attached XHTML5 being parsed and then converted back through the Sink to XHTML5 is invalid (lacks one closing section tag).

      Attachments

        1. test.xhtml5
          12 kB
          Konrad Windszus

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: