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

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

From: David Dorward <david@dorward.me.uk>
Date: Mon, 16 Apr 2007 19:18:52 +0100
Message-ID: <4623BE0C.4010308@dorward.me.uk>
To: www-validator@w3.org

olivier Thereaux wrote:
> Would you like to give a go at drafting a merged version, or should I?

How does this look?

<div class="ve mid-63">
<p>You have used character data somewhere it is not permitted to appear.
   Mistakes that can cause this error include:
</p>
<ul>
  <li>putting text directly in the body of the document without wrapping
      it in a container element (such as a &lt;p&gt;aragraph&lt;/p&gt;),
      or
  </li>
  <li>forgetting to quote an attribute value (where characters such as
      "%" and "/" are common, but cannot appear without surrounding
       quotes), or
  </li>
  <li>using XHTML-style self-closing tags (such as &lt;meta ... /&gt;)
      in HTML 4.01 or earlier. To fix, remove the extra slash ('/')
      character. For more information about the reasons for this, see
      <a href="http://www.cs.tut.fi/~jkorpela/html/empty.html">Empty
      elements in SGML, HTML, XML, and XHTML</a>.
  </li>
</ul>
</div>

I think we should keep an eye on this one and the work being produced by
the new HTML working group. From the sounds of it, their new non-SGML,
non-XML, non-"reuse any non-tag soup parser" plan will mean that this
won't be an error in the text/html version of their new markup language,
but that might change. For that matter, it might be worth thinking about
the future of the Markup Validator with respect to their plans.

-- 
David Dorward                               <http://dorward.me.uk/>
Received on Monday, 16 April 2007 18:19:45 GMT

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