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

cleanup HTML tree in HtmlDocletWriter.commentTagsToContent

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: