<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6814</bug_id>
          
          <creation_ts>2009-04-15 14:42:56 +0000</creation_ts>
          <short_desc>return undefined for nonexistent keys rather than null</short_desc>
          <delta_ts>2010-05-06 08:42:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Web Storage (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anne">annevk</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>24737</commentid>
    <comment_count>0</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2009-04-15 14:42:56 +0000</bug_when>
    <thetext>Since two out of three implementations of localStorage were unable to read the specification properly we have the unique (harharhar) opportunity to make the specification more in line with how ECMAScript works.

I.e. return undefined for nonexistent storage keys rather than null.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24752</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2009-04-15 22:56:10 +0000</bug_when>
    <thetext>The spec already says that Storage.missing should return undefined (see WebIDL). Are you saying you want Storage.getItem(&apos;missing&apos;) to also return undefined?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24757</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2009-04-16 10:09:37 +0000</bug_when>
    <thetext>I would have much preferred that, yes. Seems too late now.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>