00:51 | <Domenic> | I always just build locally. (But that doesn't give a HTML diff, just, the new HTML.) |
00:52 | <Domenic> | If someone was able to update PR preview to use https://github.com/whatwg/build.whatwg.org?tab=readme-ov-file#html-build , we could get singlepage builds and diffs (and also fix other things missed by the PR preview, like syntax highlighting or preprocessing). But I'm unsure how to maintain PR preview. |
12:03 | <zcorpan> | Is it intentional that https://html.spec.whatwg.org/#clone-a-policy-container doesn't clone the integrity policy and report only integrity policy? |
13:15 | <Noam Rosenthal> | Yoav Weiss: ^^^ |
13:15 | <Schalk Neethling> | Hey all! I am curios about the intended behavior of disabled on link elements with rel=stylesheet. From reading here: https://html.spec.whatwg.org/#attr-link-disabled it would seem that this allows one to queue up some stylesheets that can then later be fetched and applied (perhaps using something like intersection observer to load some CSS only when a specific component is about to enter the viewport). However, it seems that all but Safari will still download the CSS on page load. None of the browsers which fetches the CSS will apply it though. The only browser I have seen that seems to behave as I would expect is Safari. In Safari the CSS file does not end up in the network panel on page load i.e. not fetched. When I dynamically set disabled to false, it then fetches and applies the CSS as per (my understanding) of the specification. Here is a super minimal example: https://fjw3dm.csb.app/ |
13:17 | <Yoav Weiss> | @zcorpan - I don't remember it being intentional. Let me dig up the relevant PR |
13:19 | <Yoav Weiss> | Seems like it never came up in https://github.com/whatwg/html/pull/11334 and I missed it.. |
13:31 | <Noam Rosenthal> | From looking at the spec seems like safari is in the right here. Relevant chromium bug: https://issues.chromium.org/issues/40286062 |
13:33 | <Schalk Neethling> | Ah. Awesome. Thank you, Noam. I wonder whether there is a bug on the Gecko side as well for this. 🤔 My Bugzilla foo is terrible, but then again they are on GitHub now, right? |
13:35 | <Luke Warlow> | Their bug tracker is still in bugzilla |
13:54 | <Dominic Farolino> | Is it possible to run script in response to an AbortSignal aborting, but before its abort event fires? Basically I'm asking if the web platform has access to internal "abort algorithm" timing (before Observables, that is)? |
13:58 | <Noam Rosenthal> | I guess other specs that add an algorithm to the AbortSignal ? |
14:00 | <Noam Rosenthal> | (seems like the observable spec does this multiple times) but by "web platform" do you mean a general-purpose API that exposes this? |
14:17 | <Dominic Farolino> | No I mean indirectly. I looked at all references of "add an algorithm" and none of them appear to invoke user-provided script, so I don't think there is any way to register script that runs in response to an AbortSignal being aborted, at "abort algorithm" timing (before abort event) |
14:17 | <Dominic Farolino> | but I'm hoping somebody knows of one subtle instance that I don't know about! |
14:22 | <Noam Rosenthal> | oh so you mean if there is an existing caller for "add an algorithm" that invokes a script. |
14:23 | <sissiboi25> | https://matrix.to/#/!JfcsmfWnEQHLwlMXiL:matrix.org?via=matrix.org |
14:30 | <Noam Rosenthal> | Dominic Farolino: I am pretty sure streams add algorithms that reject promises as "abort algorithms". Promise rejections can invoke a script which would happen before the event is fired. Andreu Botella would be more of an expert though |
14:40 | <Andreu Botella> | Rejecting a promise can cause script execution in a microtask, but if that happens when no script is running, then I think the microtask queue will only be drained after the next subsequent script execution (or when the current event loop task finishes) |
14:41 | <Andreu Botella> | So if none of the spec callers of "add an algorithm" invokes a script, then promise resolutions or rejections wouldn't cause a script execution before the event is fired |
14:50 | <Noam Rosenthal> | right, I had it in my head that "reject" calls "prepare to run script" but it doesn't, that would only happen in the microtask |
15:00 | <zcorpan> | Yoav Weiss: OK, I can file an issue |
16:18 | <emilio> | Noam Rosenthal: Andreu Botella: Can't reject / resolve with an object actually call the .then getter synchronously? |
16:18 | <emilio> | (Not sure if that applies to the specific case you were discussing tho) |
16:27 | <Noam Rosenthal> | I don't think so? It queues a microtask to do that here: https://html.spec.whatwg.org/multipage/webappapis.html#hostenqueuepromisejob |
16:29 | <Noam Rosenthal> | ... though future callers of "add an abort algorithm" can fire an event or invoke a direct user callback... I don' t think this is prohibited |
16:32 | <Schalk Neethling> | Here is the Firefox one https://bugzilla.mozilla.org/show_bug.cgi?id=1376729 |
16:46 | <Noam Rosenthal> | Dominic Farolino: I think you can get readystatechange events fired from XMLHttpRequest before the abort event |