[whatwg/dom] adoptNode() should always return a node (#1006)

In the [adoptNode()](https://dom.spec.whatwg.org/#dom-document-adoptnode) steps, step 3 says "If node is a DocumentFragment node whose host is non-null, then return.", but the [interface](https://dom.spec.whatwg.org/#ref-for-dom-document-adoptnode) defines `adoptNode()` as always returning a node. Shouldn't step 3 either return node or throw, or am I missing something from IDL that would allow returning nothing?

-- 
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/issues/1006

Received on Monday, 9 August 2021 22:08:16 UTC