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

Re: Challenges on JavaScript Techniques

From: Lisa Seeman <lisa@ubaccess.com>
Date: Mon, 01 Aug 2005 10:32:21 +0200
Message-ID: <42EDDE15.6090707@ubaccess.com>
To: w3c-wai-gl@w3.org

I think this is why  we are adding roles

now we could let you say

<form action="somewhere.php" xhtml2:role = "wairoles:validate" 
onsumbit="return validate()">

That should make everyone happy



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

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

Received on Monday, 1 August 2005 07:33:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 16 January 2018 15:33:55 UTC