W3C home > Mailing lists > Public > www-html@w3.org > September 2001

onLoad

From: Brian Fletcher <bf001b4869@blueyonder.co.uk>
Date: Wed, 19 Sep 2001 20:58:22 -0400 (EDT)
Message-ID: <001901c1416e$9ea7f560$2aeb30d5@pbncomputer>
To: <www-html@w3.org>
I recently converted a page to xhtml, I inserted the xhtml transitional DTD,
sent it to the validator and it failed, Why? because I had a javascript
event handler ( onLoad) in the body tag.
Now I asked around and was told that it is because xhtml is case sensitive
the onLoad event handler should be onload, i.e. lowercase l.
I argued this isn't correct because the event handler is a javascript event
handler, and it should be formatted with the uppercase L because js is case
sensitive as well.
So we now got the HTML coders who say the tag is theirs and should be their
way, and the scripters who say the opposite.
Does anyone know who is correct here?
I have read back and according to Netscape's documentation, it should be
onLoad, but in HTML 4.01 it is onload.
I know it sounds trivial, but try telling that to the W3C XHTML validator
Received on Monday, 24 September 2001 05:28:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:49 GMT