[dom] The mutation method macro has undefined behavior when nodes is empty (#44)

https://dom.spec.whatwg.org/#mutation-method-macro

This doesn't deal with the case where *nodes* contains no node at all. This needs to be defined for `ParentNode.prepend()`, `ParentNode.append()`, `ChildNode.before()`, `ChildNode.after()` and `ChildNode.replaceWith()` called with no arguments.

The only case where there could be any doubt is `replaceWith()`, should that do nothing or remove the context object?

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/44

Received on Friday, 12 June 2015 11:53:52 UTC