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

JEditorPane regression: CAPTION tag for TABLE is rendering inside the table.

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_7
    • Verified

      This bug appeared in Kestrel Build M. Here is a sample HTML file to reproduce the problem.


      <html>
        <head>
          <title>Table0</title>
        </head>

        <body>
          <h2>Basic Table Tests</h2>

          <ol>
            <li>The background color of the table should be <b>LIGHT YELLOW</b></li>
            <li>The table width should take up 100% of this window</li>
            <li>The table header row should have a bolder font.</li>
          </ol>


          <TABLE BORDER="3" CELLPADDING="5" CELLSPACING="3" WIDTH="100%" BGCOLOR="#FFFFCC">
            <CAPTION ALIGN="BOTTOM">Table Title (This table title should be located at the bottom of the table)</CAPTION>
            <TR ALIGN="RIGHT" VALIGN="BOTTOM">
      <TH>
      <P ALIGN="RIGHT">Table Header (Aligned: RIGHT)
      </TH>
      <TH>
      <P ALIGN="LEFT">Table Header (Aligned: LEFT)
      </TH>
            </TR>
            <TR>
      <TD ALIGN="CENTER" VALIGN="TOP">
      <P ALIGN="CENTER">CENTER Aligned
      </TD>
      <TD NOWRAP>LEFT Aligned</TD>
            </TR>
          </TABLE>
          <p>

          <hr><br><br>

      <ol>
      <li>Use the following dark line, which should be 700 pixels wide, to verify that the table has a width of 700 pixels.</li>
      </ol>

      <p>
            <hr align="LEFT" width="700" NOSHADE>

            <p>
            <TABLE BORDER="1" WIDTH="700">
      <TR>
      <TD>a</TD>
      <TD>b</TD>
      <TD>c</TD>
      </TR>
      <TR>
      <TD>d</TD>
      <TD>e</TD>
      <TD>f</TD>
      </TR>
      <TR>
      <TD>g</TD>
      <TD>h</TD>
      <TD>i</TD>
      </TR>
            </TABLE>

            
        </body>
      </html>




      edmund.lou@eng 1999-10-28

            tprinzing Tim Prinzing (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: