W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: Problem with <textarea>

From: J. David Bryan <jdbryan@acm.org>
Date: Fri, 2 Mar 2001 04:00:41 -0500
Message-Id: <200103020900.f2290gn04885@mail.bcpl.net>
To: HTML Tidy List <html-tidy@w3.org>
On 1 Mar 2001, at 17:55, R. Scott Granneman wrote:

> After running tidy, I noticed that this code is being generated:
> 
> <textarea name="textfield" cols="50" rows="4">
> </textarea>
> 
> Because </textarea> is output on the next line, about 50 characters are
> being inserted between <textarea> & </textarea>.  [...]
> 
> Any way around this? Isn't this a bug...

It's a bug, but it would appear to be in your browser, not in HTML Tidy.  
See:

  http://www.w3.org/TR/html401/appendix/notes.html#h-B.3.1

...which states, in part:

 "SGML (see [ISO8879], section 7.6.1) specifies that a line break
  immediately following a start tag must be ignored, as must a line break
  immediately before an end tag. This applies to all HTML elements
  without exception." 

                                      -- Dave
Received on Friday, 2 March 2001 04:00:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT