[whatwg/dom] Manage slot manipulation centrally and special case replace operations (#695)

This is an attempt at fixing https://github.com/w3c/webcomponents/issues/764.

I first wrote an algorithm that combined the operations done by remove and insert. I then used that for replace and replace all. I then abstracted it to avoid duplication.

I'm a little worried that this is not correct as this delays assigning slotables to a slot quite a bit, which I think might be observable in some cases.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Manage slot manipulation centrally and special case replace operations

-- File Changes --

    M dom.bs (66)

-- Patch Links --

https://github.com/whatwg/dom/pull/695.patch
https://github.com/whatwg/dom/pull/695.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/695

Received on Tuesday, 11 September 2018 15:15:45 UTC