- From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
- Date: Tue, 20 Sep 2011 22:46:29 +0200
- To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
- Cc: Etienne Miret <etienne.miret@ens-lyon.org>, msanderz@att.net, www-validator@w3.org
Jukka K. Korpela, Tue, 20 Sep 2011 22:43:36 +0300: > 20.9.2011 21:17, Etienne Miret wrote: > Only if the document is an XHTML document. If you take the script > code that was posted, wrap it inside a <script> element and put that > inside a minimal HTML 4.01 document, then you’ll get the error > message described in the original posting. And this can be fixed the > way I described. Rule described here: http://www.w3.org/TR/html4/appendix/notes#h-B.3.2.1 ]] the data [ snip ] ends at the first ETAGO ("</") delimiter followed by a name start character ([a-zA-Z]); [[ So if the first letter after the '</' is another than [a-zA-Z], then it is safe to include '</' in the code. E.g. this works: <script type='text/html'></ <script> but this not: <script type='text/html'></A<script> I did not know that </ was OK to use when not followed by the Aa-Zz range. Thanks for that. -- Leif H Silli
Received on Tuesday, 20 September 2011 20:47:03 UTC