| 07:41 | <zcorpan> | Domenic: re utf-16, iirc, in the era before https://encoding.spec.whatwg.org/ , if the encoding label is "utf-16", the BOM is mandatory; if the encoding label is "utf-16le" or "utf-16be", the BOM is forbidden |
| 07:43 | <annevk> | Ah yeah, that sounds about right, but that wasn't actually how anything worked |
| 08:52 | <yhirano__> | annevk: Regarding https://bugs.chromium.org/p/chromium/issues/detail?id=580796#c10, do you have any failing tests? |
| 08:53 | <annevk> | yhirano__: oh, I forgot to cc myself so I never saw the reply, looking |
| 08:54 | <annevk> | yhirano__: I don't have any failing tests |
| 08:55 | <yhirano__> | annevk: Thank you, then I will close the issue. |
| 08:55 | <annevk> | yhirano__: https://w3c-test.org/cors/redirect-preflight.htm should test the functionality |
| 08:55 | <annevk> | yhirano__: I guess that means that only Firefox doesn't implement this yet |
| 08:58 | <annevk> | yhirano__: thanks for letting me know |
| 09:00 | <yhirano__> | np, and thank you. |
| 09:00 | <yhirano__> | annevk: np, and thank you. |
| 12:29 | <smaug> | mounir: so about the mousedown/up |
| 12:31 | <smaug> | was it really designed so that mouseup isn't supposed to be dispatched at all, even if page got mousedown outside <video>? |
| 12:31 | <smaug> | or is that oversight? |
| 13:07 | <mounir> | smaug: I couldn't say for sure but likely an oversight |
| 16:22 | <ajeffrey_> | A question about https://html.spec.whatwg.org/multipage/browsers.html#dom-history-go... |
| 16:22 | <ajeffrey_> | should history.go(0) perform a security check? |
| 16:22 | <ajeffrey_> | the spec says it's the same as reload(), which does, |
| 16:23 | <ajeffrey_> | but this means that history.go(N) only performs a security check when N=0. |
| 16:27 | <annevk> | Is there some sample html5lib treewalker code somewhere I can copy-and-paste from? |
| 16:28 | <annevk> | I need to iterate over a bunch of elements parsed from a document, look up some attributes and save the contents of one element, shouldn't be very hard, but with Python I never quite know how to reverse engineer a class |
| 16:37 | <Domenic> | ajeffrey_: good question; what do browsers do? |
| 16:38 | <gsnedders> | annevk: look at anything in html5lib/filters/ |
| 16:40 | <ajeffrey_> | Domenic: I realized that was most likely going to be the answer :) |
| 16:40 | <ajeffrey_> | I'll test and find out. |
| 16:41 | <Domenic> | ^_^ |
| 16:45 | <gsnedders> | annevk: see, e..g, https://github.com/html5lib/html5lib-python/blob/master/html5lib/filters/inject_meta_charset.py |
| 16:55 | <ajeffrey_> | Domenic: both FF and chrome actually throw a security exception on any cross-origin history.go(N). |
| 16:56 | <ajeffrey_> | we never actually get as far as the spec for go, I suspect. |
| 16:57 | <annevk> | Cross-origin how? |
| 16:58 | <annevk> | gsnedders: ta, will investigate tomorrow |
| 16:58 | <ajeffrey_> | annevk: using iframe.contentWindow on a cross-origin iframe. |
| 16:59 | <annevk> | ajeffrey_: history should not be accessible per WindowProxy limitations |
| 16:59 | <ajeffrey_> | Domenic: hmm, interestingly FF and chrome disagree about same-origin history.go(0). |
| 17:00 | <ajeffrey_> | If you call iframe.contentWindow.history.go(0) in Chrome, it reloads the iframe, |
| 17:00 | <ajeffrey_> | in FF it reloads the current document. |
| 17:01 | <annevk> | ajeffrey_: then it's not cross-origin or we are missing something |
| 17:02 | <annevk> | ajeffrey_: History is not a cross-origin object per standard |
| 17:02 | <ajeffrey_> | My read of "When the go(delta) method is invoked, if delta is zero, the user agent must act as if the location.reload() method was called instead." is to reload the currently active document of the window the history came from. |
| 17:03 | <annevk> | That only matters if you can access history |
| 17:03 | <ajeffrey_> | annevk: yes, this second point is re same-origin history. |
| 17:05 | <ajeffrey_> | it's that the spec says "location.reload()" but doesn't actually say which location object to use. |
| 18:06 | <annevk> | ajeffrey_: I see, that should probably be refactored |
| 18:06 | <annevk> | ajeffrey_: I'm sorry they made you implement this, although I'm also somewhat happy we're getting all the issues logged |
| 18:13 | <ajeffrey_> | annevk: np, should I file an issue? |
| 18:13 | <annevk> | ajeffrey_: yeah, that's probably best |
| 18:13 | <ajeffrey_> | Okay, will do. |
| 18:16 | <annevk> | ajeffrey_: if you have any tests those would be good to include btw |
| 18:20 | <ajeffrey_> | annevk: OK, I'll see if I can write something. |
| 18:23 | <ajeffrey_> | annevk: is there an easy way to check to see if a document is being loaded for the first time vs a reload? |
| 18:24 | <annevk> | ajeffrey_: there is some kind of state thing in web-platform-tests, but I'm not familiar enough to give advice |
| 18:25 | <ajeffrey_> | annevk: oh yes, I could use a stash. |
| 18:32 | <annevk> | ajeffrey_: yes, that thing |
| 19:20 | <ajeffrey_> | Submitted https://github.com/whatwg/html/issues/2436 |