- From: Anthony Ramine <notifications@github.com>
- Date: Fri, 08 Feb 2019 09:44:38 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/732/review/201702491@github.com>
nox commented on this pull request. > @@ -2389,12 +2389,10 @@ of a <var>node</var> into a <var>parent</var> before a <var>child</var>, run the </ol> <p><a lt="Other applicable specifications">Specifications</a> may define -<dfn export id=concept-node-insert-ext>insertion steps</dfn> for all or some <a for=/>nodes</a>. The -algorithm is passed <var ignore>insertedNode</var>, as indicated in the <a for=/>insert</a> -algorithm below. -<!-- See https://github.com/whatwg/dom/issues/34#issuecomment-125571750 for why we might need to - adjust this further based on the requirements of the script element. There might be other ways - to define that though as Olli suggests, so leaving that out for now. --> +<dfn export id=concept-node-insert-ext>insertion steps</dfn> or +<dfn export id=concept-node-children-added>children added steps</dfn> for all or some +<a for=/>nodes</a>. The two algorithms are passed <var ignore>insertedNode</var> and +<var ignore>deferredStepsQueue</var>, as indicated in the <a for=/>insert</a> algorithm below. I don't know, they are defined elsewhere with `Text` and they don't take `deferredStepsQueue`. > @@ -2440,8 +2438,12 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run <li><p>Let <var>previousSibling</var> be <var>child</var>'s <a>previous sibling</a> or <var>parent</var>'s <a>last child</a> if <var>child</var> is null. + <li><p>Let <var>deferredStepsQueue</var> be the empty <a>queue</a>. Changed that. > <li> - <p>For each <var>node</var> in <var>nodes</var>, in <a>tree order</a>: + <p>For each <var>node</var> in <var>nodes</var>: Changed that. > @@ -2453,8 +2455,7 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run <li><p>If <var>parent</var> is a <a for=Element>shadow host</a> and <var>node</var> is a <a>slotable</a>, then <a>assign a slot</a> for <var>node</var>. - <li>If <var>node</var> is a {{Text}} node, run the <a>child text content change steps</a> for - <var>parent</var>. + <li>If <var>node</var> is a {{Text}} node, set <var>textChanged</var> to true. Changed that. > @@ -2490,6 +2492,22 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run </li> </ol> + <li><p>If <var>textChanged</var> is true, run the <a>child text content change steps</a> for It's not observable, just thought it would be better to specify them as running only once, otherwise for example if you follow the spec pedantically you would recreate a `style`'s stylesheet once for each added `Text` child. > @@ -2490,6 +2492,22 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run </li> </ol> + <li><p>If <var>textChanged</var> is true, run the <a>child text content change steps</a> for + <var>parent</var>. + + <li><p>If <var>nodes</var> is not empty, run the <a>children added steps</a> with + <var>parent</var> and <var>deferredStepsQueue</var>. + + <li> + <p>While <var>deferredStepsQueue</var> is not empty: Changed that. -- 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/732#discussion_r255170508
Received on Friday, 8 February 2019 17:45:00 UTC