Re: Comments on DOM 3 LS

Anjana Manian wrote:
> 
> Comments on DOM Level 3 Load and Save specification based on the June 19 version of the spec. 
> 
[...]
> - "Asynchronous DOMParser objects are expected to also implement the events::EventTarget interface so that event listener can be registered on asynchronous DOMParser objects": 
> 
> It will be much cleaner and clearer if DOMParser extends events:EventTarget interface instead of expecting the implementation to extend and support EventTarget. It could be argued that synchronous DOMParser is not required to implement the events::EventTarget and so it should not be a forced to implement one. In that case, a possible solution is to have a generic DOMParser interface and two other interfaces namely DOMParserSynchronous and DOMParserAsynchronous which extends DOMParser. Then the DOMParserAsynchronous could be made to implement the events::EventTarget interface. 

The DOM WG discussed this and given that the spec currently follows 
what's done in every other case where DOM objects are expected to be 
event targets, it was decided to leave the spec unchanged.

-- 
jst

Received on Tuesday, 9 September 2003 18:53:00 UTC