[whatwg/dom] Run adopt as part of insert (#754)

And do not allow non-null host DocumentFragment nodes to be adopted.

This means that a DocumentFragment is no longer implicitly adopted and a DocumentFragment with a non-null host cannot be put in a "weird" state.

Tests: https://github.com/web-platform-tests/wpt/pull/16348.

Fixes #744.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/754

-- Commit Summary --

  * Run adopt as part of insert

-- File Changes --

    M dom.bs (27)

-- Patch Links --

https://github.com/whatwg/dom/pull/754.patch
https://github.com/whatwg/dom/pull/754.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/754

Received on Monday, 15 April 2019 14:32:09 UTC