Re: Marked addEventListenerNS and removeEventListenerNS At Risk

2009/9/19 Krzysztof Maczyński <1981km@gmail.com>:
> I'm strongly against removing namespace support from DOM Events. The use case for them is as valid as that for element types - to avoid clashes.

There is an important difference.

Elements and attributes use namespaces, but use a prefix mapping
mechanism so that you won't have to type the full namespace every
time. Events don't have that.

With Events you'd always be writing:

someEventFunction(..., "http://example.com/myNamespace", "myEvent", ...);

With the proposed changed you'd instead write:

someEventFunction(..., "http://example.com/myNamespace/myEvent", ...);

where 'someEventFunction' is initEvent, addEventListener,
removeEventListener etc.

So on the whole not that big of a difference.

/ Jonas

Received on Saturday, 19 September 2009 20:29:14 UTC