W3C home > Mailing lists > Public > www-html@w3.org > November 1999

textarea example honours newlines, but section 9.1 says not

From: Dave J Woolley <DJW@bts.co.uk>
Date: Tue, 23 Nov 1999 14:16:52 -0000
Message-ID: <81E4A2BC03CED111845100104B62AFB53F3E76@stagecoach.bts.co.uk>
To: "'www-html@w3.org'" <www-html@w3.org>
Cc: Martin Rogers <mhr@bts.co.uk>
Section 9.1 says:
For all HTML elements except PRE <text.html>, sequences of white space
separate "words" (we use the term "word" here to mean "sequences of
non-white space characters"). When formatting text, user agents should
identify these words and lay them out according to the conventions of the
particular written language (script) and target medium.

But the example for textarea says that newlines are significant for
that element..

This example creates a TEXTAREA <forms.html> control that is 20
 rows by 80 columns and contains two lines of text initially. The
 TEXTAREA <forms.html> is followed by submit and reset buttons.
<FORM action="http://somesite.com/prog/text-read" method="post">
   <P>
   <TEXTAREA name="thetext" rows="20" cols="80">
   First line of initial text.
   Second line of initial text.
   </TEXTAREA>
   <INPUT type="submit" value="Send"><INPUT type="reset">
   </P>
</FORM>

Note the "contains two lines".
Received on Tuesday, 23 November 1999 09:19:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT