This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The spec hosted on /TR doesn't have a <head> or <body> element. This makes parsing it (e.g. for testing purposes) a lot more complicated than other specs.
It's missing tags, not elements. Please use a HTML parser to parse HTML, then you won't have silly issues like this.
You're right that it's not missing the <BODY> element, but it is missing the <HEAD> element in the DOM generated by jsdom (v. 0.10.1). The <BODY> element also curiously includes the <HTML> element. See the DOM generated by jsdom here: https://gist.github.com/tobie/7a9eb81e3c195ab134f8 I'm not sure if that is a bug with the parser, the parsing algorithm, ot the Webstorage spec.
It's a bug in the parser only.
Use http://whatwg.org/html#storage