W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2002

Re: Event-propagation properties

From: Philippe Le Hegaret <plh@w3.org>
Date: 31 May 2002 14:36:12 -0400
To: Brad Pettit <bradp@microsoft.com>
Cc: www-dom@w3.org
Message-Id: <1022870173.23992.66.camel@jfouffa>

On Mon, 2002-04-08 at 21:03, Brad Pettit wrote:
> Predefined events such as the UIEvent DOMFocusIn have intrinsic bubbling and cancelable properties.
> 
> Using the UIEvent for the purpose of an example, if the DOM method initUIEvent is used to initialize an event, and the bubbling and cancelable parameters differ from the spec, do the specified parameters supercede the intrinsic properties defined by the spec?
> 
> For example:
> 
> var myEvent = document.createEvent("UIEvents")
> myEvent.initUIEvent("DOMFocusIn", false, false, window, 0)
> 
> Since a DOMFocusIn event is both bubblable and cancelable by definition, do the parameters passed to initUIEvent override that?

The short answer is yes, they do override the intrinsic behaviors.

Philippe
Received on Friday, 31 May 2002 14:36:57 GMT

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