W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > July to September 2005

Re: Challenges on JavaScript Techniques

From: Jim Ley <jim.ley@gmail.com>
Date: Mon, 11 Jul 2005 19:31:41 +0100
Message-ID: <851c8d31050711113128a79db6@mail.gmail.com>
To: w3c-wai-gl@w3.org

On 7/11/05, Peter-Paul Koch <pp.koch@gmail.com> wrote:
> 
> Separation of behaviour and structure means
> 
> WRONG: <form action="somewhere.php" onsumbit="return validate()">
> 
> RIGHT: <form action="somewhere.php" id="validate">
> 
> window.onload = function () {
>   document.getElementById('validate').onsubmit = validate;
> 

No, This is not right, firstly it will error in many browsers, errors
are not accessible.

Secondly, it will mean that the documents behaviour will differ
between different loads of the document, inconsistency is not
accessible.

so whilst talking about seperation may be useful, changing the
behaviour of a page onload, or throwing script errors is not.

Jim.
Received on Monday, 11 July 2005 18:31:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:39 GMT