W3C home > Mailing lists > Public > www-validator@w3.org > August 2009

Re: Text not allowed in element script in this context.

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 12 Aug 2009 17:46:00 +0300
Cc: www-validator@w3.org
Message-Id: <5F7D7FAB-0A6E-43D9-B778-41CCCC4D7363@iki.fi>
To: Scott Busche <swbusche@gmail.com>
On Aug 11, 2009, at 17:10, Scott Busche wrote:

> Error  Line 35, Column 50: Text not allowed in element script in  
> this context.
>
> 	<script src='menu.js'>//Loads the Expandable Menu</script>
>
>> From the documentation.
>
> <script src="cool-effects.js">
> // create new instances using:
> //    var e = new Effect();
> // start the effect using .play, stop using .stop:
> //    e.play();
> //    e.stop();
> </script>
>
>
> For all reasons and purposes, this should validate, but does not.
>
> It also errors out on /*Loads the Menu */

HTML5 allows this, but the HTML5 validator doesn't, yet. Sorry about  
that.

-- 
Henri Sivonen
hsivonen@iki.fi
http://hsivonen.iki.fi/
Received on Wednesday, 12 August 2009 14:56:45 GMT

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