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

Re: problem validation

From: David Dorward <david@dorward.me.uk>
Date: Tue, 31 Jul 2007 13:35:44 +0100
Message-Id: <B0770304-3E9A-47C3-A85C-3AFC5ABDADB0@dorward.me.uk>
Cc: "www-validator@w3.org" <www-validator@w3.org>
To: mihai puscasu <herodesh@gmail.com>


On 31 Jul 2007, at 10:04, mihai puscasu wrote:
> <script type="text/javascript">
>         for (i=3; i<= <?=$_SESSION['posturi']['nr_raspunsuri']; ?>;  
> i++)
>
>  Line 51, Column 16: XML Parsing Error: StartTag: invalid element  
> name. for (i=3; i<=nr; i++)
>

> i think you should do something with scripts between <script  
> type="text/javascript">
> this is an annoying error which is not an error!

It is a real error. See http://www.w3.org/TR/xhtml1/#h-4.8 and http:// 
www.webdevout.net/articles/beware-of-xhtml

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/
Received on Tuesday, 31 July 2007 12:36:21 GMT

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