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

doclet creates double-escaped entities

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: tools
    • Labels:
      None

      Description

      For JDK 9, see any <module>-frame.html file.

      Look at the following extract:

      <h1 title="Java SE 10 &amp;amp; JDK 10 DRAFT 10-internal+0-adhoc.jjg.jdk10.closed" class="bar"><div style="margin-top: 9px;"><strong>Java SE 10 &amp; JDK 10</strong> <br><strong>DRAFT 10-internal+0-adhoc.jjg.jdk10.closed</strong></div></h1>

      Notice the &amp;amp; in the value of the title attribute. Either the title string should be required to be a "plain text" string, and checked to be such, or else it should permit HTML and not be further escaped.

      Also note that <div> inside <h1> is illegal, so if we're going to allow HTML, we should ensure it is restricted to flow content.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: