W3C home > Mailing lists > Public > w3c-wai-ua@w3.org > January to March 2001

Re: Making all interactive elements visible

From: Ian Jacobs <ij@w3.org>
Date: Thu, 08 Mar 2001 12:32:01 -0500
Message-ID: <3AA7C211.A1D2BC@w3.org>
To: Aaron Leventhal <aaronl@netscape.com>
CC: w3c-wai-ua@w3.org
Aaron Leventhal wrote:
> 
> The only problem I have with
> 
>    A[onmouseover] { background: yellow; color: black }
> is that I don't think it supports mouseovers that come from script, such as:
> 
> function addMouseOvers()
> {
> var nodeList = document.getElementsByTagName('TD');
> var endList=nodeList.length;
> for (var count =0; count < endList; count++) {
>   node=nodeList[count];
>   // Using setAttribute instead of AddEventListener gets around bug where
>   // the mouseover in the tablecell is ignored when you're over the text inside the cell
>   node.addEventListener('mouseover',showTheSquare, false );
>   }
> }
> 
> I think this will be quite common.

Per our discussion with the DOM WG, the DOM 2 event
handler registration mechanism [1] doesn't allow programs
to list the available handlers. So unless UA's keep track
of this information themselves, I don't know how to help
until the WG gives us this information (which we requested
at the meeting).

 - Ian

[1]
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-registration

-- 
Ian Jacobs (jacobs@w3.org)   http://www.w3.org/People/Jacobs
Tel:                         +1 831 457-2842
Cell:                        +1 917 450-8783
Received on Thursday, 8 March 2001 12:32:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:29 UTC