- From: Edgar Chen <notifications@github.com>
- Date: Fri, 03 May 2019 08:45:44 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/695/review/233540778@github.com>
EdgarChen commented on this pull request. > @@ -2203,6 +2203,36 @@ steps: <li><p>If <var>slot</var> is non-null, then run <a>assign slotables</a> for <var>slot</var>. </ol> +<p>To <dfn noexport>update slots</dfn>, given <var>removedNodes</var>, <var>parent</var>, and +<var>addedNodes</var>, run these steps: + +<ol> + <li> + <p>For each <var>removedNode</var> in <var>removedNodes</var>: + + <ol> + <li><p>If <var>removedNode</var> is <a for=slotable>assigned</a>, then run + <a>assign slotables</a> for <var>removedNode</var>'s <a>assigned slot</a>. + + <li><p>If <var>removedNode</var> has an <a>inclusive descendant</a> that is a <a>slot</a>, then + run <a>assign slotables for a tree</a> with <var>removedNode</var>. I found that it seems the order of slotchange event is changed in a certain case, for example, https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=6882. If I read spec correctly, the event order of current spec is [slot1, slot3. slot2], and it changes to [slot2, slot1, slot3]. I am not sure if this will cause any problem? Current browsers have a different order than spec, and the order is not the same between browsers, either. -- 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#pullrequestreview-233540778
Received on Friday, 3 May 2019 15:46:07 UTC