Web storage remove method not working according to the spec - by Luis Miguel Abreu

Status : 

  External<br /><br />
		This item may be valid but belongs to an external system out of the direct control of this product team.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


ID 613497 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 10/14/2010 1:49:45 AM
Access Restriction Public

Description

If i'm not mistaken, IE has implemented (or tried to) the web storage spec since IE8 was released. Now, I've noticed that IE 9 throws an exception when I try to remove an entry that doesn't exist in the localStorage storage object:

window.localStorage.removeItem("data"); //no data entry-> throws exception

Now, I've re-read the spec:

http://dev.w3.org/html5/webstorage/#dom-storage-removeitem

which says:

The removeItem(key) method must cause the key/value pair with the given key to be removed from the list associated with the object, if it exists. If no item with that key exists, the method must do nothing.

So, I shouldn't be getting an exception, right? 
Sign in to post a comment.
Posted by Microsoft on 11/28/2011 at 8:48 AM
Thank you for your feedback. This issue is currently caused by issues external to Internet Explorer.

If you believe the problem is due to Internet Explorer, please file a new feedback with additional information.

Best regards,

The Internet Explorer Team