document.body = "text" should throw a TypeError, not a HierarchyRequestError:
This is because "text" is a DOMString and it cannot be converted into an HTMLElement?. Therefore, the WebIDL specification says we should throw a TypeError in this case.
Created attachment 260988 [details]
Comment on attachment 260988 [details]
Clearing flags on attachment: 260988
Committed r189617: <http://trac.webkit.org/changeset/189617>
All reviewed patches have been landed. Closing bug.