- From: Thomas Bouchet <thomas.bouchet@sourismaline.fr>
- Date: Fri, 04 Sep 2015 11:20:44 +0200
- To: Anna Marie Golden <amgolden@uw.edu>
- CC: www-validator@w3.org
- Message-ID: <55E9626C.3070203@sourismaline.fr>
I can agree with that, but the documentation is talking only about a starting script tag : https://html.spec.whatwg.org/multipage/scripting.html#restrictions-for-contents-of-script-elements No ? Am I misreading / misundestanding it ? Thomas, On 03/09/2015 20:12, Anna Marie Golden wrote: > 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 <mailto: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 354842 > University of Washington > / > /Seattle, WA 98195-4842 > > / > /Street Address: > / > /4545 Building > / > /4545 - 15th Avenue NE, Suite 100 > / > /Seattle, Washington 98105/ > > -- Thomas Bouchet Souris Maline Tel: +33 (0)6 63 54 27 78 http://sourismaline.fr/
Received on Friday, 4 September 2015 09:21:14 UTC