- From: Ms2ger <ms2ger@gmail.com>
- Date: Tue, 20 Nov 2012 10:36:41 +0100
- 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 UTC