[whatwg] Suggestion: Event-source to be DOM based rather than an HTML element

Alexey Feldgendler alexey at feldgendler.ru
Tue Oct 24 04:36:57 PDT 2006


On Tue, 24 Oct 2006 17:59:21 +0700, Rohan Prabhu <rohan2kool at gmail.com> wrote:

> To keep the semantics in place, I'd recommend that that the event-source be
> rather specified as a JavaScript/DHTML object, just as the XMLHttpRequest
> object is. A major part of event-source seems to fulfill the the
> shortcomings of XMLHttpRequest object. In the same way the object
> 'event-source' can have following methods/properties:
>
> Property: src (same as for the HTML element)
> Method: connect (initiate the initial connection)
> Method: disconnect (disconnect the connection or abort)
> Property: onrecieve (function call. execute function when data is recieved)

I fully support you. I have long been wondering why is event-source a markup element rather than some abstract object with a contstuctor like XMLHttpRequest.


-- 
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com



More information about the whatwg mailing list