| 08:43 | hsivonen | could use some CC0 test cases for the Encoding Standard |
| 08:51 | <nox> | What does CC0 mean? |
| 08:55 | <hallvors> | annevk: see https://bugzilla.mozilla.org/show_bug.cgi?id=918735 - you agree this test is broken? |
| 08:55 | <hsivonen> | nox: it means copyright-wise in the Public Domain expressed in a way that's compatible with countries that don't recognize the act of placing something in the Public Domain by means other than dying and waiting for 70 years |
| 08:56 | <nox> | hsivonen: Oh that. Right. |
| 09:03 | <zcorpan> | hsivonen: https://github.com/search?q=user%3Amathiasbynens+encoding+standard has some tests (MIT though) |
| 09:46 | <hsivonen> | zcorpan: thanks. Those are single-byte only. the multibyte ones are more interesting to test |
| 09:50 | <zcorpan> | hsivonen: there's https://github.com/mathiasbynens/utf8.js/tree/master/tests and ... i suppose you know about the tests in web-platform-tests :-) |
| 09:55 | <zcorpan> | mathiasbynens: utf8.js should have "encoding standard" in its description so it shows up when searching :-) |
| 09:59 | <kochi> | I'm wondering what 'window.frames returns window' means. |
| 09:59 | <kochi> | https://html.spec.whatwg.org/multipage/browsers.html#dom-frames |
| 10:00 | <mathiasbynens> | zcorpan: done, thanks :) |
| 10:01 | <kochi> | so `window.frames === window` and `window.frames.length === window.length` |
| 10:01 | <zcorpan> | kochi: yeah |
| 10:01 | <zcorpan> | window.frames.self.frames.frames.window === self |
| 10:02 | <mathiasbynens> | hsivonen: https://github.com/mathiasbynens/utf8.js/blob/master/tests/generate-test-data.py generates reference encodings for literally every code point |
| 10:04 | <kochi> | zcorpan: isee, thanks! |
| 10:05 | <zcorpan> | except in some versions of IE i think, where frames[0] would work but window[0] would not. don't recall the details |
| 10:30 | <hsivonen> | mathiasbynens: thanks. |
| 10:31 | <hsivonen> | I guess I'll have to manually write test cases to poke at interesting invalid edge cases in multibyte encodings |
| 10:31 | <hsivonen> | for example, with UTF-8, the invalid stuff is more interesting to test than the valid stuff |
| 10:31 | <hsivonen> | particularly that the right number of REPLACEMENT CHARACTERs get emitted in the right places |
| 10:36 | <annevk> | hallvors: that test gives a 404 |
| 10:36 | <hallvors> | fix the URL :) |
| 10:37 | <annevk> | hallvors: how? |
| 10:37 | <annevk> | ah, http://w3c-test.org/XMLHttpRequest/open-url-bogus.htm |
| 10:37 | <hallvors> | not my fault that w3c-test.org has forgotten "cool URIs don't change" :-p |
| 10:38 | <annevk> | hallvors: fair |
| 10:38 | <annevk> | hallvors: we could change it to http://test:test/ instead |
| 10:39 | <hallvors> | (It's great to have a public, running instance of web-platform-test though. <3 w3c-test.org except for the changing URLs) |
| 10:40 | <hallvors> | annevk: I'm about to push an updated test |
| 10:43 | <annevk> | hsivonen: there's a number of webplatformtests written by Richard Ishida |
| 10:43 | <annevk> | hsivonen: also with contributions from Joshua Bell and myself |
| 10:44 | <annevk> | hsivonen: https://github.com/w3c/web-platform-tests/tree/master/encoding |
| 10:44 | <annevk> | hsivonen: there's also at least one PR in progress that I copied you on |
| 10:48 | <hallvors> | Ms2ger , annevk: https://github.com/w3c/web-platform-tests/pull/3072 - also added a couple more cases |
| 10:58 | <annevk> | hallvors: are you covering https://github.com/whatwg/xhr/issues/54? |
| 11:00 | <hallvors> | annevk: getting to it, I'm planning to add Boris's test to wpt |
| 11:00 | <annevk> | <3 |
| 11:00 | <hallvors> | unless this is a race and someone beats me :) |
| 11:02 | <hallvors> | And you risk inflating my ego by saying an invalid URL parsing case I came up with is "rather tricky" :) |
| 11:22 | <Ms2ger> | annevk, any reason not to merge? |
| 11:25 | <zcorpan> | hallvors: heh, well better than nobody fixing the test right |
| 11:26 | <hallvors> | zcorpan: we'll soon do pull request duels at dawn.. ;) |
| 11:30 | <zcorpan> | hallvors: maybe we can have an xhr runner for urltestdata.json? |
| 11:34 | <hallvors> | I know nothing about urltestdata.json but it sounds like a good resource and a good idea :) |
| 11:41 | <annevk> | Ms2ger: no |
| 12:11 | <hsivonen> | annevk: thanks. are Web Platform Tests in general CC0 these days? |
| 12:11 | <annevk> | hsivonen: no unfortunately not |
| 12:11 | <annevk> | hsivonen: https://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html |
| 12:11 | <hsivonen> | annevk: some of the tests in the PR are too JavaScripty for my needs |
| 12:12 | <hsivonen> | I just wrote https://github.com/hsivonen/encoding-rs/blob/master/src/euc_jp.rs#L201 |
| 12:12 | <hsivonen> | that's the kind of thing I'm looking for |
| 12:12 | <annevk> | ah yeah, they are not written with generic consumers in mind yet |
| 12:12 | <hsivonen> | (and licensed such that the license notice at the top of that file doesn't need to become more complex) |
| 12:22 | <annevk> | "Stage 1!" nice work Domenic on cancelable promises |
| 12:23 | <annevk> | Domenic: plan on tweeting the slides? |
| 12:37 | <Ms2ger> | > I think of a URL as... |
| 12:37 | Ms2ger | stops reading |
| 12:41 | <jgraham> | A burrito? |
| 12:41 | <annevk> | Ms2ger: context? |
| 12:41 | <Ms2ger> | Some webkit bug |
| 12:43 | <annevk> | Ah yeah, had actually seen that |
| 12:43 | <annevk> | Fortunately WebKit engineers ignored that and went on fixing the issue |
| 13:38 | <nox> | Where was that? Looks fun. |
| 13:44 | <annevk> | nox: https://bugs.webkit.org/show_bug.cgi?id=157153 |
| 13:49 | <nox> | annevk: At first I googled for "I think of a URL as" and all I found was a HN comment. :) |
| 15:30 | <Domenic> | annevk: not a big fan of that being publicized before I had a chance to clean up the message and supporting materials, so no, no further tweets from me. |
| 15:30 | <annevk> | Domenic: oh it was already publicized? |
| 15:30 | <annevk> | Domenic: I mostly got it from the minutes, which I assume are somewhat confidential |
| 15:31 | <Domenic> | annevk: yeah Addy tweeted some screenshot of a slide and now people are all like "new syntax boo I hate new things" |
| 15:49 | <annevk> | Domenic: ah, well if you have some free time left before the flight I'd try to enjoy the city there a bit |
| 15:49 | <annevk> | Domenic: it's quite lovely |
| 15:50 | <Domenic> | annevk: heh, just landed back in NYC. But I'll be back in June for BlinkOn, and yeah, we got to go out to a few places which was fun. |
| 16:12 | <annevk> | This US-ASCII thing is far from easy |
| 16:12 | <annevk> | Have to rewrite most of form submission... |
| 18:57 | <jyasskin> | What's the right way to phrase statements about what code is allowed to do? "X realm is allowed to Y" flows much better than "X global ..." or "X settings object ...", but both annevk and marcosc have objected to using "realm" in web specs. |
| 20:07 | <scshunt> | Hello! Do XMLHttpRequests ignore 1XX series status codes |
| 20:07 | <scshunt> | ? |
| 21:23 | <gsnedders> | annevk: https://news.ycombinator.com/item?id=11777450 I presume you've seen |