WebKit does not conform to the section 10.2.8.4. of HTML5: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#scripts-that-modify-the-page-as-it-is-being-parsed
Created attachment 73582 [details] fixes the bug
Comment on attachment 73582 [details] fixes the bug thanks!
Committed r71797: <http://trac.webkit.org/changeset/71797>
Thanks for the review, Adam!