W3C home > Mailing lists > Public > public-web-notification@w3.org > March 2012

Re: Feedback from Safari on Web Notifications

From: Jon Lee <jonlee@apple.com>
Date: Mon, 12 Mar 2012 17:32:18 -0700
Cc: Ojan Vafai <ojan@chromium.org>, John Gregg <johnnyg@google.com>, Maciej Stachowiak <mjs@apple.com>, public-web-notification@w3.org, Ted O'Connor <eoconnor@apple.com>
Message-id: <E5317C2D-9666-4B35-B0BD-5B39FC9E30D6@apple.com>
To: James Graham <jgraham@opera.com>
So by having the event listeners as part of the options dictionary, would it make sense, then, to remove the assignable attributes? Therefore, the only way to modify the listeners is through add/removeEventListener()?

Jon

On Mar 7, 2012, at 2:53 PM, James Graham <jgraham@opera.com> wrote:

> 
> 
> On Wed, 7 Mar 2012, Ojan Vafai wrote:
> 
>> On Wed, Mar 7, 2012 at 10:15 AM, John Gregg <johnnyg@google.com> wrote:
>>      On Tue, Mar 6, 2012 at 4:48 PM, Maciej Stachowiak <mjs@apple.com> wrote:
>>            4. Improve show() behavior.
>> We think show() can only be used once per notification. Subsequent invocations should call onerror().
>> Agreed that show() is only meant to be used once.  Ian Hickson has made the related suggestion that show() should not exist as a method, but rather that show() be implicit in the constructor.
>>  I don't prefer that because it requires that all possible optional parameters of the notification be provided in the constructor, which makes the interface harder to use.  I prefer using
>> onerror to deal with multiple attempts to show, but this should be resolved by the WG.
>> I second Ian's suggestion . This is the direction we're taking many other things in the platform and it's been a clear improvement. For example, we're removing all the init*Event methods for custom
>> events and just using the constructors. The way we've been dealing with extra arguments is by passing in a dictionary for the optional arguments. So the API would be:
> 
> Yes, I think the constructor approach is nicer and more in line with contemporary platform features.
Received on Tuesday, 13 March 2012 00:31:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 17 December 2012 14:48:28 GMT