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

Incorrect HTML structure in annotation pages

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 18
    • tools

    Description

      It looks like there is a missing heading in the details section when an annotation has both required and optional elements.

      In the following text, see that there are two <section> elements. The first has <h3> and <h4>. The second just has <h4>, missing <h3>

      <!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
      <section role="region">
      <ul class="blockList">
      <li class="blockList"><a id="annotation.type.element.detail">
      <!-- -->
      </a>
      <h3>Element Detail</h3>
      <a id="a1()">
      <!-- -->
      </a>
      <ul class="blockListLast">
      <li class="blockList">
      <h4>a1</h4>
      <pre>int&nbsp;a1</pre>
      <div class="block">This is required element A1. This is more text for A1.</div>
      <dl>
      <dt><span class="returnLabel">Returns:</span></dt>
      <dd>dummy.</dd>
      </dl>
      </li>
      </ul>
      </li>
      </ul>
      </section>
      <!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== -->
      <section role="region">
      <ul class="blockList">
      <li class="blockList"><a id="a2()">
      <!-- -->
      </a>
      <ul class="blockListLast">
      <li class="blockList">
      <h4>a2</h4>
      <pre>int&nbsp;a2</pre>
      <div class="block">This is optional element A2. This is more text for A2.</div>
      <dl>
      <dt><span class="returnLabel">Returns:</span></dt>
      <dd>dummy.</dd>
      </dl>
      <dl>
      <dt>Default:</dt>
      <dd>0</dd>
      </dl>
      </li>
      </ul>
      </li>
      </ul>
      </section>

      Attachments

        Issue Links

          Activity

            People

              hannesw Hannes Wallnoefer
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: