[e] (0) Make use of the DOM spec's 'node document' concept. I sure would appreciate careful review of this diff, since it is quite likely that I made some mistakes.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26310
Affected topics: CSS, DOM APIs, HTML, HTML Syntax and Parsing, Offline Web Applications, Rendering, Security, Video Text Tracks, Video and Audio, Workers

git-svn-id: http://svn.whatwg.org/webapps@8742 340c8d12-0b0e-0410-8428-c7bf67bfef74