W3C home > Mailing lists > Public > public-webplatform@w3.org > November 2012

RE: URL structure sanity check

From: Michael Sierra <msierra@adobe.com>
Date: Thu, 15 Nov 2012 14:51:28 -0800
To: PhistucK <phistuck@gmail.com>
CC: "public-webplatform@w3.org" <public-webplatform@w3.org>
Message-ID: <B90C5071DCCF324FA41057D2F476FA524B1888C3@nambx05.corp.adobe.com>
Turns out there are quite a few collisions in these examples once you strip out the 'on' prefixes from the event names:


--Mike Sierra

From: PhistucK [phistuck@gmail.com]
Sent: Thursday, November 15, 2012 5:33 PM
To: Michael Sierra
Cc: public-webplatform@w3.org
Subject: Re: URL structure sanity check

In some cases (WebSocket, for example, if I am not mistaken), you cannot use addEventListener for listening to an event, like ws.onopen. Adding it as "open" might cause some confusion.
It might be an implementation issue, because I think WebSocket is specified to subclass EventTarget as well, which means addEventListener should apply to it, but in Chrome, as far as I remember, it does not work. I have not tried other browsers.
Anyway, in cases like these (assuming no browser implements addEventListener for that object), events should begin with the "on" prefix, I believe (but still have the regular Event template, I guess).

What does everyone think?

Also, does anyone have any information regarding other browsers (or current Chrome?) in this regard?


On Thu, Nov 15, 2012 at 11:18 PM, Michael Sierra <msierra@adobe.com<mailto:msierra@adobe.com>> wrote:
Re the recent conf-call clarifying the apis/ URL space, here are a few random APIs generated from some test W3C specs:


Of all the comments are marked "#",

* I think of "deviceorientation" as belonging under apis/, but it seems to simply modify the window object.  Can/should it be represented here?

* The File API defines a new URL scheme, and I wonder where that gets doc'ed

* I noticed one instance of a namespace collision, where an abort() method collides with an "abort" event.  In this URL list, I kept it as it appears in the spec, "onabort," but current practice in the wiki is to strip the "on" prefix, which would cause a problem.

--Mike Sierra
Received on Thursday, 15 November 2012 22:52:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:13:33 UTC