W3C home > Mailing lists > Public > www-validator@w3.org > July 2013

Re: document type does not allow element "div" here, (I think falsly indicated for Transitional XHTML 4.01)

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Tue, 02 Jul 2013 11:43:13 +0300
Message-ID: <51D292A1.6000402@cs.tut.fi>
To: Tomer W <weinberg.tomer@gmail.com>
CC: www-validator@w3.org
2013-06-30 12:59, Tomer W wrote:

> the document is located at
> http://pm.megatec.co.il/PrimaveraContentPage.aspx
[...]
> <script type="text/javascript" language="javascript">
> //<![CDATA[

I don’t see //<![CDATA[ in the page source. Without <![CDATA[, any “<” 
in the content will be treated as part of markup by XHTML rules. This 
explains the error messages in the question.

Note that the XHTML 1.0 specification says: “An alternative is to use 
external script and style documents.”
http://www.w3.org/TR/xhtml1/#h-4.8

Note that there is no “XHTML 4.01”; the XMLized variant of HTML 4.01 is 
called “XHTML 1.0”, following the long tradition of confusing numbering 
of HTML versions. The page declares an XHTML 1.0 doctype, which is 
correct as such (though out of fashion, and you are actually using at 
least one HTML5 construct which is not valid in XHTML 1.0, the tag <meta 
charset="UTF-8" />.

Yucca
Received on Tuesday, 2 July 2013 08:43:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:08 UTC