dom
dom copied to clipboard
What does adoptNode() return for DocumentFragment?
#754 adds to adoptNode():
- If node is a
DocumentFragmentnode whose host is non-null, then return.
But adoptNode() must return a Node. What does this "return" mean?
@annevk
Sigh, it seems that change introduced a bunch of errors. If we can fix the replaceChild() issue somehow I'd say it should return the node passed in, even though it was not adopted.
Perhaps I should first revert that change and test changes though while we figure out a new design. Thoughts welcome.
I think that reverting would be good, especially since none of the major browsers have implemented it. I'd be glad to use jsdom as a testbed for any such change.