[Webkit-unassigned] [Bug 28112] New: localStorage.key() does not return null for indicies >= localStorage.length

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 8 13:03:52 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=28112

           Summary: localStorage.key() does not return null for indicies
                    >= localStorage.length
           Product: WebKit
           Version: 420+
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: brett at python.org


The W3C Web Storage spec says that for localStorage.key()
(http://dev.w3.org/html5/webstorage/#dom-storage-key) null should be returned
when the value passed in is equal to or greater than what localStorage.length
returns (and the same obviously goes for sessionStorage). But if you do
``localStorage.key(localStorage.length)`` in Safari 4.0.2, instead of getting
null you get ``Error: INDEX_SIZE_ERR: DOM Exception 1``.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list