[e] (0) Make document.readyState explicitly an enum, not that that has any real effect.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20013
Affected topics: DOM APIs

git-svn-id: http://svn.whatwg.org/webapps@7781 340c8d12-0b0e-0410-8428-c7bf67bfef74
[giow] (2) Strip a leading BOM from scripts in workers, if any. Also, use more of the encoding spec.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17839
Affected topics: DOM APIs, HTML, HTML Syntax and Parsing, Offline Web Applications, Workers

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