W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2006

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

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Tue, 24 Oct 2006 18:36:57 +0700
Message-ID: <op.thxbvvmw1h6og4@feldgendler.plesk.ru>
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
Received on Tuesday, 24 October 2006 04:36:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC