W3C home > Mailing lists > Public > www-validator@w3.org > June 2001

Validator complains about onclick in the <area> tag--why?

From: Peter K. Sheerin <pete@petesguide.com>
Date: Fri, 8 Jun 2001 15:02:51 -0700
Message-ID: <002401c0f066$c37662e0$9865fea9@cadencesheerin>
To: <www-validator@w3.org>
I've just recently neared the end of a marathon effort to redesign our site to a) use CSS instead of tables b) to validate against HTML 4.01 Transitional. I completed the later task, and then figured it would be worth the effort to move up to XHTML Transitional

It took me about a half hour to bring the page in question into compliance with the exception of two hyperlinks that use some javascript in an onclick attribute, and the validator spit both of these out.

The attribute is valid in HTML 4.01, and I can find no reference to it being removed from the XHTML spec, so why is this failing?

Is it just an oversight in the DTD, or does XHTML not allow this?
Received on Friday, 8 June 2001 18:03:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:30 UTC