- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Wed, 20 Nov 2002 11:09:44 -0500
- To: Torsten Scheck <torsten.scheck@sot.de>
- cc: www-dom@w3.org
> In the DOM2-Events-recommendation "focus" is a valid method for the > object "button, but in the DOM2-HTML-recommendation it's not mentioned > (just like in the DOM1-HTML-recommendation). > > Could someone explain this? Thank you. > > ----------------------------------------------- > focus > The focus event occurs when an element receives focus either via a > pointing device or by tabbing navigation. This event is valid for the > following elements: LABEL, INPUT, SELECT, TEXTAREA, and BUTTON. > ----------------------------------------------- This doesn't say that <button> has a "focus" method. It says that an event of type "focus" is dispatched to the button, and if the button has an event listener for this event type (created using addEventListener) the event listener will be triggered. Boris -- It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets. -- Voltaire
Received on Wednesday, 20 November 2002 11:22:18 UTC