W3C home > Mailing lists > Public > www-validator@w3.org > September 2007

Re: Feedback on WWW Validator

From: David Dorward <david@dorward.me.uk>
Date: Mon, 10 Sep 2007 09:20:59 +0100
Message-Id: <4179C281-AD59-47D9-B06E-2FFA48B3069D@dorward.me.uk>
Cc: <www-validator@w3.org>
To: "Dan Short" <danshort@gte.net>

On 9 Sep 2007, at 01:39, Dan Short wrote:
> I have a form that is used to submit text to a database using PHP  
> and Mysql. There is a textarea in the form, which allows me to  
> input snippets of HTML for later retrieval by the database. The  
> Validator failed XHTML validation on the page containing my  
> database form because there was a "<br />" inside the textarea.  
> This formatting using the "<br />" is required for retrieving  
> poetry from the database.
> The Validator should allow any type of text, including HTML tags,  
> between <textarea> and </textarea> on a form.

No, it shouldn't, since XHTML doesn't allow that. If you want  a '<'  
character as text, then you must represent it as &lt;.

David Dorward
Received on Monday, 10 September 2007 08:21:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:53 UTC