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

Re: [webstorage-test] Status of WebStorage tests by Microsoft, Opera and Ms2ger

From: Ms2ger <ms2ger@gmail.com>
Date: Tue, 20 Nov 2012 10:36:41 +0100
Message-ID: <50AB4F29.7060208@gmail.com>
To: public-webapps-testsuite@w3.org
On 11/20/2012 06:03 AM, 조해용 wrote:
> Hi,
> In StorageEvent key, oldValue, newValue, url are all DOMString type.
> In original file key, oldValue, newValue are compared by null, but url is compared by String 'null'. No consistency...
> Comparison by String 'null' maybe incorrect. Comparison by null is correct.
> I send to you modified file.

You are mistaken; url is a DOMString, while key, oldValue and newValue 
are nullable DOMStrings. See the IDL from the spec and note the question 
marks:

[Constructor(DOMString type, optional StorageEventInit eventInitDict)]
interface StorageEvent : Event {
   readonly attribute DOMString? key;
   readonly attribute DOMString? oldValue;
   readonly attribute DOMString? newValue;
   readonly attribute DOMString url;
   readonly attribute Storage? storageArea;
};

dictionary StorageEventInit : EventInit {
   DOMString? key;
   DOMString? oldValue;
   DOMString? newValue;
   DOMString url;
   Storage? storageArea;
};

HTH
Ms2ger
Received on Tuesday, 20 November 2012 09:37:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 November 2012 09:37:19 GMT