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

[VE][63] Character data is not allowed here extended error message text

From: David Dorward <david@dorward.me.uk>
Date: Mon, 09 Apr 2007 18:01:59 +0100
Message-ID: <461A7187.5050205@dorward.me.uk>
To: www-validator@w3.org

Currently, using the following code:

  ..." content="text/html; charset=iso-8859-1" />

In an HTML document triggers the "Character data now allowed here" error
(which is correct). Since this is a common cause of the error, might it
be worth changing the extended error message?

Currently it reads:

> You have used character data somewhere it is not permitted to appear.
> Mistakes that can cause this error include putting text directly in
> the body of the document without wrapping it in a container element
> (such as a <p>aragraph</p>) or forgetting to quote an attribute value
> (where characters such as "%" and "/" are common, but cannot appear
> without surrounding quotes).

I suggest adding something along the lines of:

'Using XHTML empty element syntax (e.g. <meta /> instead of <meta>) in
an HTML document is another common cause of this error. Remove the slash
character to resolve the issue, and see <a
href="http://www.cs.tut.fi/~jkorpela/html/empty.html">Empty elements in
SGML, HTML, XML, and XHTML</a> for a fuller explanation.'


-- 
David Dorward                               <http://dorward.me.uk/>
Received on Monday, 9 April 2007 17:02:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:24 GMT