Yet another why we need the Web APIs tag: Web Storage is versioned separately from JavaScript and wasn't even formally standardized until HTML5.
localStorage
was introduced in Firefox in version 3.5, which corresponds roughly with JS 1.8.1, which itself corresponds very roughly with ES 5.1.
- It was also available in IE8, which still used JScript, at a version roughly equivalent to ES 3.
So what version of JavaScript should the Web Storage topic be set to?
Currently it's set as "All Versions", but it was obviously not available back in version 1.
Unfortunately, the web-storage tag only has 171 questions, and the sessionstorage tag (yay for consistent naming) has even fewer at 96. local-storage is the winner with a whopping 4317 questions, but only defines one aspect of the Web Storage API... Argh.