W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2002

Re: DOM2 HTMLButtonElement: missing blur/focus methods?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 20 Nov 2002 11:09:44 -0500
Message-Id: <200211201609.LAA08012@nerd-xing.mit.edu>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:56 GMT