Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8288699

cleanup HTML tree in HtmlDocletWriter.commentTagsToContent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • tools
    • None

      HtmlDocletWriter.commentTagsToContent has a visitor that generates content trees that do not correctly support the charCount() method.

      This is because DocTree StartElement is translated as

      RawHtml: <name
      Text: any attributes
      RawHtml: >

      When counting characters, because the attributes are modeled with a Text node, they are incorrectly included in the count.

      It would be better to include all the content in a single well-structured node.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: