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

JEditorPane: ALIGN attribute for TD tag in TABLE does not work.

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.6
    • Verified

      The ALIGN attribute is ignored. Here is a sample HTML file to demonstrate it:


      <!DOCTYPE HTML PUBLIC "-//HotJava QA//DTD HTML 3.2//EN">
      <HTML>
      <HEAD>
      <TITLE>Testing HotJava based on the 3.2 html spec</TITLE>
      </HEAD>
      <BODY>

      <h1>Tests Table Cell Align Attribute</h1>
      <table border=1 width=80%>
      <caption>This Table Tests Cell Align</caption>
      <tr><td align=left>first cell<br>align is left<td align = center>second cell<br>align is center<td align = right>third cell<br>align is right
      </table>

      <h1>Tests Cell Align Override of Table Row Align</h1>
      <table border=1 width=80%>
      <caption>
      This Table Tests Cell Align Table Row is set To Align Right</caption>
      <tr align=right><td>first cell<br> no align is set on cell<td>second cell<br>no align is set on cell<td align>third cell<br>no align is set on cell
      <tr align=right><td align=left>first cell<br>align is left<td align = center>second cell<br>align is center<td align = right>third cell<br>align is right
      </table>


      </BODY>
      </HTML>


      edmund.lou@eng 1999-10-19

            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: