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

I saw IDL from the spec and understood.
But now key is also a DOMString in Latest Published Version of WebStorage. (http://www.w3.org/TR/webstorage/)
In Latest Editor's Draft of WebStorage, key is nullable DOMString. (http://dev.w3.org/html5/webstorage/)
That is, in Latest Published Version of WebStorage, no question mark.

[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;
};

So I send to you modified file.

Thanks
Hae yong,cho

-----Original Message-----
From: Ms2ger [mailto:ms2ger@gmail.com] 
Sent: Tuesday, November 20, 2012 6:37 PM
To: public-webapps-testsuite@w3.org
Subject: Re: [webstorage-test] Status of WebStorage tests by Microsoft, Opera and Ms2ger

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 Wednesday, 21 November 2012 02:52:58 UTC