On Thu, Nov 28, 2024 at 7:59 AM Noam Rosenthal <nrosent...@chromium.org>
wrote:

>
> On Wed, Nov 27, 2024 at 4:16 PM Alex Russell <slightly...@chromium.org>
> wrote:
> >
> > Thanks for all of this.
> >
> > Would be good if we had a doc that explored the potential extension
> paths for the existing APIs (arguments object as additional param?) vs. the
> "larger bundle" path. I'm happy for this specific API to ship assuming we
> have those options written up for the TAG (and API OWNERS) to consider.
> >
> > LGTM1 on the condition we produce that writeup.
>
> Done, updated the explainer
> <https://github.com/noamr/dom/blob/spm-explainer/moveBefore-explainer.md>
> with detailed thoughts about this, in line as what was already said in this
> thread.
> See specifically the "Considered alternatives" section
> <https://github.com/noamr/dom/blob/spm-explainer/moveBefore-explainer.md#considered-alternatives>,
> though the entire explainer was updated.
>

Thanks Noam, this is great!

I agree with your argument against the TAG suggestion to consider reusing
existing method names. With my web-compat expert hat on I can also say that
changing the behavior of insertBefore to NOT reset state is almost
certainly not web compatible. This is such longstanding and interoperable
behavior that there are almost certainly going to be lots of websites which
have accidentally come to depend on state being reset (eg. code which,
after moving an iframe, waits for a load callback to reinitialize and
activate it). To me it's debatable whether (absent any web compat risk)
we'd even want to use the same method name for this different semantics. So
IMHO it's certainly not worth the substantial effort, risk and
web-developer pain to attempt a breaking change here.


> --
> You received this message because you are subscribed to the Google Groups
> "blink-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to blink-dev+unsubscr...@chromium.org.
> To view this discussion visit
> https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJn%3DMYb__FWguSj3iSJoBfJqnjjB93uH%2B9DPVHjZ-DxNz5wYew%40mail.gmail.com
> <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAJn%3DMYb__FWguSj3iSJoBfJqnjjB93uH%2B9DPVHjZ-DxNz5wYew%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to blink-dev+unsubscr...@chromium.org.
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFUtAY9KU8rdsa-v6vAnr3tTp5Lemsn96zJT2sXq5oGq4xNfaA%40mail.gmail.com.

Reply via email to