01:10
<smaug____>
hayato_: got to say "Sequential Focus Navigation" in Shadow DOM is really hard to understand when the algorithms for example take some single item as input but then algorithm says one should do something 'for each'
01:20
<smaug____>
Domenic: what does "In shadow-including tree order, is shadow-including preorder, depth-first traversal of a node tree." mean? I don't understand that "In"
01:20
<domfarolino>
TabAtkins: (latereply sorry) Ah from reading the spec that's what I figured it would do, and what you said abot "two-step" conjugations makes sense. Thanks. My confusion was from https://github.com/whatwg/fetch/pull/620#discussion_r159297985 where I wasn't sure if the `lt=` was necessary but as Domenic mentioned, it wasn't
01:21
<domfarolino>
TabAtkins: Oh, good to know [=|=] is part of Bikeshed syntax!
01:22
<TabAtkins>
https://tabatkins.github.io/bikeshed/#autolinking
01:22
<domfarolino>
:)
01:26
<smaug____>
Domenic: nm
01:26
<smaug____>
I see it is meant to be referred outside that text
01:26
<smaug____>
in foo...
01:44
<domfarolino>
WPT description is: "Test suites for Web-platform specs — including WHATWG, W3C, and others", curious as to what the others are?
02:12
<Domenic>
IETF
02:12
<Domenic>
A bit of Ecma given the overlap with modules/SharedArrayBuffer
02:13
<Domenic>
I think Khronos keeps all their stuff in a separate thing
02:14
<Domenic>
APNG isn't specified anywhere I think
02:16
<othermaciej>
Perhaps someone shou start an APNG Living Standard
02:16
<othermaciej>
Or maybe even PNG Living Standard if the RFC is insufficient in other ways
02:20
<othermaciej>
APNG seems to be specified on the Mozilla wiki: https://wiki.mozilla.org/APNG_Specification
02:22
<Domenic>
Ah nice
02:23
<tantek>
indeed. thoughts on possible next steps the last time I looked at it: https://wiki.mozilla.org/APNG
02:23
<tantek>
^^^ feel free to liberally offer any manner of alternative suggestions
02:24
<othermaciej>
Also, PNG was published as a W3C Recommendation and IETF RFC but it seems like the latest version might be only on the libpng website: www.libpng.org/pub/png/spec/1.2/
02:24
<othermaciej>
(I can't figure out what is different between the version sso not actually sure)
02:28
<othermaciej>
Also I think the latest W3C version is newer than the IETF's PNG RFC
02:29
<othermaciej>
this would make IETF an awkward venue for APNG
02:29
<othermaciej>
the politics are too confusing for me to have a productive suggestion other than "burn it all down and make it a WHATWG Living Standard"
02:30
<Domenic>
Well you're in the right channel
02:36
<tantek>
othermaciej: it's a format, not a protocol, and thus whatwg or w3c are a better default for future versions / updates than ietf
02:37
<tantek>
that's the historical split
02:37
<tantek>
perhaps try to contact the editor's of APNG on the Mozilla Wiki and see if they care one way or the other or want to participate in an update?
02:38
<tantek>
editors*
02:38
<tantek>
whatwg living standard seems fine to me
02:39
<tantek>
just doesn't mean you have to burn anything per se
02:58
<domfarolino>
Domenic: whenever you get a chance could you tell me what Edge prints (if any) for `console.log("%i", Symbol.for("..."))`
03:00
<domfarolino>
every impl I've tested does not throw, when I believe they should
03:03
<Domenic>
"Could not complete the operation due to error 80020101."
03:04
<Domenic>
It appears to throw an Error (not a TypeError)
03:04
<Domenic>
Per your latest change they should print "Symbol(...)" right?
03:05
<Domenic>
Or I guess parseInt("Symbol(...)") so NaN?
03:05
<domfarolino>
Hm, well the first step of the %parseInt% abstract op calls ToString, so I expect throw, since ToString throws on Symbols?
03:05
<Domenic>
Oh right
03:05
<Domenic>
Good call
03:05
<Domenic>
Yeah weird I wonder what they are even doing
03:05
<Domenic>
Type-testing symbols I guess for all code paths?
03:07
<Domenic>
Well the results are all divergent enough that I think asking them to throw is reasonable
03:10
<domfarolino>
Domenic: Hmm must be I guess, idk interesting. Yeah I think nobody actually follows, and I think spec is reasonable so I'll start filing away
03:11
<Domenic>
With WPTs? :)
03:11
<michael2>
hi does anyone know which section of whatwg spec/docs define "default actions" on HTML elements? e.g. say you have <a onclick="foo();" ... how the browser should handle that?
03:12
<domfarolino>
Yeah I think I'm going to make the WPT that accompanies the latest Console PR inclusive to testing all format specifiers on Symbols
03:18
<domfarolino>
Ugh in Chrome (at least stable) `console.count(Symbol.for("..."))` doesn't throw, and still "counts". Domenic are the bindings just shot or something?
03:20
<domfarolino>
+Safari
03:28
<Domenic>
Yeah my understanding is that Chrome and Safari both implement console in JS so don't benefit from auto-generated WebIDL bindings
03:29
<Domenic>
michael2: HTML has all those. Can try to track down specific ones if you can't find them.
03:51
<domfarolino>
Ahh
03:51
<domfarolino>
fun
03:52
<domfarolino>
I imagine that's miuch slower too
03:52
<domfarolino>
*much
03:53
<domfarolino>
Well...maybe?
03:53
<Domenic>
Nah if anything a bit faster
03:53
<Domenic>
No JS -> C++ transition
04:00
<domfarolino>
Oh true
05:10
<michael2>
Domenic: hi, just saw your response from earlier. I've looked in HTML but I guess the question is which part? also, I've read this part of the docs before, and from memory its a dedicated (and relavtively small) document
05:11
<Domenic>
michael2: html.spec.whatwg.org/ is not very small :). Let's see, let's start with the a element chapter...
05:11
<Domenic>
"The activation behavior of a elements that create hyperlinks is to run the following steps:"
05:11
<michael2>
hah :) i mean _this_ part is pretty small
05:12
<michael2>
because the number of HTML elements which have this "default action" is few. only <a> and <form>
05:13
<Domenic>
Basically Ctrl+F "activation behavior" to find out what happens when you activate (click, keyboard enter, etc.) various elements
05:14
<michael2>
I think thats something different
05:15
<Domenic>
I can guarantee you it's not :)
05:15
<Domenic>
That's how we define these things
05:16
<Domenic>
Part of the issue is that some people (perhaps including yourself) have some notion that events "cause" actions and that there are "default actions" that are caused. But that's very wrong.
05:17
<Domenic>
Things happen, like an actual user clicking something, then we fire a click event to notify you, and then---if the click event wasn't canceled---the activation behavior happens.
05:17
<michael2>
ok
05:17
<Domenic>
But the event part of that is basically just an "FYI", not essential to the process
05:18
<michael2>
so thats events in general right? well I guess events that are directed at an HTmL element
05:18
<michael2>
at least
05:18
<Domenic>
Events in general really https://dom.spec.whatwg.org/#action-versus-occurance
05:22
<michael2>
what Im trying to find is the part of the spec (which whatwg inherited from pre-existing DOM-something? spec) relating to those behaviours the browser should follow when a dev say does <a onclick="return foo(element);" and how the browser should bind "element" to the "this" inside foo() and a return value of "false" should cancel default action (i.e. navigating away from current page)
05:25
<michael2>
like DOM api from 90's netscape days
05:25
<Domenic>
Ah, the spec for inline event handlers
05:26
<Domenic>
It doesn't cancel the default action, since there is no such concept, but it does cancel the event.
05:26
<Domenic>
To see how canceling the event interacts with activation behavior, see https://dom.spec.whatwg.org/#concept-event-dispatch
05:27
<Domenic>
To see how inline event handlers returning false (usually) cancels the event, see https://html.spec.whatwg.org/#the-event-handler-processing-algorithm + https://html.spec.whatwg.org/#getting-the-current-value-of-the-event-handler
05:28
<Domenic>
And with that, I'm heading to sleep. Hopefully following links from there should help.
05:31
<michael2>
Domenic: thanks alot
05:31
<michael2>
that gives me alot to go from
05:56
<domfarolino>
Action vs occurance link is nice and informative
05:57
<domfarolino>
Domenic: Is there a reason the URL is spelled occurance when the header is "occurrence"?
05:57
<annevk>
domfarolino: I suspect I made a typo and didn't want to break links
05:58
<annevk>
domfarolino: git blame would tell
05:58
<domfarolino>
Ok that makes sense
06:37
<TimothyGu>
Have function.arguments/caller been spec'd?
06:45
<domfarolino>
TimothyGu: Is this at all what you're looking for https://tc39.github.io/ecma262/#sec-arguments-exotic-objects
07:59
<TimothyGu>
domfarolino: nah that's arguments.caller, function.caller is something different
08:00
<TimothyGu>
see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/caller
13:06
<Ms2ger>
annevk, where is it defined that a Uint8ClampedArray has a [[Detached]] slot?
13:27
<annevk>
Ms2ger: hmm, only the underlying buffer does?
13:28
<Ms2ger>
Ok
13:29
<tobie>
Ms2ger: I think this used to be the case at some point, now you just check whether [[ArrayBufferData]] is null.
13:29
<annevk>
Ms2ger: hmm, no, the underlying buffer can be detached
13:29
<annevk>
Right, what tobie said
13:29
<annevk>
Though there's an actual abstract operation we use for it
13:30
<tobie>
see https://tc39.github.io/ecma262/#sec-isdetachedbuffer
13:30
<Ms2ger>
https://github.com/whatwg/html/issues/3343
13:30
<tobie>
and https://tc39.github.io/ecma262/#sec-detacharraybuffer
13:30
<annevk>
Ms2ger: lots of nice finds
13:31
<Ms2ger>
And I haven't even started filing impl bugs
13:38
<tobie>
TabAtkins: if you can give https://github.com/tabatkins/bikeshed/issues/1166 a look when you get to work, that would be great. Affects builds at least for WebIDL, maybe other specs?
14:37
<annevk>
Hmm, I looked at the state of MIME type sniffing a bit and now I wish I never did
14:37
<annevk>
I guess I'll fix a few more Ms2ger <canvas> issues
14:38
<Ms2ger>
I'm Ms2ger, and I support this message
14:50
<nox>
To the best of my knowledge I'm not Ms2ger, but I support this message too.
14:50
<gsnedders>
I, also, believe myself not to be Ms2ger, and also support this message.
14:52
<annevk>
MIME type sniffing is important too, but the code in Firefox is rather ancient
14:54
<jgraham>
I mean nox seems unusally likely to be Ms2ger. They are both grumpy about Rust syntax additions, for example
14:54
Ms2ger
hides his baguettes
14:55
<nox>
jgraham: But what if instrumentality happened already and we actually are a single consciousness?
14:56
<jgraham>
nox: All of us? In that case stop arguing with yourself about bread.
14:56
<nox>
Ah ah ah ah ah.
14:57
<ato>
I thought endorsements had to be followed by who paid for it.
14:57
<ato>
Question is who bribed gsnedders.
14:59
<gsnedders>
bbiab, going to bank
15:00
Ms2ger
hurries with his wire transfer
15:29
<nox>
Not even using bitcoins?
16:48
<nox>
Who the hell manages https://drafts.css-houdini.org/?
16:48
<nox>
https://irccloud.mozilla.com/file/3kD35V7Y/Capture%20d%E2%80%99e%CC%81cran%202018-01-12%20a%CC%80%2017.48.34.png
16:49
<nox>
I'm not living in the US, so please explain how my ISP can block this website…
16:51
<nox>
https://github.com/fightforthefuture/battleforthenet-widget/issues/145 smh
17:36
<annevk>
https://github.com/whatwg/html/graphs/contributors is up to a 100
17:36
<annevk>
Has that been the case for long?
17:36
<annevk>
Two years ago we had 37: https://blog.whatwg.org/html-standard-now-more-community-driven
17:37
<tobie>
TabAtkins: thanks, you rock!
17:37
<annevk>
Maybe we should blog again on January 25
17:37
<TabAtkins>
tobie: Well, my testing situation should have caught this, so I don't rock *that* much. Fixing that now as well.
17:38
<TimothyGu>
tobie: for named properties object, unfortunately I think you can't use ObjectCreate
17:38
<TimothyGu>
The abstract operation ObjectCreate with argument proto (an object or null) is used to specify the runtime creation of new **ordinary objects**.
17:40
<tobie>
TimothyGu: yeah, I imagined this was sort of sketchy.
17:40
<TimothyGu>
See https://tc39.github.io/ecma262/#sec-proxycreate for a more appropriate example
17:40
<tobie>
TimothyGu: is there anything else I can use instead?
17:41
<tobie>
Cool. Thanks. I’ll give it a look later.
17:41
<annevk>
Oh, it's 138 contributors, so we increased by a 100 in two years
17:41
<TimothyGu>
yay! happy to be one of them
17:42
<annevk>
Go go contributors \o/
18:05
<domfarolino>
Woo same!
18:46
<tobie>
TimothyGu: lmk if that makes more sense
18:55
<TimothyGu>
tobie: LGTM
19:24
<domfarolino>
Domenic: Regarding https://bugs.webkit.org/show_bug.cgi?id=181576#c2 do you think the spec should change to not force implementations to throw when %parseInt% would normally?
19:24
<domfarolino>
Personally I like the spec how it is, but since nobody is throwing, and as Joseph pointed out, it could be a backwards-incompatible change I'm not sure what to do
19:35
<Domenic>
domfarolino: Edge is throwing
19:35
<domfarolino>
Nice!
19:35
<domfarolino>
Forgot about that
19:36
<Domenic>
In general I think there's a larger question about "should console methods ever throw or not". But I thought we resolved that at some point in favor of allowing throwing, in some other thread.
19:36
<domfarolino>
I feel like allowing console methods to not throw when the devtools are not open is a little messy, which is _close_ to what WebKit is doing since they don't apply format specifiers if the devtools are not open
19:37
<Domenic>
Yeah observable differences between devtools open and not is bad
19:37
<domfarolino>
Oh, I can check out some old issues to try and see if that decision has been made. In short I think they should be able to throw
20:07
<domfarolino>
Domenic: Yeah in general it seems like the consensus all along has been to allow throwing. https://github.com/whatwg/console/issues/54#issuecomment-216631477 in particular mentions not swallowing errors on Console APIs, which I agree with
20:37
<tobie>
TimothyGu: ty
20:46
<tobie>
TimothyGu: thoughts on https://github.com/heycam/webidl/pull/494#discussion_r161321239 appreciated
20:56
<smaug____>
TabAtkins: there can be several nested element with display:contents right, and only the elements which then eventually have some other display values will be shown
20:56
<TabAtkins>
Yes
20:57
<smaug____>
ok, thanks
21:00
<TimothyGu>
tobie: commented
21:00
<tobie>
TimothyGu: ty
21:08
<Domenic>
TimothyGu: ping on https://github.com/whatwg/html/pull/3314
21:11
<annevk>
Domenic: quirks also still has CC0
21:11
<Domenic>
jungkees: FYI getting source bytes onto the script struct is not straightforward :( I uncovered a giant mess: https://github.com/whatwg/fetch/issues/661
21:12
<annevk>
Domenic: and streams/ has a bunch of matches when I grep for CC0, possibly just ref impl / tests
21:13
<annevk>
Domenic: also meta/ which seems fine and html/ which I suspect is for one of those images
21:13
<Domenic>
annevk: will you fix?
21:14
<annevk>
Domenic: prolly Monday at the earliest, gonna get some sleep
21:14
<annevk>
Domenic: also not entirely sure what to do about any of those except quirks
21:15
<Domenic>
Yeah quirks is the bad one
21:23
<TimothyGu>
Domenic: ah forgot about that. will fix soon
22:10
<tobie>
TabAtkins: is https://github.com/tabatkins/bikeshed/issues/1167 something that's easily fixable on your side or should I just use a workaround?
22:10
<TabAtkins>
Easily fixable.
22:10
<tobie>
TabAtkins: cool