Okay. I stand corrected. It still can be handled similar to style elements and refs my fourth point, quoted from earlier.
> 4. For style elements and ref-accessible elements, you could still execute > the changes in set slices, splitting on nodes/callbacks that require > awareness of past effects. (This could just be a flag.) However, these are > exceedingly rare. ----- Isiah Meadows [email protected] Looking for web consulting? Or a new website? Send me an email and we can get started. www.isiahmeadows.com On Sat, Jan 27, 2018 at 2:29 PM, Oriol _ <[email protected]> wrote: > It seems you are implying that only parser-inserted scripts can run > immediately. But scripts created using DOM methods can also do that, see > https://html.spec.whatwg.org/multipage/scripting.html#script-processing-inline > > ```js > var s = document.createElement("script"); > s.text = "console.log(1);"; > document.documentElement.appendChild(s); > console.log(2); > ``` > > The output will be `1`, `2`. The script runs immediately, it's not async. > > - Oriol > > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

