- From: Stef Busking <notifications@github.com>
- Date: Wed, 28 Jun 2017 06:00:19 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 28 June 2017 13:00:55 UTC
The "insert a node into a parent before a child" algorithm is invoked from the following algorithms: * "pre-insert a node into a parent", * "replace a child with node within a parent", * "replace all with a node within a parent" * "split a Text node" In the first three, the "adopt a node into document" algorithm will have been run on *node*, removing it from any parent it may have had. In the last, *node* will be a new node, which does not have a parent. As a result, *node* can not be *child*'s previous sibling at this point of the "insert node" algorithm. I wouldn't mind adding a check for this case, but that would produce dead code in implementations that directly follow the spec. -- 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/464#issuecomment-311652547
Received on Wednesday, 28 June 2017 13:00:55 UTC