| 01:49 | <MikeSmith> | in JavaScript, given a Content-Type header, is there some convenient way I’m not aware of for getting just the charset from that? |
| 01:50 | <MikeSmith> | I mean other than doing it manually through string manipulation |
| 04:49 | <annevk> | MikeSmith: no, but I want to add an API for that; not gonna help you now, except that in the issue there are some libraries linked |
| 05:17 | <MikeSmith> | annevk: k |
| 05:18 | <MikeSmith> | context was about using TextDecoder with the fetch API btw |
| 05:19 | <MikeSmith> | nice too see that’s in all current engines except Edge |
| 05:19 | <MikeSmith> | and I guess Edge is working on it |
| 06:15 | <annevk> | MikeSmith: see issue against mimesniff with API in the title |
| 06:31 | <MikeSmith> | annevk: ah nice thanks |
| 07:34 | <domfarolino> | annevk: When I construct a new request object with an invalid `mode`, we default to `cors`. However when I use an invalid `referrerPolicy`, a TypeError is thrown. They are both enums, yet when they don't match a valid value, one throws the other doesn't. Is this because of `fallbackMode` in the constructor? |
| 08:01 | <annevk> | domfarolino: an invalid mode would throw too |
| 08:02 | <annevk> | domfarolino: e.g., "whatever" would throw |
| 13:09 | <fxhp> | Hello, is there any tutorials on creating a custom html5lib Filter? I need one that prevents <script> tags from running, with the exception of a certain MathJax script. |
| 13:09 | <fxhp> | I know I can "bust" script tags by changing < to the hexcode |
| 13:45 | <domfarolino> | annevk: Hm I could be missing something but I cannot get it to throw in chrome `x = new Request("https://domfarolino.com", {mode: "whatever"})` |
| 13:45 | <domfarolino> | But it does throw in FF |
| 13:45 | <domfarolino> | I guess that's a bug |
| 14:23 | <annevk> | domfarolino: yeah, file and add a test if there is none? |
| 14:41 | <domfarolino> | annevk: Filed. Will look for tests |
| 14:48 | <annevk> | domfarolino++ |
| 15:39 | <domfarolino> | annevk: should this be its own file w/ -historical suffix? |
| 15:42 | <domfarolino> | or maybe not historical hmm |
| 17:48 | <annevk> | domfarolino: yeah, it's not historical, it's just testing mode |
| 17:48 | <annevk> | domfarolino: http://web-platform.test:8000/fetch/api/basic/ is probably the place |
| 17:53 | <annevk> | Seeing all the JavaScript module arguments on Twitter it is somewhat strange that we went from "1JS" to two different parse entry points that effectively require an out-of-band identifier. |