06:19
<XhmikosR>
MikeSmith: I see a lot of unused gif images in https://github.com/w3c/markup-validator/. Any reason you keep them?
06:35
<MikeSmith>
XhmikosR: no idea, I don’t really maintain that code
06:35
<MikeSmith>
if I had my way we would have just killed that validator long ago and replaced it with the HTML checker
06:36
<MikeSmith>
but if you think the gif images should be yanked lemme know
06:36
<MikeSmith>
or raise a PR and I’ll review it asap
06:37
<XhmikosR>
MikeSmith: I've found some that are certainly unused. But I see some others which are being referenced without the extention and they have a PNG equivalent too
06:37
<XhmikosR>
for example valid-css.gif and valid-css.png
06:41
<MikeSmith>
OK if you’ve already investigated it then I’d suggest just raising a PR with a patch that deletes whatever unused ones you found
06:42
<XhmikosR>
all right
07:36
<annevk>
smaug: outstanding ping in https://github.com/whatwg/html/issues/2615
07:37
<smaug>
annevk: connected to any document?
07:38
<annevk>
smaug: a document that's fully active
07:38
<annevk>
only those
07:38
<smaug>
ok, from a browsing context document
07:38
<annevk>
yeah, and one that's not navigated away or some such
07:39
<smaug>
annevk: just a sec, I need to fix burning tree
07:49
<smaug>
annevk: so conceptually I'd prefer links to be connected
07:50
<annevk>
smaug: I can ask Chrome to gather data
07:50
<annevk>
smaug: it's blocking some other work I want to do in HTML, but I'll manage
08:38
<JakeA>
tobie: thinking about that testing site again… I wonder if the w3 would pay someone like Remy Sharp to set it up
08:39
<tobie>
JakeA: the W3C has never given me a cent for any of the infra I built for it, so short answer is no.
08:39
<JakeA>
bleh
08:40
<tobie>
JakeA: and the tendency to attribute credit to itself for it is sort of astounding, e.g.: https://twitter.com/wseltzer/status/860234933985529857
08:41
<JakeA>
*longest sigh*
08:41
<tobie>
JakeA: that said, you work for a company with deep pockets
08:42
<JakeA>
tobie: true. I'll float the idea when I'm out in SF
08:44
<MikeSmith>
plh still has channels to get testing stuff funded
08:45
<MikeSmith>
and at the risk of pointing out the obvious and coming across as defensive: the W3C is not some monolithic abstraction that does things
08:45
<MikeSmith>
that tweet is from a person
08:46
<MikeSmith>
one person
08:49
<hsivonen>
annevk: I made https://hsivonen.com/test/moz/iso-2022-jp-encoder.htm
08:50
<hsivonen>
it shows that Gecko, Blink and Presto encode half-width Katakana without NCR
08:50
<hsivonen>
didn't test WebKit, because I'm too lazy to switch cables around
08:50
<tobie>
MikeSmith: sure, at some point it's a structural issue, though.
08:51
<hsivonen>
the test harness doesn't work right in Microsoft browsers
08:51
<hsivonen>
do I need to submit a form and echo back the results from a server to test encoders in IE and Edge?
08:51
<hsivonen>
or is there a client-side way?
08:52
<annevk>
hsivonen: dunno
08:52
<hsivonen>
anyway, so far, this is already a strong indication of a spec bug
08:53
<annevk>
hsivonen: with ミ in Safari TP I get the same results as in Firefox
08:53
<annevk>
hsivonen: agreed
08:54
<hsivonen>
I'll file
08:55
<annevk>
hsivonen: if you already know how to fix it that'd be appreciated, but I can make time for this
08:57
<hsivonen>
https://github.com/whatwg/encoding/issues/105
08:57
<hsivonen>
annevk: I don't yet know how to fix
08:57
<hsivonen>
I'll probably take a look at other oranges before I come back to this
08:58
<annevk>
hsivonen: sounds good, I'll investigate later today
09:25
<MikeSmith>
JakeA: if you have a few minutes, think you might be able to give a good explanation at https://stackoverflow.com/questions/43800998/why-do-fetch-errors-not-have-a-stacktrace-in-my-single-page-application
09:25
<MikeSmith>
or a pointer to somewhere you’ve previously explained it
09:25
<hsivonen>
hmm. privacy badger's presence is visible in the Live DOM Viewer
09:26
<hsivonen>
that seems bad for at least two reasons
09:26
<hsivonen>
1) Unexpected DOM shape might break scripts' expectations and 2) you don't want sites to detect privacy badger too easily
09:44
<hsivonen>
annevk: https://github.com/w3c/web-platform-tests/blob/25c529dc883227d6417ab25cd167c135cba72541/encoding/iso-2022-jp-decoder.html wants an escape to ASCII at the start of the stream to be an error even though it doesn't want useless non-empty ASCII-to-ASCII transitions to be errors later
09:44
<hsivonen>
annevk: I take it that it's intentional that an initial transition to ASCII is no longer an error?
09:47
<annevk>
hsivonen: I probably decided to simplify that
10:16
<annevk>
You'd think it would be easier to find a halfwidth to fullwidth algorithm
10:27
<annevk>
And it's not as easy as just subtracting a number
11:11
<annevk>
hsivonen: I posted a fix now
11:29
<annevk>
hsivonen: https://github.com/whatwg/encoding/pull/103 is also still awaiting feedback from you
11:56
<JakeA>
MikeSmith: http://stackoverflow.com/a/43804340/123395 cheers!
11:58
<MikeSmith>
JakeA: superーcheers
12:22
<mikeecb>
hi all, i know that initEvent(type, bubbles, cancelable) is a web standard (but redundant) as i see it on w3c. is new Event(type [, eventInitDict]) a web standard? it isn't supported by IE and i don't see it in the IDL Definition on w3c?
12:22
<mikeecb>
https://www.w3.org/TR/DOM-Level-2-Events/events.html
12:23
<annevk>
mikeecb: you want https://dom.spec.whatwg.org/
12:23
<hsivonen>
annevk: wait, what? iso-2022-jp encoder doesn't do just a Katakana by code point offset but other normalization, too?
12:23
<mikeecb>
annevk: i was looking at that too - how does whatwg that related to w3c?
12:23
<mikeecb>
i see "new Event(type [, eventInitDict])" on https://dom.spec.whatwg.org/ but not https://www.w3.org/TR/DOM-Level-2-Events/events.html
12:24
<annevk>
hsivonen: http://searchfox.org/mozilla-central/source/intl/icu/source/common/ucnv2022.cpp#1597 is an alternative way to implement NFKC for that range of code points
12:24
<annevk>
hsivonen: or did you mean something else?
12:25
<annevk>
mikeecb: WHATWG is its own thing, that produces standards implemented by browsers and other software
12:25
<annevk>
mikeecb: W3C sometimes copies our work, see https://wiki.whatwg.org/wiki/Fork_tracking
12:26
<hsivonen>
annevk: wow. I had thought half-width to full-width Katakana was a matter of subtracting a constant from code point value, but it's actually more complicated. Also the four punctuation marks.
12:27
<annevk>
hsivonen: yeah, that was the complaining from me earlier in this channel
12:28
<hsivonen>
oh. I missed that part earier
12:28
<annevk>
NFKC seems like the best solution since adding an extra table just creates more opportunities for bugs
12:29
hsivonen
goes back to adding unrelated ISO-2022-JP-only special-casing to encoding_rs
12:29
<mikeecb>
annevk: thanks! - what does w3c do that whatwg doesn't? it sounds like browsers (not ie) use whatwg as a source-of-truth instead of w3c, can you confirm this
12:30
<annevk>
mikeecb: W3C publishes many more standards than https://spec.whatwg.org/ such as CSS and WebRTC
12:31
<annevk>
mikeecb: Microsoft also uses WHATWG as a source-of-truth in my experience, but they won't publicly admit to this
12:31
<hsivonen>
mikeecb: the W3C adds patent non-aggression commitments from Members
12:32
annevk
-> lunch
12:32
<mikeecb>
annevk: thanks!
12:33
<mikeecb>
hsivonen: what's that? (in layman's)
12:35
<hsivonen>
(there may be more subtlety when it comes to being able to relatiate but) the Members who where in a WG at the time a spec got to REC, if they didn't explicitly say they don't let some of their patents to be practiced allow the implementations of the spec to practice their patents royalty-free
12:36
<annevk>
MikeSmith: if you could look into Travis for whatwg/encoding that'd be good
12:36
<hsivonen>
s/relatiate/retaliate/
12:36
<annevk>
MikeSmith: I think we basically need to check less or not use the "curl" version of the checker as it times out a lot
12:36
<MikeSmith>
oh
12:37
<MikeSmith>
I guess we need to move the checker to another server
12:37
<mikeecb>
hsivonen: interesting, thanks!
12:39
<MikeSmith>
annevk: my server has only 1GB of RAM and limited CPU so I think it may not be able to handle the load it is getting now from the checker
12:39
<MikeSmith>
anyway I will look into what else we can do
12:40
<MikeSmith>
could always go back to downloading vnu.jar and using that
12:40
<MikeSmith>
or fall back to that if times out
12:55
<annevk>
MikeSmith: only validating the HTML resources that change would do a lot
12:56
<annevk>
MikeSmith: anyway, the main problem I have right now is that it's unclear whether I can land things
12:56
<MikeSmith>
in the case of the Encoding spec, I am not sure how do I determine which HTML resources have changed
12:57
<MikeSmith>
because they’re not under version control, those files
12:57
<MikeSmith>
they are just generated by the build, right?
12:57
<annevk>
MikeSmith: yeah, I guess you'd only validate those if the Python script is changed
12:57
<MikeSmith>
yeah
12:58
<MikeSmith>
anyway for now I guess I can just file it back to using the vnu.jar file to check
12:59
<MikeSmith>
that should be more reliable
12:59
<MikeSmith>
and maybe curl has some way to automatically retry a request
12:59
<MikeSmith>
I kinda thought it did
13:00
<MikeSmith>
if it times out
13:05
<annevk>
MikeSmith: I guess you mean I should just revert the last commit?
13:05
<MikeSmith>
annevk: yeah, for now
13:06
<MikeSmith>
I can fix it right this weekend
13:07
<MikeSmith>
would first like to get a patch written up for making multipage dfn actually work
13:08
<annevk>
kk
13:34
<JonathanNeal>
What was the resolution for a shorthand for the top/left/bottom/right properties? Was there one?
15:28
<jugglinmike1>
Mek: wanderview I had an idea for Service Workers test structuring yesterday--wondering what you folks think
15:28
<jugglinmike1>
Would it be valid to call `registration.unregister` as part of the test set up logic?
15:28
<jugglinmike1>
Instead of jumping through hoops to defer that invocation until the test is complete?
15:30
<jugglinmike1>
Given that the current client won't actually unregister until unload, anyway
15:30
<wanderview>
jugglinmike1: most of the tests do have an unregister_and_register call
15:32
<jugglinmike1>
wanderview: yes, but I think they *also* need a final `unregister` call
15:32
<wanderview>
jugglinmike1: I think its good practice to try to do a final unregister, yes
15:32
<jugglinmike1>
because otherwise a subsequent run will use an old version
15:33
<jugglinmike1>
Agreed. The reason I'm bugging you now, though, is that I'm wondering if we can change what we mean by "a final unregister"
15:34
<jugglinmike1>
basically, if instead of a structure like: (1) unregister_and_register, (2) test body, (3) unregister
15:34
<jugglinmike1>
we do
15:34
<jugglinmike1>
(1) unregister_and_register_and_unregister, (2) test body
15:35
<jugglinmike1>
as I understand it, that second version will guarantee that every test run has some associated service worker, and that that worker will be unregistered when unload occurs
15:36
<jugglinmike1>
in other words, it's not necessary to try to defer the call to `unregister` to the end of the test, because it doesn
15:36
<wanderview>
jugglinmike1: I think that would be testing a weird state... and could have unexpected behavior if you transition a test state where there are no controlled clients (and some tests don't have any controlled clients)
15:36
<jugglinmike1>
t effect the current execution anyway
15:41
<jugglinmike1>
wanderview: What do you mean by "transition a test state"? Navigate to a distinct test? Or do something within the test that used unregister_and_register_and_unregister ?
15:42
<wanderview>
jugglinmike1: I mean if you immediately unregister immediately, and there are no controleld clients, then the service worker will go away
15:42
<wanderview>
jugglinmike1: and not all tests keep a controlled client throughout the test
15:43
<jugglinmike1>
oh, maybe I'm missing something about "controlled clients"
15:44
<wanderview>
jugglinmike1: the test registering the service worker is not immediately a controlled client... you need to load a frame covered by the scope, etc
15:44
<jugglinmike1>
This non-normative note is difficult for me to interpret: "It is important to note that the currently controlled service worker client's active service worker’s containing service worker registration is effective until all the service worker clients (including itself) using this service worker registration unload. "
15:45
<wanderview>
jugglinmike1: the spec defines "using the the registration" and it doesn't mean having a reference to the DOM ServiceWorkerRegsitration object... it means being controlled by the SW
15:46
<jugglinmike1>
ah, right. And to your point about iframes
15:46
<jugglinmike1>
that's a common pattern for tests--register, create an iframe, then do things within the iframe
15:46
<jugglinmike1>
and this cockemamy unregister_and_register_and_unregister would break that completely
15:48
<jugglinmike1>
okay, I'm satisfied. Thanks for walking me through that, wanderview
15:48
<wanderview>
np
15:48
<wanderview>
testing service workers is annoying :-\
15:49
<jugglinmike1>
Definitely! I am always looking for ways to make it less annoying
15:50
<jugglinmike1>
wanderview: to that end, you might have something to say about this: https://github.com/bocoup/web-platform-tests/commit/f6775c1991db37973b162d7698f04f2bf4eba80d
15:50
<jugglinmike1>
What I'm trying to do there is allow WPT to recognize files whose name match the pattern "*.service-worker.js"
15:51
<jugglinmike1>
and produce a corresponding document that will run that in a service worker
15:52
<jugglinmike1>
This could make some kinds of service worker tests easier to manage (fewer files), and would hopefully reduce the amount of duplicated (or worse, slightly-different) logic written
15:53
<jugglinmike1>
but it would also let us hook in to the current "*.any.js" convention (which currently produces tests that run in document scope and in a Dedicated Worker scope)
15:55
<jugglinmike1>
that last part was requested in November of last year: https://github.com/w3c/web-platform-tests/issues/4210
15:56
<wanderview>
jugglinmike1: sorry, not sure I am familiar enough with WPT framework to really comment
15:57
<jugglinmike1>
Understood. Probably should have asked before over-sharing like that :P
15:57
<wanderview>
no, its fine
15:57
<wanderview>
sorry, just in the middle of something so I can't look deeply
15:57
<jgraham>
jugglinmike1: Whereas I don't know enough about service workers to comment :)
15:58
<jugglinmike1>
In that case, I'm the expert and everything I write should be merged without hesitatioin
16:00
<jgraham>
Hehe.
16:01
<jgraham>
But when you have a compelte patch I'm happy to try to learn enough about SW to review it (or at least ask someone who knows). I think the idea in principle is sound.
16:02
<jugglinmike1>
thanks!
20:35
<JonathanNeal>
Hello again. What was the (or was there a) resolution for a shorthand for the top/left/bottom/right properties?