03:09
<domfarolino>
Per spec, can an async script execute in between the time when a pending parsing-blocking script is "prepared", and when it is executed?
03:10
<domfarolino>
I'm not sure if the behavior asserted by https://github.com/web-platform-tests/wpt/blob/master/html/semantics/scripting-1/the-script-element/script-text-modifications.html is mandated by spec
03:36
<annevk>
domfarolino: that looks wrong to me, but what do browsers do?
03:37
<domfarolino>
annevk: Looks like that's a chrome-only test https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/script-text-modifications.html?label=master&label=experimental&aligned&q=html%2Fsemantics%2Fscripting-1%2Fthe-script-element
03:40
<annevk>
domfarolino: I’m pretty sure that’s wrong per spec. File an issue?
03:40
<domfarolino>
Will do
11:15
<botie>
Ms2ger, at 2020-04-28 04:51 UTC, MikeSmith said: https://www.w3.org/TR/domcore/ now redirects; thanks for catching that
11:16
<Ms2ger>
MikeSmith, thanks!
19:09
<domfarolino>
annevk: Actually I think the test is right
19:24
<domfarolino>
The parser "prepares" a script even while the script-blocking style sheet. Once preparing is complete, the parser runs these "otherwise": https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-incdata:pending-parsing-blocking-script. Meanwhile, the async script runs, modifying the script's text, after the classic pending script has already been created with the old source text
19:48
<annevk>
domfarolino: isn’t async excluded from being a blocking script?
19:50
<domfarolino>
annevk: blocking what? The test I guess relies on the async script executing before the pending parsing-blocking script
19:54
<annevk>
domfarolino: that expectation makes lil sense to me
19:55
<domfarolino>
annevk: Yeah I guess there's nothing mandating that really. I think we could change the test to set the pending parsing script's innerText not via an async script, but via setTimeout from the previous pending parsing-blocking script
19:56
<domfarolino>
That way it's testing what it needs to test, and not that + async script scheduling