Re: Issue in validator ?

I think the problem is the closing script tag that comes before you end the
comment.  With that tag, you essentially ended the script tag before you
closed your comment.

--Anna Marie

On Mon, Aug 31, 2015 at 5:39 AM, Thomas Bouchet <
thomas.bouchet@sourismaline.fr> wrote:

> According to validator, this document has a problem :
>
> <!doctype html>
> <html>
> <head><title>title</title></head>
> <body>
> <script type="text/javascript">
> var a = 1;
> <!--comment in script with false </script> -->
> var b = 2;
> </script>
> </body>
> </html>
>
> Error being :
> "The text content of element script was not in the required format:
> Content contains the character sequence <!-- without a later occurrence
> of the character sequence -->."
>
>
> According to your documentation
> (
> https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements
> )
> :
>
> inner = < any string that doesn't contain a substring that matches
> not-in-inner >
>
> not-in-inner = comment-close / script-open
>
> So, inside a comment inside a script tag I should not "open" a new
> script tag. But nothing about closing one... Being into the comment tag,
> parser should try to find a opening tag or a comment closing tag.
>
>
> Where am I wrong ? ;o)
>
> Regards,
>
>
> --
> Thomas Bouchet
> Souris Maline
> Tel: +33 (0)6 63 54 27 78
> http://sourismaline.fr/
>
>


-- 

*Anna Marie Golden, MHCID*


*​Master of Human-Computer Interaction + Design, Class of 2014​*

*IT Accessibility Specialist*


*Access Technology Services, UW-IT(206) 221-4164*




*Mailing Address:Box 354842University of Washington*


*Seattle, WA 98195-4842*

*Street Address:*

*4545 Building*

*4545 - 15th Avenue NE, Suite 100*
*Seattle, Washington 98105*

Received on Thursday, 3 September 2015 18:17:32 UTC