00:43
<Maxim Vaarwel>
annevk: well, you confirm my suggestions about API that decorated by CEReactions that can create an element and invoke constructor method in the code of which is called an another API decorated by CEReations. Thanks.
08:18
<annevk>
Jeffrey Yasskin: I don't think WHATWG specs mention it. IDL doesn't either. It is typically mentioned in domintro boxes though. But we could change all of that I suppose.
09:53
<Noam Rosenthal>
I want to propose allowing blocking=render on inline scripts, would that be a "new feature" or a "new issue"?
https://github.com/whatwg/html/issues/10034
13:48
<evilpie>
Is there something in HTML that would trim whitespace from nonce attributes? https://html.spec.whatwg.org/multipage/urls-and-fetching.html#nonce-does-not-update-dom doesn't at least, but I am not sure how attributes from the parser are handled.
15:52
<annevk>
evilpie: typically preserved
18:00
<Jeffrey Yasskin>
Jeffrey Yasskin: I don't think WHATWG specs mention it. IDL doesn't either. It is typically mentioned in domintro boxes though. But we could change all of that I suppose.
I don't want to change what experienced spec authors are doing, just try to document it better, if there is actually a pattern to document. My impression was that WHATWG specs usually return "failure" from algorithm steps and then only convert that to an exception when implementing a WebIDL operation. For example, https://url.spec.whatwg.org/#dom-url-url converts failure to an exception in the URL constructor, and https://fetch.spec.whatwg.org/#dom-global-fetch does the same conversion from network error to rejection. Some of the helper algorithms for WebIDL operations do throw without mentioning it in their interfaces, but the deeper layers seem to prefer returns.
19:44
<Noam Rosenthal>
I don't want to change what experienced spec authors are doing, just try to document it better, if there is actually a pattern to document. My impression was that WHATWG specs usually return "failure" from algorithm steps and then only convert that to an exception when implementing a WebIDL operation. For example, https://url.spec.whatwg.org/#dom-url-url converts failure to an exception in the URL constructor, and https://fetch.spec.whatwg.org/#dom-global-fetch does the same conversion from network error to rejection. Some of the helper algorithms for WebIDL operations do throw without mentioning it in their interfaces, but the deeper layers seem to prefer returns.
This usually makes sense to me because "throwing" means that there's some catching semantic, and that's not guaranteed when you're in an internal operation (e.g. it could be an in parallel operation)
19:54
<bakkot>
does anyone know why getRandomValues has a size limit? I poked around the git history and mailing lists but couldn't find it offhand
21:53
<annevk>
Jeffrey Yasskin: I think that's right. Just like you would (might?) return std::nullopt in C++ over an exception.
21:59
<annevk>
bakkot: I found it predates git but not super motivated to dig into the CVS history
21:59
<annevk>
bakkot: emailing Ryan Sleevi or dm'ing him somewhere might work
23:09
<zcorpan>
Is there something in HTML that would trim whitespace from nonce attributes? https://html.spec.whatwg.org/multipage/urls-and-fetching.html#nonce-does-not-update-dom doesn't at least, but I am not sure how attributes from the parser are handled.
"becomes browsing-context connected" also applies for parser-inserted elements. The parser doesn't trim whitespace for nonce attributes, nor anything else in the spec AFAICT.
23:31
<bakkot>
annevk: if you know where the CVS history is I am happy to dig into it