02:17
<Domenic>
What a fun algorithm. It must have been invented before the <ol> element. https://html.spec.whatwg.org/multipage/canvas.html#serialisation-of-a-color
06:58
<annevk>
Domenic: hah, Hixie enjoyed that kind of style a bit too much
08:05
<Yoav Weiss>
I'm reading through https://html.spec.whatwg.org/multipage/scripting.html#prepare-the-script-element and wondering. Do I understand correctly and step 31.11 (for fetching of the scripts) is done synchronously?
08:09
<Domenic>
I mean, the fetching *starts* synchronously. The onComplete runs after the network gets back to us.
08:17
<Yoav Weiss>
ok. When does step 33 run? immediately after fetch starts?
08:17
<annevk>
Yoav Weiss: after fetch goes in parallel
08:20
<annevk>
Yoav Weiss: everything is essentially blocking until you go in parallel (HTML has created some confusion here by sometimes saying steps have to run synchronously, but the truth is they all run synchronously; we're slowly cleaning that up)
08:21
<Yoav Weiss>
The "in parallel" part is defined outside the processing steps, in https://html.spec.whatwg.org/multipage/scripting.html#the-script-element:attr-script-async-8 ?? Or somewhere else?
08:22
<annevk>
Yoav Weiss: presumably it's in Fetch, as I said, but there are sometimes things where HTML goes in parallel before it calls fetch, but that's also generally an anti-pattern
08:22
<Yoav Weiss>
ok
08:24
<Yoav Weiss>
It just seems like step 33 assumes that the script is ready to be executed, and it's not immediately obvious to me how it can assume that. But at the same time, that lack of clarity (or lack of understanding on my part) doesn't block me atm. Thanks!!
08:27
<annevk>
Yoav Weiss: I suspect it only does that for scripts without a src attribute
08:27
<annevk>
Yoav Weiss: at least the way I read that it queues for the src attribute cases
08:29
<Yoav Weiss>
ooh, I missed "steps to run when result is ready"
08:30
<Yoav Weiss>
that explains things! thanks!!
09:20
<Yoav Weiss>
unrelated to the above, I'm looking at https://webidl.spec.whatwg.org/#construct-a-callback-function and https://webidl.spec.whatwg.org/#call-a-user-objects-operation and trying to figure out if they are called from anywhere. Xref doesn't give me a whole lot
09:22
<Andreu Botella (mostly OOO until 11/20)>
DOM uses call a user object's operation with event listeners
09:23
<Yoav Weiss>
ooh, ok
09:24
<Yoav Weiss>
(as an aside, view sourcing the HTML spec crashes Chromium and hangs firefox)
09:27
<Yoav Weiss>
seems like constructing is used in HTML
09:27
<Ms2ger>
Yoav Weiss: https://dontcallmedom.github.io/webdex/c.html#call%20a%20user%20object%E2%80%99s%20operation%40%40webidl%25%25dfn can be hlpful
13:55
<freddy>
tries to view source on the HTML spec in Firefox. Wow yes, that takes a while, mh?