[drupal-devel] [bug] Make form_textarea() XHTML ready

Thox drupal-devel at drupal.org
Tue May 24 19:14:10 UTC 2005


Issue status update for http://drupal.org/node/23530

 Project:      Drupal
 Version:      4.6.0
 Component:    base system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Robin Monks
 Reported by:  Robin Monks
 Updated by:   Thox
 Status:       patch

XHTML 1.0 Strict: [1]


[!ELEMENT textarea (#PCDATA)]     [!-- multi-line text field --]
[!ATTLIST textarea
  %attrs;
  %focus;
  name        CDATA          #IMPLIED
/  rows        %Number;       *#REQUIRED*/
/  cols        %Number;       *#REQUIRED*/
  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).
[1] http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd




Thox



Previous comments:
------------------------------------------------------------------------

May 24, 2005 - 17:19 : Robin Monks

Attachment: http://drupal.org/files/issues/xhtml_form__textarea.patch (1.53 KB)

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







More information about the drupal-devel mailing list