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

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 UTC