This patch uses CSS formatting to format textboxes (as per XHTML standards) and removes the wrap artifact (which was no longer needed as of NS2.0 and IE4.0).
This patch uses "em" to format by character, this is backwards compatible with previous calls (give or take a few pixels).

Robin

Comments

Thox’s picture

XHTML 1.0 Strict:

[!ELEMENT textarea (#PCDATA)]     [!-- multi-line text field --]
[!ATTLIST textarea
  %attrs;
  %focus;
  name        CDATA          #IMPLIED
<em>  rows        %Number;       <strong>#REQUIRED</strong></em>
<em>  cols        %Number;       <strong>#REQUIRED</strong></em>
  disabled    (disabled)     #IMPLIED
  readonly    (readonly)     #IMPLIED
  onselect    %Script;       #IMPLIED
  onchange    %Script;       #IMPLIED
  ]

Removing the rows and cols attributes is a terrible thing to do! That's making the validation problem worse - both are required.

The only patch needed for textareas is to remove the wrap attribute - which is invalid (and isn't neccessary since IE 4).

robin monks’s picture

StatusFileSize
new1.06 KB

Oh my, anyways:

Robin

dries’s picture

Committed to HEAD. Thanks.

Anonymous’s picture