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

RE: DOM2 HTMLButtonElement: missing blur/focus methods?

From: Brad Pettit <bradp@microsoft.com>
Date: Wed, 20 Nov 2002 19:45:33 -0800
Message-ID: <3013537455C0D1459746B2AE2DF47AEA0521F3E6@svc-msg-01.northamerica.corp.microsoft.com>
To: "Torsten Scheck" <torsten.scheck@sot.de>, <www-dom@w3.org>

Is the issue that calling the button.focus() method does not result in the generation of a "focus" event on the button?

The HTML "focus" event is fired when the focus changes due to some user action.

There is also the DOMFocusIn DOM 2 UIEvent that is fired when any focusable element receives focus.

--Brad

-----Original Message-----
From: Torsten Scheck [mailto:torsten.scheck@sot.de]
Sent: Wednesday, November 20, 2002 6:16 AM
To: www-dom@w3.org
Subject: DOM2 HTMLButtonElement: missing blur/focus methods?






Dear W3C experts:

I'm just starting to dig in the W3C-recommendations,so I might miss
something very elementary, now. But I'm very confused by the following
opposition:

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.


Resources:


Document Object Model Events
  http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.html
-----------------------------------------------
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.
-----------------------------------------------


Document Object Model HTML
  http://www.w3.org/TR/2002/PR-DOM-Level-2-HTML-20021108/html.html
-----------------------------------------------
Interface HTMLButtonElement

    Push button. See the BUTTON element definition in HTML 4.01.


    IDL Definition

interface HTMLButtonElement : HTMLElement {
  readonly attribute HTMLFormElement form;
           attribute DOMString       accessKey;
           attribute boolean         disabled;
           attribute DOMString       name;
           attribute long            tabIndex;
  readonly attribute DOMString       type;
           attribute DOMString       value;
};
-----------------------------------------------
Received on Wednesday, 20 November 2002 22:46:05 GMT

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