title: catch QUOTA_EXCEEDED_ERR on localStorage
body: <p>I'm using html5's localStorage API.</p>
  
  <p>I want to catch the <code>QUOTA_EXCEEDED_ERR</code> so I can show a message to the user like "Memory is full. Cannot save. Maybe delete a few items?"</p>
  
  <p>The code that I will use is like</p>
  
  <pre><code>function save() {
      try {
          localStorage.setItem(key, name);
      } catch (e) {
          if (e.name === 'QUOTA_EXCEEDED_ERR') {
              alert("Memory is full. Cannot save. Maybe delete a few items?");
          } else {
              alert("Something went wrong? Try again later?")
          }
      }
  }
  </code></pre>
  
  <p>I want to ask you, is this ok? Will this work fine to all browsers? Will work fine or break, anyways?</p>
  
  <p>Of course I am testing it too, but I thought I should ask anyways, because maybe I am missing something. </p>