This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18737 - The return value of getItem() should be DOMString? not DOMString, shouldn't it? Like the key() method, it can return null.
Summary: The return value of getItem() should be DOMString? not DOMString, shouldn't i...
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-29 19:49 UTC by contributor
Modified: 2012-11-01 23:09 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2012-08-29 19:49:34 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/webstorage.html
Multipage: http://www.whatwg.org/C#the-storage-interface
Complete: http://www.whatwg.org/c#the-storage-interface

Comment:
The return value of getItem() should be DOMString? not DOMString, shouldn't
it?  Like the key() method, it can return null.

Posted from: 66.114.38.251
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Firefox/17.0
Comment 1 contributor 2012-11-01 23:09:01 UTC
Checked in as WHATWG revision r7499.
Check-in comment: Storage.getItem() can return null.
http://html5.org/tools/web-apps-tracker?from=7498&to=7499