Event-propagation properties

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?


Brad Pettit
Microsoft Corp.

Received on Monday, 8 April 2002 21:03:58 UTC