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

JEditorPane: COLS tag in TEXTAREA does not work.

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6
    • Verified

      Using COLS tag in <TEXTAREA> does not produce expected results. The text area is always rendered as the width of the window in JEditorPane.

      Here is a sample HTML file:


      <!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 bgcolor="white" >

      <h1>Tests Form Element Textarea Attribute</h1>
      <h2>Definition</h2><em>TEXTAREA </em>multi-line text fields
       
      <br>TEXTAREA elements require start and end tags. The content of the element is
      restricted to text and character entities. It is used to initialize the text
      that is shown when the document is first loaded.

      <br>It is recommended that user agents canonicalize line endings to CR, LF
      (ASCII decimal 13, 10) when submitting the field's contents. The character
      set for submitted data should be ISO Latin-1, unless the server has
      previously indicated that it can support alternative character sets.

      <hr><h2>Expected Results</h2>
      The Following Text Areas Contain Text Described by Default.<br>
      Users Can Add Text to Both Text Areas Below.<br>
      Selecting Submit Will Submit The Query and Return Correct Results<br>
      No Html Errors are Found<br>
      Selecting Clear Form Should Reset the Textareas Contents to The Default
      <p>This is an example of a form with text areas. The first text area
      has no default text, the second has some default text.

      <FORM METHOD="POST" ACTION="http://hoohoo.ncsa.uiuc.edu/htbin-post/post-query">

      <H2>Text Area Number One Should Contain No Text</H2>


      <p><TEXTAREA NAME="Contents of Text Area One" ROWS=7 COLS=20>

      </TEXTAREA>

      <h2>Text Area Number Two </h2>
      Contains Text Hello I Love You Won't You Tell Me your Name

      <TEXTAREA NAME="Contents Of Text Area Two" ROWS=4 COLS=40>
      Hello I Love You Wont You Tell Me Your Name????
      </TEXTAREA> <P>
      To submit the form, press this button: <INPUT TYPE="submit"
      VALUE="Submit Form">.<p>


      To clear the form, press this button:
      <INPUT TYPE="reset" VALUE="Clear Form">

      </FORM>



      </BODY>
      </HTML>


      edmund.lou@eng 1999-10-19

            svioletsunw Scott Violet (Inactive)
            elousunw Edmund Lou (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: