JavaScript validation bug

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 UTC