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

JavaScript validation bug

From: James Crompton <j.crompton@aiic.net>
Date: Thu, 15 Jul 2004 14:19:13 +0200
Message-ID: <000701c46a67$8b180740$f7baf63e@schrottdose>
To: <www-validator@w3.org>

The validator objects to:

<script type="text/JavaScript">
    document.write('<ul><li><a
href="javascript:history.go(-1)">Back<\/a><\/li><\/ul>');
</script>

although all the slashes in the script are escaped as indicated at
http://www.htmlhelp.com/tools/validator/problems.html#script.

It starts by complaining that 'document type does not allow element "ul"
here', continues with three times 'character "<" is the first character
of a delimiter but occurred as data' (once for each occurrence after the
word "Back") and then winds up by complaining about three omitted end
tags for <a>, <li> and <ul>.
(http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jcrompton.de%2Flegal
ese.html)

Nothing in the FAQs addresses this.

James Crompton
Buchenallee 53
16341 Panketal

Tel.: +49 30 / 48 63 73 66
Fax: +49 30 / 48 63 73 67
jc@jcrompton.de
www.jcrompton.de





AIIC.MAIL - A service of the International Association of Conference Interpreters to Members
--- http://www.aiic.net
Received on Thursday, 15 July 2004 09:18:26 GMT

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