This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24844 - Spec is missing <body> and <head> tags
Summary: Spec is missing <body> and <head> tags
Status: RESOLVED WORKSFORME
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: Web Storage (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-27 21:27 UTC by Tobie Langel
Modified: 2014-03-12 18:32 UTC (History)
4 users (show)

See Also:


Attachments

Description Tobie Langel 2014-02-27 21:27:19 UTC
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.
Comment 1 Ms2ger 2014-02-27 21:33:09 UTC
It's missing tags, not elements. Please use a HTML parser to parse HTML, then you won't have silly issues like this.
Comment 2 Tobie Langel 2014-02-28 00:12:09 UTC
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.
Comment 3 Ms2ger 2014-02-28 07:41:45 UTC
It's a bug in the parser only.
Comment 4 Ian 'Hixie' Hickson 2014-03-12 18:32:56 UTC
Use http://whatwg.org/html#storage