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

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