Options:
- # Session Start: Sat Nov 17 00:00:00 2012
- # Session Ident: #whatwg
- # [00:00] <GPHemsley> mimesniff says "you are allowed to ignore Content-Type in only these specific instances"
- # [00:00] <Hixie> i mean that if you don't know what the type is, then trying to work out if it's a PNG or a GIF is fine, but if you've been told it's an HTML file, trying to determine if it's a PNG or a GIF is bad.
- # [00:00] <GPHemsley> the addition of X-Content-Type-Options: nosniff will mean "you have much fewer opportunities to ignore Content-Type"
- # [00:00] <Hixie> what opportunities does it remove?
- # [00:01] * Joins: cgcardona_ (~cgcardona@64.124.34.2)
- # [00:01] * Quits: cgcardona_ (~cgcardona@64.124.34.2) (Changing host)
- # [00:01] * Joins: cgcardona_ (~cgcardona@unaffiliated/cgcardona)
- # [00:01] <GPHemsley> Hixie: The way I have it now, everything that isn't sniffing undefined/unknown content-types
- # [00:01] <Hixie> i doubt that is web-compatible
- # [00:02] <GPHemsley> Hixie: But annevk's suggested alternative is to only limit sniffing scriptable types, which is a much smaller list.
- # [00:02] <annevk> well my suggestion was to test IE
- # [00:02] <Hixie> in particular, if you receive an image/png with X-Content-Type-Options: nosniff, but it's actually a GIF, I doubt it's web-compatible to treat it as a PNG (and fail) rather than sniffing it to be a GIF.
- # [00:02] <annevk> and whoever else implements the header
- # [00:02] <GPHemsley> (But would also mean that Gecko has much farther to go to reach compliance with the spec, I think.)
- # [00:02] <Hixie> i think there is no way to spec this without actually testing it
- # [00:03] <Hixie> which means writing lots of tests and running them and works out what is implemented
- # [00:03] * Quits: cgcardona (~cgcardona@unaffiliated/cgcardona) (Ping timeout: 240 seconds)
- # [00:03] * cgcardona_ is now known as cgcardona
- # [00:03] <GPHemsley> right
- # [00:04] * Joins: jernoble_ (~jernoble@17.245.104.25)
- # [00:04] * Joins: Adawerk_ (~ada@169.241.49.57)
- # [00:06] * Quits: globbot (~logbot@lump.glob.com.au) (Ping timeout: 260 seconds)
- # [00:07] * Joins: hasather_ (~hasather_@cm-84.208.105.178.getinternet.no)
- # [00:07] * Joins: globbot (~logbot@lump.glob.com.au)
- # [00:07] * Quits: Adawerk (~ada@169.241.49.57) (Ping timeout: 245 seconds)
- # [00:10] * jernoble_ is now known as jernoble|afk
- # [00:20] * Quits: RobbertAtWork (~robbertat@2001:980:9368:1:a1c5:23f5:f3c2:c51) (Remote host closed the connection)
- # [00:21] <GPHemsley> According to http://www.browserscope.org/?category=security , X-C-T-O is only implemented in IE and Chrome
- # [00:21] <GPHemsley> Not Firefox, Opera, or Safari
- # [00:24] * Quits: cgcardona (~cgcardona@unaffiliated/cgcardona) (Quit: cgcardona)
- # [00:26] * Quits: jernoble|afk (~jernoble@17.245.104.25) (Quit: Computer has gone to sleep.)
- # [00:29] * Quits: annevk (~annevk@216.239.55.192) (Remote host closed the connection)
- # [00:29] * Quits: Maurice (copyman@5ED573FA.cm-7-6b.dynamic.ziggo.nl)
- # [00:33] * Quits: danzik171 (~danzik17@164.55.254.106) (Ping timeout: 260 seconds)
- # [00:35] * Quits: svl (~me@ip565744a7.direct-adsl.nl) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
- # [00:37] * Joins: danzik17 (~danzik17@ool-45787007.dyn.optonline.net)
- # [00:38] * Quits: yodasw16 (~yodasw16@ql1fwhide.rockfin.com) (Quit: yodasw16)
- # [00:40] * Joins: jernoble_ (~jernoble@17.245.104.25)
- # [00:42] * jernoble_ is now known as jernoble|afk
- # [00:42] * Quits: eresair (~eresair@173.247.199.2) (Remote host closed the connection)
- # [00:43] * Quits: jacobolus (~jacobolus@50-0-133-210.dsl.static.sonic.net) (Quit: Leaving...)
- # [00:43] * Joins: cgcardona (~cgcardona@unaffiliated/cgcardona)
- # [00:44] * Quits: Bass10 (~Bass10@c-76-113-194-7.hsd1.mn.comcast.net) (Quit: Leaving)
- # [00:45] * Joins: eresair (~eresair@173.247.199.2)
- # [00:48] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Ping timeout: 245 seconds)
- # [00:49] * Quits: danzik17 (~danzik17@ool-45787007.dyn.optonline.net) (Ping timeout: 268 seconds)
- # [00:50] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [00:50] * Quits: jernoble|afk (~jernoble@17.245.104.25) (Quit: Computer has gone to sleep.)
- # [00:53] * Quits: cgcardona (~cgcardona@unaffiliated/cgcardona) (Quit: cgcardona)
- # [00:54] * Joins: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net)
- # [00:59] * Joins: sicking (~sicking@c-67-180-8-184.hsd1.ca.comcast.net)
- # [01:05] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [01:05] * Quits: drublic (~drublic@frbg-4d02877c.pool.mediaWays.net) (Remote host closed the connection)
- # [01:07] * Quits: mattgiff_ (~mattgiffo@70.102.199.158) (Remote host closed the connection)
- # [01:07] * Joins: mattgifford (~mattgiffo@70.102.199.158)
- # [01:10] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Read error: Operation timed out)
- # [01:12] * Quits: mattgifford (~mattgiffo@70.102.199.158) (Ping timeout: 265 seconds)
- # [01:16] * Quits: jonlee (~jonlee@2620:149:4:1b01:4436:14e0:c915:1e0d) (Ping timeout: 246 seconds)
- # [01:25] * Quits: jsbell (jsbell@nat/google/x-wqpjuipjzsumdewc) (Quit: There's no place like home...)
- # [01:31] * Quits: othermaciej (~mjs@17.245.108.71) (Quit: othermaciej)
- # [01:32] * Quits: SimonSapin (~simon@85-170-128-18.rev.numericable.fr) (Ping timeout: 265 seconds)
- # [01:33] * Joins: othermaciej (~mjs@17.245.108.71)
- # [01:34] * Quits: eric_carlson (~ericc@adsl-67-112-12-110.dsl.anhm01.pacbell.net) (Quit: eric_carlson)
- # [01:35] * Quits: linclark (~clark@c-67-186-35-246.hsd1.pa.comcast.net) (Quit: linclark)
- # [01:43] * jonlee|afk is now known as jonlee
- # [01:44] * Joins: jonlee_ (~jonlee@2620:149:4:1b01:9564:54e5:6a8d:a05d)
- # [01:44] * Quits: tomasf (~tom@c-44dbe555.024-204-6c6b7012.cust.bredbandsbolaget.se) (Quit: tomasf)
- # [01:45] * Quits: kennyluck (~kennyluck@bb115-66-236-93.singnet.com.sg) (Quit: kennyluck)
- # [01:46] * Quits: othermaciej (~mjs@17.245.108.71) (Quit: othermaciej)
- # [01:49] * Quits: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com) (Quit: Leaving...)
- # [01:51] * Quits: cabanier (~cabanier@192.150.22.55) (Quit: Leaving.)
- # [01:53] * jonlee is now known as jonlee|afk
- # [01:55] * Joins: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com)
- # [01:55] * Quits: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com) (Read error: Connection reset by peer)
- # [01:55] <GPHemsley> It strikes me that a lot of the proposals and/or criticisms around HTML involve trying to make it more XML-like.
- # [01:55] * Joins: WeirdAl (~chatzilla@g2spf.ask.info)
- # [01:55] * Joins: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com)
- # [01:59] * Quits: necolas (~necolas@8.25.197.25) (Remote host closed the connection)
- # [02:00] * Quits: ap (~ap@2620:149:4:1b01:8ce8:72ee:7f4c:88e4) (Quit: ap)
- # [02:00] * Quits: jonlee_ (~jonlee@2620:149:4:1b01:9564:54e5:6a8d:a05d) (Ping timeout: 246 seconds)
- # [02:04] * jonlee|afk is now known as jonlee
- # [02:06] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [02:08] * Joins: eric_carlson (~ericc@adsl-67-112-12-110.dsl.anhm01.pacbell.net)
- # [02:10] * Joins: Bass10 (~Bass10@c-76-113-194-7.hsd1.mn.comcast.net)
- # [02:11] * Joins: nonge (~nonge@p5B326B47.dip.t-dialin.net)
- # [02:14] * Quits: JonathanNeal (~anonymous@38.122.109.194) (Ping timeout: 260 seconds)
- # [02:16] * Joins: cabanier (~cabanier@c-98-237-137-173.hsd1.wa.comcast.net)
- # [02:16] * jonlee is now known as jonlee|afk
- # [02:22] * Quits: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net) (Quit: The computer fell asleep)
- # [02:23] * Joins: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net)
- # [02:24] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [02:24] * Joins: annevk (~annevk@207.239.114.206)
- # [02:25] <annevk> GPHemsley: really?
- # [02:25] * Quits: jsoncorwin (~textual@c-50-131-117-90.hsd1.ca.comcast.net) (Quit: Computer has gone to sleep.)
- # [02:25] <annevk> GPHemsley: or what I mean is, where do you see that?
- # [02:26] <annevk> heycam: are you fixing Web IDL bugs again?
- # [02:26] <GPHemsley> annevk: It's not explicit.
- # [02:26] <annevk> heycam: wondering what your thoughts are on https://www.w3.org/Bugs/Public/show_bug.cgi?id=19646
- # [02:27] <heycam> annevk, hey yeah I am. (I'll get back more into it next week.)
- # [02:27] * Joins: linclark (~clark@c-67-186-35-246.hsd1.pa.comcast.net)
- # [02:27] <heycam> annevk, sorry bit busy atm, I'll take a look later
- # [02:27] * Quits: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net) (Ping timeout: 245 seconds)
- # [02:27] <annevk> fair enough
- # [02:28] <annevk> heycam: there's a bunch of things actually in your queue, they're not actually that important, I just like to move past them :p
- # [02:28] * Quits: chriseppstein (~chrisepps@99-6-85-4.lightspeed.sntcca.sbcglobal.net) (Quit: chriseppstein)
- # [02:28] <annevk> but I guess I should fix my own bugs, like username/password for URLs
- # [02:31] * jernoble is now known as jernoble|afk
- # [02:31] * jernoble|afk is now known as jernoble
- # [02:31] <annevk> We use "append" in specs quite a lot, any problems if I start using "prepend"?
- # [02:36] <heycam> yeah I'll get stuck in to them soon, sorry for the delay
- # [02:37] * Quits: tantek (~tantek@70-36-139-86.dsl.dynamic.sonic.net) (Quit: tantek)
- # [02:40] * Joins: jonlee (~jonlee@67.218.106.138)
- # [02:40] * Joins: othermaciej (~mjs@17.245.108.71)
- # [02:42] * Joins: snowfox_ben (~benschaaf@c-98-243-88-119.hsd1.mi.comcast.net)
- # [02:44] <TabAtkins> annevk: No, feel free to use prepend. I use it all the time.
- # [02:44] * Joins: smaug____ (~chatzilla@cs181151161.pp.htv.fi)
- # [02:44] <annevk> putting stuff in front feels kinda like a hack :)
- # [02:44] <annevk> but yeah, I went with it
- # [02:44] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [02:45] <TabAtkins> Sometimes that's what you gotta do!
- # [02:45] <annevk> btw man, happy b-day!
- # [02:45] <TabAtkins> Yay! It's already the day after for you, though.
- # [02:46] <divya> wahh BIRTHDAY TIMES TabAtkins?!
- # [02:46] <divya> how old are you now? 14?
- # [02:46] <divya> :)))))
- # [02:46] * divya runs
- # [02:47] <divya> HAPPY BUDDAYYYYY
- # [02:48] <TabAtkins> divya === jerk
- # [02:48] <TabAtkins> Anyway, 27 this year.
- # [02:48] <divya> :))))
- # [02:48] <divya> TabAtkins: I can be because i am older than you!
- # [02:48] <TabAtkins> Yeah, you're like 50.
- # [02:48] <divya> :)))) YOU FOUND MY SEKRIT
- # [02:49] * heycam is now known as heycam|away
- # [02:50] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Quit: yoshu)
- # [02:51] * Quits: pablof (~pablof@144.189.150.129) (Quit: ^z)
- # [02:56] * Quits: othermaciej (~mjs@17.245.108.71) (Quit: othermaciej)
- # [02:57] * Joins: kennyluck_ (~kennyluck@203.117.93.98)
- # [02:57] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 244 seconds)
- # [02:57] * kennyluck_ is now known as kennyluck
- # [02:58] * Quits: WeirdAl (~chatzilla@g2spf.ask.info) (Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032])
- # [02:59] <annevk> GPHemsley: you should look into your git thingie
- # [02:59] <annevk> GPHemsley: the "Merge branch 'master' of github.com:whatwg/xref" should not be needed
- # [02:59] <annevk> GPHemsley: at least GitHub.app never does it when I push after you have pushed something
- # [03:02] <divya> anybody know of this canvas() as value for content prop http://trac.webkit.org/changeset/134100
- # [03:02] <divya> TabAtkins: ^
- # [03:02] <divya> or hober^
- # [03:02] <TabAtkins> What about it? It's a webkit-specific more-limited version of element().
- # [03:02] <divya> no i wonder if it was proposed anywhere
- # [03:02] <TabAtkins> No, because element() is a superset of its functionality.
- # [03:03] <divya> wanted to see context to how it came to be TabAtkins. i am intrigued.
- # [03:03] <divya> o ic.
- # [03:03] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 260 seconds)
- # [03:03] * Joins: othermaciej (~mjs@17.244.29.42)
- # [03:03] * Quits: othermaciej (~mjs@17.244.29.42) (Client Quit)
- # [03:04] <TabAtkins> I dunno if it was inspired by -moz-element(), or vice versa, or if they were independent inventions at the same time, but they solve the same basic problem.
- # [03:04] <TabAtkins> Just element() can also take <img>, <video>, and other elements.
- # [03:04] <divya> well its not quite the same as per implementation at least.
- # [03:04] <TabAtkins> And, for SVG purposes, is morphing into a general way to refer to paint servers unambiguously.
- # [03:04] * Joins: MikeSmith (~MikeSmith@p15181-obmd01.tokyo.ocn.ne.jp)
- # [03:05] <divya> it has a getCSSCanvasContext and stuff
- # [03:05] <TabAtkins> Of course not, canvas() is simpler to implement, because it's exactly *one* of element()'s abilities.
- # [03:05] <divya> no i mean it is not gathering selectors to render is what i mean.
- # [03:05] <divya> which is what element() does.
- # [03:05] <TabAtkins> element() had, and will regain, a way to refer to an element without a selector.
- # [03:05] <divya> it seems to refer to a specific canvas context.
- # [03:05] <divya> o okay.
- # [03:05] <TabAtkins> So you can just create the canvas in script, never insert it, but use it as an image.
- # [03:06] <divya> right yeah thats what.
- # [03:06] <divya> that is what is happening here from test sample.
- # [03:07] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [03:13] * Joins: MikeSmith_ (~MikeSmith@s1106237.xgsspn.imtp.tachikawa.spmode.ne.jp)
- # [03:16] * Quits: MikeSmith (~MikeSmith@p15181-obmd01.tokyo.ocn.ne.jp) (Ping timeout: 268 seconds)
- # [03:16] * MikeSmith_ is now known as MikeSmith
- # [03:18] * Quits: griswold (~quassel@blackhole.space150.com) (Read error: Connection reset by peer)
- # [03:22] <kennyluck> Happy b-day, TabAtkins!
- # [03:23] <TabAtkins> Thanks!
- # [03:25] * Quits: gavinc (~gavin@50.0.77.3) (Quit: Konversation terminated!)
- # [03:26] * Quits: annevk (~annevk@207.239.114.206) (Read error: Connection reset by peer)
- # [03:26] * Joins: annevk_ (~annevk@207.239.114.206)
- # [03:33] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 252 seconds)
- # [03:35] * Quits: bholley (~bholley@c-67-180-21-133.hsd1.ca.comcast.net) (Quit: bholley)
- # [03:36] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [03:37] * Joins: say2joe1 (~say2joe@204.56.108.2)
- # [03:37] * Quits: say2joe (~say2joe@204.56.108.2) (Read error: Connection reset by peer)
- # [03:43] * Quits: linclark (~clark@c-67-186-35-246.hsd1.pa.comcast.net) (Quit: linclark)
- # [03:44] * Joins: kennyluck_ (~kennyluck@203.117.93.98)
- # [03:44] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 244 seconds)
- # [03:44] * kennyluck_ is now known as kennyluck
- # [03:44] * Quits: annevk_ (~annevk@207.239.114.206) (Remote host closed the connection)
- # [03:47] * Joins: divya1 (~nimbu@c-67-169-39-98.hsd1.ca.comcast.net)
- # [03:47] * Quits: divya (~nimbu@sjfw1.adobe.com) (Read error: Connection reset by peer)
- # [03:48] * Quits: divya1 (~nimbu@c-67-169-39-98.hsd1.ca.comcast.net) (Read error: Connection reset by peer)
- # [03:50] * Joins: divya (~nimbu@c-67-169-39-98.hsd1.ca.comcast.net)
- # [03:51] * Quits: say2joe1 (~say2joe@204.56.108.2) (Quit: Leaving.)
- # [03:55] * Joins: jsoncorwin (~textual@93.sub-70-199-66.myvzw.com)
- # [03:57] * Quits: eresair (~eresair@173.247.199.2) (Remote host closed the connection)
- # [04:00] * Joins: hdhoang (~hdhoang@113.178.25.158)
- # [04:01] * Joins: jacobolus (~jacobolus@50-0-133-210.dsl.static.sonic.net)
- # [04:04] * Quits: jsoncorwin (~textual@93.sub-70-199-66.myvzw.com) (Quit: Computer has gone to sleep.)
- # [04:07] * Joins: jsoncorwin (~textual@65.sub-70-199-69.myvzw.com)
- # [04:08] * Quits: kennyluck (~kennyluck@203.117.93.98) (Read error: Connection reset by peer)
- # [04:08] * Quits: jsoncorwin (~textual@65.sub-70-199-69.myvzw.com) (Client Quit)
- # [04:09] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [04:09] * Quits: jonlee (~jonlee@67.218.106.138) (Quit: jonlee)
- # [04:17] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Ping timeout: 240 seconds)
- # [04:24] * Joins: danzik17 (~danzik17@ool-45787007.dyn.optonline.net)
- # [04:27] * Quits: nessy (~silviapf@124-171-35-8.dyn.iinet.net.au) (Quit: Leaving.)
- # [04:28] * Joins: jonlee (~jonlee@c-71-202-46-113.hsd1.ca.comcast.net)
- # [04:32] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 276 seconds)
- # [04:35] * Quits: OnlyMax (~OnlyMax@187-126-223-141.user.veloxzone.com.br)
- # [04:36] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [04:38] * Quits: jwalden (~waldo@2620:101:8003:200:224:d7ff:fef0:8d90) (Quit: ChatZilla 0.9.87-5.1450hg.fc17 [XULRunner 16.0.2/20121026094416])
- # [04:45] * Joins: Davstern15 (Davstern15@unaffiliated/davstern15)
- # [04:45] <Davstern15> Sigh.
- # [04:46] <Davstern15> Can somebody figure out how to trim an image in JS in Canvas?
- # [04:49] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 276 seconds)
- # [04:49] <Hixie> Davstern15: how do you mean?
- # [04:50] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [04:51] <Davstern15> Basically, I have a Canvas and I want to turn it into a trimmed version where any whitespace outside of the rectangle with drawn stuff is removed.
- # [04:52] <Davstern15> That is, unknown stuff is drawn to it, and where alpha == 0, it's "blank".
- # [04:52] <Davstern15> I have been at this annoying problem for a long time now.
- # [04:52] <Davstern15> The only examples I've found are broken and/or nonsensical.
- # [04:53] <Hixie> just create a new canvas element of the right size, and drawImage() the part you want to keep into the new canvas
- # [04:53] <zewt> sounds like his question is how to determine the "right size"
- # [04:53] <Davstern15> Yes...
- # [04:53] <Davstern15> The coordinates.
- # [04:54] <Davstern15> x1, y1, x2, y2.
- # [04:54] <Hixie> ooh
- # [04:54] <Davstern15> And, preferably, packaged into an isolated function that I can just "plug and play", because I hate this particular problem.
- # [04:54] <Hixie> that's not a canvas question then :_)
- # [04:54] <Hixie> it's just a graphics question
- # [04:54] * Hixie isn't a graphics person, sorry :-)
- # [04:54] <Davstern15> It's always "something else".
- # [04:54] <zewt> well, it could be a canvas question, it's just a question of whether "trimming away empty space" is a use case for canvas
- # [04:54] <Davstern15> You could join any channel and ask something on-topic and they'd twist it to be irrelevant.
- # [04:55] <zewt> (eg. photoshop image -> trim -> transparent pixels)
- # [04:55] * Joins: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net)
- # [04:55] * Quits: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net) (Max SendQ exceeded)
- # [04:55] <Hixie> Davstern15: i'm just saying i don't know the answer, you are welcome to ask here if you want
- # [04:56] * Joins: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net)
- # [04:56] <Hixie> Davstern15: we do sometimes have graphics people here
- # [04:56] <Davstern15> Isn't it more a "logic" question?
- # [04:56] <Hixie> Davstern15: however, you may be able to get an answer easier and quicker on a channel dedicated to graphics algorithms rather than one to do with the web specifically
- # [04:56] * Quits: Bass10 (~Bass10@c-76-113-194-7.hsd1.mn.comcast.net) (Ping timeout: 256 seconds)
- # [04:57] <Davstern15> The reason I ask here is I am hoping that somebody would have a function lying around to do this.
- # [04:57] <zewt> well, doing it algorithmically is trivial; grab the image data and do the work
- # [04:57] <Davstern15> Since this is done in Canvas context, it's quite special.
- # [04:57] <Davstern15> No pun intended with "Canvas context", BTW.
- # [04:57] <Hixie> if the question is "given a set of pixels, find the smallest subset rectangle that contains all pixels with a non-zero alpha" then it's an algorithm question, the answer would presumably be the same for any graphics system, not just canvas
- # [04:57] <zewt> might not be very efficient for large images but probably the only way for 2d canvases (speaking off the top of my head so don't read too deeply, heh)
- # [04:57] <Hixie> i mean i guess we could do a brute force approach, yeah
- # [04:57] * Hixie tries
- # [04:58] <Davstern15> It doesn't need to be efficient. It's done in the beginning of the program. It's only done because Firefox sucks.
- # [04:58] <Davstern15> And cannot do a certain thing in realtime, wheras the other browsers can.
- # [04:58] <zewt> everything sucks, firefox just has the misfortune to be a subset of everything
- # [04:58] <Davstern15> So this whole thing is only for Firefox to run properly.
- # [04:58] <Davstern15> Hardware acceleration my shoes...
- # [04:59] <zewt> hardware acceleration for javascript pixel access is hard, possibly impossible
- # [04:59] <zewt> dunno if that's what you're complaining about, heh
- # [05:00] <Davstern15> No...
- # [05:00] <Davstern15> The reason this is done to begin with is that its drawing functions are so slowl.
- # [05:00] <Davstern15> -l
- # [05:00] <zewt> if you want hardware-accelerated image trimming, you probably need some clever webgl work
- # [05:00] <Davstern15> arc() = turtle speed @ Firefox.
- # [05:00] <Davstern15> WebGL Is worthless because IE doesn't support it.
- # [05:01] <zewt> itym ie is worthless because it doesn't support webgl
- # [05:01] <Davstern15> IE is the only browser that truly is fast at rendering 2D Canvas, so I love it because of that.
- # [05:01] * Quits: snowfox_ben (~benschaaf@c-98-243-88-119.hsd1.mi.comcast.net) (Quit: snowfox_ben)
- # [05:01] <Davstern15> It has actual hardware acceleration as opposed to "pretend acceleration".
- # [05:04] * Quits: kennyluck (~kennyluck@203.117.93.98) (Ping timeout: 252 seconds)
- # [05:08] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [05:10] <Hixie> Davstern15: ok
- # [05:10] <Hixie> Davstern15: here:
- # [05:11] <Hixie> one sec, goo.gl and bit.ly are being annoying
- # [05:11] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [05:12] <zewt> for a change of pace
- # [05:12] <Hixie> ok screw it
- # [05:12] <Hixie> Davstern15: go to http://software.hixie.ch/utilities/js/canvas/
- # [05:12] <Hixie> Davstern15: and click the "Download" button
- # [05:12] <Hixie> (it won't download anything)
- # [05:12] * Joins: snowfox_ben (~benschaaf@c-98-243-88-119.hsd1.mi.comcast.net)
- # [05:13] <Davstern15> Thank you very much for the effort. I will review the code now. It looks logical at first glance.
- # [05:13] * Quits: snowfox_ben (~benschaaf@c-98-243-88-119.hsd1.mi.comcast.net) (Client Quit)
- # [05:14] <Hixie> probably the most naive code of the year, but like i said, i'm no graphics person :-)
- # [05:17] <Hixie> hit download again, i made it more fun
- # [05:17] <Hixie> actually renders pretty fast on this machine, but it's stupidly overpowered
- # [05:18] <Davstern15> "naive" code?
- # [05:18] <GPHemsley> annevk: If I had to guess, I'd say GitHub.app probably automatically pulls at some point. But I'll look into it.
- # [05:19] <Hixie> Davstern15: brute-force
- # [05:19] * Quits: kennyluck (~kennyluck@203.117.93.98) (Read error: Connection reset by peer)
- # [05:19] <Hixie> Davstern15: for example, it checks all the pixels in the corner twice, once for the left and once for the top
- # [05:19] <Hixie> Davstern15: (for each corner)
- # [05:20] <Hixie> maybe checking the rows and columns at the same time would be more efficient (like, going in a spiral)
- # [05:20] <Hixie> that way you'd only need to check each pixel once
- # [05:20] <Hixie> anyway
- # [05:20] <Hixie> that's all Exercises Left To The Reader
- # [05:20] * Joins: othermaciej (~mjs@c-24-6-209-189.hsd1.ca.comcast.net)
- # [05:21] <Davstern15> Hixie: Sorry for being slow... I still have to do some unexpected things before I can sink my teeth into your nice code.
- # [05:21] <Hixie> no worries :-)
- # [05:21] <Hixie> anyway i hope it helps
- # [05:21] <Hixie> bbl
- # [05:22] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [05:22] <GPHemsley> Hixie: What is this code doing? Is the image supposed to keep moving?
- # [05:24] <GPHemsley> I mean, it looks like it's calculating the height of the image, but it keeps getting bigger again after it gets smaller...
- # [05:24] <GPHemsley> (And it hasn't stopped yet.)
- # [05:26] <GPHemsley> Hixie: Incidentally, former Mozillians on Twitter seem to love your canvas on workers proposal.
- # [05:27] * Quits: sicking (~sicking@c-67-180-8-184.hsd1.ca.comcast.net) (Quit: sicking)
- # [05:40] * Joins: kennyluck_ (~kennyluck@203.117.93.98)
- # [05:42] * Quits: kennyluck (~kennyluck@203.117.93.98) (Read error: Connection reset by peer)
- # [05:42] * kennyluck_ is now known as kennyluck
- # [05:43] <Hixie> GPHemsley: that console just runs the script over and over and over
- # [05:44] <Hixie> GPHemsley: each iteration, it draws a picture, then finds the bounding box
- # [05:49] <Davstern15> Hixie: I am going insane here... about a small detail.
- # [05:49] <Hixie> yessir
- # [05:49] <Davstern15> For some reason, tmpContext.drawImage(targetContext, 0, 0); is a "TypeMismatchError"
- # [05:50] <Hixie> until today (and therefore, not implemented by any browsers yet) you couldn't drawImage() a rendering context
- # [05:50] <Hixie> just replace targetContext with the canvas element
- # [05:50] <Davstern15> But... then how could I do that in my previous stuff?
- # [05:50] <Davstern15> And why "today"?
- # [05:51] <Hixie> i checked in a big change to the canvas spec today that, amongst many other things, lets you pass a rendering context to drawImage()
- # [05:51] <Hixie> but none of the browsers support that yet, so i doubt that's worked before
- # [05:51] <Davstern15> That is one of the more bizarre coincidences this month for me.
- # [05:51] <Hixie> you probably passed a canvas, which is the only way that used to work :-)
- # [05:51] <Hixie> heh
- # [05:51] <Davstern15> I now must check this.
- # [05:51] <Hixie> it's what GPHemsley was talking about above :-)
- # [05:51] <Hixie> GPHemsley: speaking of which, which tweets?
- # [05:52] <Hixie> Davstern15: http://html5.org/tools/web-apps-tracker?from=7508&to=7509
- # [05:52] <Davstern15> Yes, you are right. I was sending a canvas and not the context in the previous stuff.
- # [05:52] <Davstern15> Not sure why they would decide to change that, though.
- # [05:52] <Hixie> they?
- # [05:52] <GPHemsley> Hixie: https://twitter.com/jeresig/status/269653285168902145 https://twitter.com/dalmaer/status/269654501441556480
- # [05:54] <Hixie> GPHemsley: awesome, someone finally liked something i specced :-D
- # [05:54] <Hixie> it's been a whiel :-)
- # [05:55] <GPHemsley> :)
- # [05:57] <Davstern15> "Unexpected call to method or property access. "
- # [05:57] <Davstern15> Sigh.
- # [05:57] <Davstern15> I don't get what the hell it is talking about.
- # [05:58] <Davstern15> Hixie: Yes. They. I guess... you? :)
- # [05:58] * Joins: zcorpan (~zcorpan@81-231-170-159-no135.tbcn.telia.com)
- # [05:58] <Davstern15> It is ambiguous what "checked" meant in that case.
- # [05:58] <Davstern15> Maybe you meant that you passed that into the standard.
- # [06:00] <Davstern15> Please forget my last quote.
- # [06:00] <Davstern15> "Unexpected call to method or property access." was due to a stupid error.
- # [06:01] <Davstern15> Getting IndexSizeErrorsm though.
- # [06:01] <Davstern15> *,
- # [06:09] * Joins: Yuhong (~chatzilla@S01060019d1e384a3.vc.shawcable.net)
- # [06:10] <Davstern15> If I draw stuff to a context, do I have to do something special for that to apply to its associated canvas?
- # [06:13] <Davstern15> Hixie: http://pastebin.com/raw.php?i=2XASh10q
- # [06:13] <Davstern15> It seems like it ignores everything I draw.
- # [06:18] * Quits: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com) (Quit: Leaving...)
- # [06:18] * Joins: tantek (~tantek@mfb0536d0.tmodns.net)
- # [06:19] <Davstern15> Hixie: Any idea at all?
- # [06:20] * Joins: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com)
- # [06:22] * Joins: RobbertAtWork (~robbertat@212.238.236.229)
- # [06:22] <Hixie> sorry, was off watching tv
- # [06:22] <Hixie> that code looks fine to me
- # [06:23] <Hixie> returns a canvas with a rectangle on it
- # [06:23] <Davstern15> Well...
- # [06:23] <Davstern15> It doesn't seem to be...
- # [06:23] * Quits: zcorpan (~zcorpan@81-231-170-159-no135.tbcn.telia.com) (Remote host closed the connection)
- # [06:23] <Hixie> (well, returns a 32x32 square canvas of a solid colour, really)
- # [06:23] <Hixie> i posit the problem is elsewhere :-)
- # [06:23] <Hixie> re why the spec changed, it was part of a larger change enabling the use of canvas in workers
- # [06:24] <Davstern15> Wow. You are right.
- # [06:24] <Davstern15> I can't believe I make so many errors.
- # [06:24] <Davstern15> Stupid, stupid errors.
- # [06:25] * Joins: jernoble_ (~jernoble@c-67-188-109-7.hsd1.ca.comcast.net)
- # [06:26] * Quits: kennyluck (~kennyluck@203.117.93.98) (Read error: Connection reset by peer)
- # [06:26] * Quits: miketaylr (~miketaylr@cpe-70-112-101-224.austin.res.rr.com) (Quit: Linkinus - http://linkinus.com)
- # [06:27] * Quits: RobbertAtWork (~robbertat@212.238.236.229) (Ping timeout: 265 seconds)
- # [06:27] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [06:29] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Quit: yoshu)
- # [06:29] * Joins: tomasf (~tom@c-44dbe555.024-204-6c6b7012.cust.bredbandsbolaget.se)
- # [06:35] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [06:43] * Quits: tantek (~tantek@mfb0536d0.tmodns.net) (Quit: tantek)
- # [06:46] <GPHemsley> Hixie, annevk: I'm curious what your thoughts are on http://trac.tools.ietf.org/wg/websec/trac/ticket/22
- # [06:47] <GPHemsley> Davstern15: I think you're a bit hard on yourself (and others, perhaps). Making errors is how you learn.
- # [06:47] <Davstern15> Well, I am getting stuck constantly with these things and inch forward so slowly...
- # [06:48] <Davstern15> The translate() thing makes no sense either.
- # [06:48] * Quits: danja (~danny@host201-206-dynamic.9-79-r.retail.telecomitalia.it) (Ping timeout: 248 seconds)
- # [06:48] <Davstern15> testContext.scale(2, 1); = Oval but cuts off. testContext.scale(4, 1); = Nothing is drawn.
- # [06:50] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [06:51] * Joins: danja (~danny@host201-206-dynamic.9-79-r.retail.telecomitalia.it)
- # [06:57] <Davstern15> "#¤%&/()
- # [06:57] <Davstern15> WHAT?
- # [06:57] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Remote host closed the connection)
- # [06:57] <Davstern15> The MDN does a horrible job at explaining anything.
- # [06:57] <Davstern15> All I want is to draw an oval.
- # [06:57] <Davstern15> Why doesn't it let me draw an oval?
- # [07:05] <GPHemsley> hmm... it appears I broke the IRC log search, because it takes the search query as a raw regexp
- # [07:06] * Quits: jernoble_ (~jernoble@c-67-188-109-7.hsd1.ca.comcast.net) (Quit: Textual IRC Client: www.textualapp.com)
- # [07:07] * Quits: kennyluck (~kennyluck@203.117.93.98) (Quit: kennyluck)
- # [07:07] <Davstern15> This kind of stress can't be good.
- # [07:07] <Davstern15> http://jsfiddle.net/xLxM5/ <-- Okay, please tell me why this doesn't draw an arc at all.
- # [07:08] <Davstern15> I am trying to make a minimal example of what the problem is.
- # [07:08] <Davstern15> But now it won't even draw an arch without any special stuff.
- # [07:08] * Joins: nessy (~silviapf@124-171-35-8.dyn.iinet.net.au)
- # [07:09] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Quit: yoshu)
- # [07:15] * Joins: MikeSmith_ (~MikeSmith@p15181-obmd01.tokyo.ocn.ne.jp)
- # [07:19] * Quits: MikeSmith (~MikeSmith@s1106237.xgsspn.imtp.tachikawa.spmode.ne.jp) (Ping timeout: 256 seconds)
- # [07:19] * MikeSmith_ is now known as MikeSmith
- # [07:27] * Quits: nessy (~silviapf@124-171-35-8.dyn.iinet.net.au) (Quit: Leaving.)
- # [07:31] <GPHemsley> latenight bugmail ftw
- # [07:34] <Davstern15> Helping Davstern15 "ftw".
- # [07:34] <Davstern15> Looking at Davstern15's jsfiddle and figuring it out and reporting the issues ftw.
- # [07:35] <Davstern15> Hixie: BTW... I am still very grateful for your help earlier, but there is a piece missing from the puzzle.
- # [07:36] * Joins: yuuki (~kobayashi@58x158x182x50.ap58.ftth.ucom.ne.jp)
- # [07:36] * Quits: yuuki (~kobayashi@58x158x182x50.ap58.ftth.ucom.ne.jp) (Client Quit)
- # [07:39] <Davstern15> Somebody helped me already. So no need.
- # [07:41] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [07:42] * Joins: SonicX (~quassel@223.196.248.152)
- # [07:43] * Joins: kennyluck (~kennyluck@203.117.93.98)
- # [08:17] * Parts: Davstern15 (Davstern15@unaffiliated/davstern15)
- # [08:21] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Remote host closed the connection)
- # [08:22] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [08:23] * Quits: SonicX (~quassel@223.196.248.152) (Read error: Connection reset by peer)
- # [08:26] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Ping timeout: 255 seconds)
- # [08:35] * Joins: nessy (~silviapf@124-171-35-8.dyn.iinet.net.au)
- # [08:37] * Quits: danzik17 (~danzik17@ool-45787007.dyn.optonline.net) (Ping timeout: 245 seconds)
- # [08:44] * Joins: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net)
- # [08:44] * Joins: cgcardona (~cgcardona@c-24-4-198-207.hsd1.ca.comcast.net)
- # [08:44] * Quits: cgcardona (~cgcardona@c-24-4-198-207.hsd1.ca.comcast.net) (Changing host)
- # [08:44] * Joins: cgcardona (~cgcardona@unaffiliated/cgcardona)
- # [09:11] * Quits: ryuone (~ryuone@www2406uf.sakura.ne.jp) (Ping timeout: 265 seconds)
- # [09:11] * Joins: ryuone (~ryuone@www2406uf.sakura.ne.jp)
- # [09:16] * Joins: Maurice (copyman@5ED573FA.cm-7-6b.dynamic.ziggo.nl)
- # [09:18] * Quits: wakaba_ (~wakaba@119.22.102.121.dy.bbexcite.jp) (Read error: Connection reset by peer)
- # [09:19] * Joins: wakaba (~wakaba@119.22.102.121.dy.bbexcite.jp)
- # [09:20] * Joins: SimonSapin (~simon@85-170-128-18.rev.numericable.fr)
- # [09:33] * Quits: jonlee (~jonlee@c-71-202-46-113.hsd1.ca.comcast.net) (Quit: jonlee)
- # [09:36] * Joins: Ms2ger (~Ms2ger@109.133.5.192)
- # [10:01] * Joins: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net)
- # [10:03] * Quits: Yuhong (~chatzilla@S01060019d1e384a3.vc.shawcable.net) (Ping timeout: 265 seconds)
- # [10:07] * Quits: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net) (Quit: Leaving.)
- # [10:17] <Ms2ger> Oh, yay, drawImage gained steps
- # [10:19] * Quits: hallvors (~hallvord@office.oslo.opera.com) (Read error: Operation timed out)
- # [10:20] * Quits: odinho (~odinho@office.oslo.opera.com) (Ping timeout: 245 seconds)
- # [10:20] * Quits: hasather (~davidh@office.oslo.opera.com) (Ping timeout: 245 seconds)
- # [10:23] * Joins: RobbertAtWork (~robbertat@212.238.236.229)
- # [10:27] * Joins: hasather (~davidh@office.oslo.opera.com)
- # [10:28] * Quits: RobbertAtWork (~robbertat@212.238.236.229) (Ping timeout: 268 seconds)
- # [10:28] * Joins: odinho (~odinho@office.oslo.opera.com)
- # [10:28] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [10:28] * Quits: rniwa (~rniwa@2620:149:4:1b01:450c:5848:e2:fa46) (Quit: rniwa)
- # [10:28] * Joins: hallvors (~hallvord@office.oslo.opera.com)
- # [10:30] * Joins: zcorpan (~zcorpan@81-231-170-159-no135.tbcn.telia.com)
- # [10:31] * Joins: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net)
- # [10:37] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [10:43] * Joins: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net)
- # [10:51] * Joins: nonge_ (~nonge@p5B32699E.dip.t-dialin.net)
- # [10:53] * Joins: tantek (~tantek@70-36-139-86.dsl.dynamic.sonic.net)
- # [10:55] * Quits: nonge (~nonge@p5B326B47.dip.t-dialin.net) (Ping timeout: 260 seconds)
- # [11:07] * Quits: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net) (Quit: Leaving.)
- # [11:16] * Quits: ajt_ (~ajt@li181-64.members.linode.com) (Ping timeout: 248 seconds)
- # [11:22] * Joins: ajt_ (~ajt@li181-64.members.linode.com)
- # [11:25] * Quits: nessy (~silviapf@124-171-35-8.dyn.iinet.net.au) (Quit: Leaving.)
- # [11:25] * Quits: cgcardona (~cgcardona@unaffiliated/cgcardona) (Quit: cgcardona)
- # [11:43] * Quits: everton (~everton@i114-189-26-3.s10.a023.ap.plala.or.jp) (Quit: everton)
- # [11:47] * Quits: Lachy (~Lachy@84.215.19.229) (Quit: Computer has gone to sleep.)
- # [11:48] * Quits: Ms2ger (~Ms2ger@109.133.5.192) (Quit: bbl)
- # [11:48] * Joins: Lachy (~Lachy@cm-84.215.19.229.getinternet.no)
- # [12:03] * Joins: smaug____ (~chatzilla@cs181151161.pp.htv.fi)
- # [12:06] * Joins: yorick (~quassel@unaffiliated/yorick)
- # [12:07] * Joins: svl (~me@ip565744a7.direct-adsl.nl)
- # [12:24] * Joins: victor2 (~Adium@did75-14-82-236-18-74.fbx.proxad.net)
- # [12:24] * Quits: victor2 (~Adium@did75-14-82-236-18-74.fbx.proxad.net) (Client Quit)
- # [12:25] * Joins: victor2 (~Adium@did75-14-82-236-18-74.fbx.proxad.net)
- # [12:25] * Parts: victor2 (~Adium@did75-14-82-236-18-74.fbx.proxad.net)
- # [12:27] * Joins: espadrine (~thaddee_t@85-218-2-62.dclient.lsne.ch)
- # [12:31] * Joins: drublic (~drublic@frbg-5d84f02d.pool.mediaWays.net)
- # [12:36] * Joins: RobbertAtWork (~robbertat@2001:980:9368:1:65d8:658:d319:be3f)
- # [12:37] * Joins: Ms2ger (~Ms2ger@109.133.5.192)
- # [12:47] * Quits: zcorpan (~zcorpan@81-231-170-159-no135.tbcn.telia.com) (Remote host closed the connection)
- # [12:49] * Joins: smaug (~chatzilla@cs181151161.pp.htv.fi)
- # [12:50] * Quits: smaug (~chatzilla@cs181151161.pp.htv.fi) (Client Quit)
- # [12:52] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Ping timeout: 252 seconds)
- # [12:52] * Joins: smaug (~chatzilla@cs181151161.pp.htv.fi)
- # [12:52] * smaug is now known as smaug____
- # [12:52] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Client Quit)
- # [12:52] * Joins: smaug____ (~chatzilla@cs181151161.pp.htv.fi)
- # [12:57] * Quits: kennyluck (~kennyluck@203.117.93.98) (Quit: kennyluck)
- # [13:26] * Joins: Bass10 (Bass10@c-76-113-194-7.hsd1.mn.comcast.net)
- # [13:38] * Joins: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net)
- # [13:43] * Quits: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net) (Ping timeout: 255 seconds)
- # [13:43] * Joins: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net)
- # [13:43] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [13:43] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Client Quit)
- # [13:44] * Joins: jsoncorwin (~textual@236.sub-70-199-70.myvzw.com)
- # [14:01] * Quits: jsoncorwin (~textual@236.sub-70-199-70.myvzw.com) (Quit: Computer has gone to sleep.)
- # [14:01] * Joins: linclark (~clark@c-67-186-35-246.hsd1.pa.comcast.net)
- # [14:07] * Quits: danja (~danny@host201-206-dynamic.9-79-r.retail.telecomitalia.it) (Ping timeout: 245 seconds)
- # [14:08] * Joins: Erika_Musterfrau (~ident@unaffiliated/erika-mustermann/x-8069748)
- # [14:19] * Joins: danja (~danny@host70-55-dynamic.9-79-r.retail.telecomitalia.it)
- # [14:21] * Joins: izhak (~izhak@188.244.182.191)
- # [14:24] * Quits: yorick (~quassel@unaffiliated/yorick) (Read error: Connection reset by peer)
- # [14:25] * Joins: yorick (~quassel@unaffiliated/yorick)
- # [14:31] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Ping timeout: 245 seconds)
- # [15:07] * Quits: izhak (~izhak@188.244.182.191) (Ping timeout: 246 seconds)
- # [15:12] * Joins: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net)
- # [15:33] * Joins: Davstern15 (Davstern15@unaffiliated/davstern15)
- # [15:33] <Davstern15> Can you somehow set the amount of anti-aliasing for text drawn in a Canvas? Like you can in Flash?
- # [15:46] * Joins: victor2 (~Adium@did75-14-82-236-18-74.fbx.proxad.net)
- # [15:46] * Parts: victor2 (~Adium@did75-14-82-236-18-74.fbx.proxad.net)
- # [15:56] * Quits: asdf` (asdf@bigfr.klupek.org) (Ping timeout: 246 seconds)
- # [16:06] * Joins: OnlyMax (~OnlyMax@187-126-223-141.user.veloxzone.com.br)
- # [16:08] * Parts: Davstern15 (Davstern15@unaffiliated/davstern15)
- # [16:09] * Joins: skylamer` (cgskylamer@78.90.213.55)
- # [16:14] * Joins: annevk (~annevk@195.166.51.5)
- # [16:19] <annevk> GPHemsley: charset sniffing is done after you know the type of content so it seems that's a separate layer tied to sniffed/actual type
- # [16:19] <annevk> GPHemsley: extracting charset from a content-type header however may be part of your document I suppose
- # [16:19] * Quits: Ms2ger (~Ms2ger@109.133.5.192) (Ping timeout: 240 seconds)
- # [16:19] <annevk> GPHemsley: e.g. a <script> pointing to something labeled with text/html;charset=windows-1253
- # [16:27] <annevk> so the username/password stuff is slightly buggy
- # [16:28] <annevk> I need to escape / \ ? # on setting too, and also : for username
- # [16:33] <annevk> matjas: please implement the implementation status thingie in a somewhat generic way so we can reuse it :-)
- # [16:38] <annevk> Hixie: you have a stray BitmapImage in the spec
- # [16:38] <annevk> Hixie: actually you have that twice
- # [16:38] * Joins: thisgeek (~chris@cpe-204-210-135-55.hvc.res.rr.com)
- # [16:39] * Parts: thisgeek (~chris@cpe-204-210-135-55.hvc.res.rr.com)
- # [16:39] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [16:39] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Client Quit)
- # [16:41] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [16:42] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Client Quit)
- # [16:43] * Joins: kennyluck (~kennyluck@bb115-66-236-93.singnet.com.sg)
- # [16:46] * Quits: annevk (~annevk@195.166.51.5) (Ping timeout: 255 seconds)
- # [16:48] * mkf is now known as fkm
- # [16:48] * Quits: fkm (~fkm@91.214.168.160) (Changing host)
- # [16:48] * Joins: fkm (~fkm@unaffiliated/fkm)
- # [17:01] * Quits: yorick (~quassel@unaffiliated/yorick) (Remote host closed the connection)
- # [17:09] * Joins: yorick (~quassel@ip51cd0513.speed.planet.nl)
- # [17:09] * Quits: yorick (~quassel@ip51cd0513.speed.planet.nl) (Changing host)
- # [17:09] * Joins: yorick (~quassel@unaffiliated/yorick)
- # [17:15] * Joins: izhak (~izhak@188.244.182.191)
- # [17:15] * Quits: cabanier (~cabanier@c-98-237-137-173.hsd1.wa.comcast.net) (Quit: Leaving.)
- # [17:20] * Joins: danzik17 (~danzik17@ool-45787007.dyn.optonline.net)
- # [17:22] <GPHemsley> annevk, Hixie: See also page 10 of http://tools.ietf.org/agenda/82/slides/websec-2.pdf
- # [17:23] <GPHemsley> annevk: In terms of "sniffing", rather than just parsing the Content-Type header, isn't charset determination done elsewhere? Encoding, maybe?
- # [17:24] <GPHemsley> Reading the charset parameter of the Content-Type header is trivial, I think; I'm not sure that's what the issue was.
- # [17:28] * Joins: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk)
- # [17:29] * Joins: cabanier (~cabanier@c-98-237-137-173.hsd1.wa.comcast.net)
- # [17:30] <GPHemsley> TIL that LF-only linebreaks in text/* documents is a violation of the spec
- # [17:30] * Quits: henrikkok (~henrikkok@3306ds3-amb.0.fullrate.dk) (Client Quit)
- # [17:31] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [17:31] <GPHemsley> (RFC 2046)
- # [17:34] <GPHemsley> Also: "The rules
- # [17:34] <GPHemsley> regarding line breaks detailed in the previous section must also be
- # [17:34] <GPHemsley> observed -- a character set whose definition does not conform to
- # [17:34] <GPHemsley> these rules cannot be used in a MIME "text" subtype."
- # [17:38] * Quits: cabanier (~cabanier@c-98-237-137-173.hsd1.wa.comcast.net) (Quit: Leaving.)
- # [17:39] <GPHemsley> " Unrecognized subtypes of "text" should be treated as subtype "plain"
- # [17:39] <GPHemsley> as long as the MIME implementation knows how to handle the charset.
- # [17:39] <GPHemsley> Unrecognized subtypes which also specify an unrecognized charset
- # [17:39] <GPHemsley> should be treated as "application/octet- stream".
- # [17:39] <GPHemsley> "
- # [17:39] <GPHemsley> hmm
- # [17:45] * Joins: annevk (~annevk@195.166.51.5)
- # [17:45] <annevk> GPHemsley: no that issue was Larry thinking all the sniffing should be done in MIME sniff
- # [17:45] <annevk> GPHemsley: which I disagree with, that's a format matter
- # [17:46] <GPHemsley> ok
- # [17:46] <GPHemsley> so what part should I worry about?
- # [17:46] <annevk> GPHemsley: maybe parsing Content-Type
- # [17:46] <GPHemsley> including all of its parameters?
- # [17:46] <annevk> GPHemsley: yeah
- # [17:46] <GPHemsley> (not just the ones we know about)
- # [17:46] <GPHemsley> ok
- # [17:47] <annevk> GPHemsley: the stuff I mentioned earlier, whether "Content-Type:text/html;" means text/html or undefined
- # [17:48] <annevk> GPHemsley: I guess the same would go for "...:text/html;charset=utf-8;"
- # [17:48] <GPHemsley> right
- # [17:49] <annevk> pretty sure HTTP is just dead wrong there
- # [17:49] <GPHemsley> I think extraneous spaces and semicolons should be fine in the values
- # [17:49] <annevk> not sure whether they fixed that for HTTPbis, I believe I did raise it at one point on their list
- # [17:49] <GPHemsley> but I'm not sure about the separator between header name and header value
- # [17:50] <annevk> well that's a different level, ideally
- # [17:50] <GPHemsley> OK
- # [17:50] <GPHemsley> so, assuming that the header itself is formatted correctly
- # [17:50] <GPHemsley> as far as HTTP is concerned
- # [17:50] <GPHemsley> generically
- # [17:51] <GPHemsley> now... does SMTP use the same format as HTTP for headers like this?
- # [17:52] * Quits: izhak (~izhak@188.244.182.191) (Read error: Operation timed out)
- # [17:56] <GPHemsley> annevk: Do you suppose I should look specifically for certain parameters (like charset) or just treat them all generically and let downstream figure it out?
- # [17:56] <annevk> GPHemsley: I think the parsing should be generic
- # [17:57] <annevk> GPHemsley: you might want to have a shorthand for certain things though
- # [17:58] <annevk> like "give me the value of charset" (and here you need to take into account there could be multiple parameters named charset), or give me the encoding from charset (here you need to use "get an encoding" from the Encoding Standard)
- # [18:00] <GPHemsley> right... although I don't think the current version of the spec has any use for those calls
- # [18:01] <GPHemsley> oh
- # [18:01] <GPHemsley> I see you what you mean
- # [18:01] <GPHemsley> wouldn't it make sense to combine the two?
- # [18:02] <GPHemsley> as in, mimesniff handles the logic of turning a charset parameter into an encoding
- # [18:04] <annevk> yeah maybe
- # [18:04] <annevk> in that case you'd just use the algorithm from the Encoding Standard
- # [18:05] <annevk> I suppose MIME sniffing might be the right layer to address this
- # [18:05] <annevk> mimesniff tells you the MIME type and the encoding specified at the encapsulation level (e.g. HTTP)
- # [18:06] <annevk> and then it dispatches to the format layer (based on MIME type) which takes the encoding into account
- # [18:07] * Joins: yoshu (~josh@67-1-11-149.tcso.qwest.net)
- # [18:09] * Joins: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net)
- # [18:13] * Quits: yorick (~quassel@unaffiliated/yorick) (Remote host closed the connection)
- # [18:16] * Joins: yorick (~quassel@unaffiliated/yorick)
- # [18:17] * Quits: annevk (~annevk@195.166.51.5) (Ping timeout: 255 seconds)
- # [18:19] * Quits: hdhoang (~hdhoang@113.178.25.158) (Quit: Leaving.)
- # [18:19] * Quits: skylamer` (cgskylamer@78.90.213.55)
- # [18:20] * Quits: hasather_ (~hasather_@cm-84.208.105.178.getinternet.no) (Remote host closed the connection)
- # [18:51] * Joins: Davstern15 (Davstern15@unaffiliated/davstern15)
- # [18:51] <Davstern15> Can you somehow set the amount of anti-aliasing for text drawn in a Canvas? Like you can in Flash?
- # [18:54] * Parts: teleject (~christoph@cpe-70-112-219-104.austin.res.rr.com)
- # [19:08] * Quits: ^esc (~esc_ape@178.115.251.55.wireless.dyn.drei.com) (Ping timeout: 244 seconds)
- # [19:09] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [19:13] * Joins: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net)
- # [19:13] * Quits: OnlyMax (~OnlyMax@187-126-223-141.user.veloxzone.com.br)
- # [19:16] * Joins: smaug____ (~chatzilla@cs181151161.pp.htv.fi)
- # [19:17] * Quits: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net) (Quit: Computer has gone to sleep.)
- # [19:27] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Remote host closed the connection)
- # [19:28] * Joins: smaug____ (~chatzilla@cs181151161.pp.htv.fi)
- # [19:30] * Joins: hasather_ (~hasather_@cm-84.208.105.178.getinternet.no)
- # [19:35] * Quits: hasather_ (~hasather_@cm-84.208.105.178.getinternet.no) (Ping timeout: 265 seconds)
- # [19:39] * Quits: sedovsek (~robert@BSN-61-10-243.dial-up.dsl.siol.net) (Ping timeout: 256 seconds)
- # [19:57] * Quits: smaug____ (~chatzilla@cs181151161.pp.htv.fi) (Remote host closed the connection)
- # [19:58] * Joins: Druide__ (~Druid@p5B135491.dip.t-dialin.net)
- # [19:59] * Quits: Druide_ (~Druid@p5B137654.dip.t-dialin.net) (Ping timeout: 244 seconds)
- # [20:04] * Quits: Transfusion (~ravera@trivialand/player/transfusion) (Ping timeout: 246 seconds)
- # [20:05] * Quits: danzik17 (~danzik17@ool-45787007.dyn.optonline.net) (Ping timeout: 246 seconds)
- # [20:05] * Joins: danzik17 (~danzik17@ool-45787007.dyn.optonline.net)
- # [20:07] * Joins: danzik171 (~danzik17@ool-45787007.dyn.optonline.net)
- # [20:10] * Joins: Transfusion (~ravera@2402:1f00:2001:100::9563)
- # [20:10] * Joins: sedovsek (~robert@BSN-61-116-43.dial-up.dsl.siol.net)
- # [20:10] * Quits: danzik17 (~danzik17@ool-45787007.dyn.optonline.net) (Ping timeout: 246 seconds)
- # [20:14] * Quits: Zauberfisch__ (~Zauberfis@2a01:4f8:100:73c3::3) (Quit: Leaving)
- # [20:16] * Joins: smaug____ (~chatzilla@cs181151161.pp.htv.fi)
- # [20:22] * Joins: annevk (~annevk@84.241.223.154)
- # [20:23] * Joins: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net)
- # [20:23] * Quits: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net) (Max SendQ exceeded)
- # [20:23] * Joins: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net)
- # [20:23] * Quits: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net) (Max SendQ exceeded)
- # [20:24] * Joins: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net)
- # [20:30] * Quits: annevk (~annevk@84.241.223.154) (Read error: Connection reset by peer)
- # [20:32] * Quits: AryehGregor_ (~Simetrica@mediawiki/simetrical) (Read error: Connection timed out)
- # [20:32] * Quits: skcin7 (~skcin7@c-68-38-156-213.hsd1.nj.comcast.net) (Quit: Computer has gone to sleep.)
- # [20:34] * Joins: divya2 (~nimbu@sjfw1.adobe.com)
- # [20:34] * Joins: AryehGregor_ (~Simetrica@mediawiki/simetrical)
- # [20:35] * Quits: divya (~nimbu@c-67-169-39-98.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
- # [20:39] * Joins: Zauberfisch (~Zauberfis@2a01:4f8:100:73c3::3)
- # [20:42] * linclark is now known as linclark|afk
- # [20:48] <zewt> javascript "compression" needs to die a flaming death
- # [20:50] * Quits: sedovsek (~robert@BSN-61-116-43.dial-up.dsl.siol.net) (Quit: sedovsek)
- # [20:53] <Davstern15> zewt: What do you mean?
- # [20:53] <zewt> well, shooting it into the sun would be preferable, but a volcano would suffice
- # [20:53] <Davstern15> What is it?
- # [20:54] * Quits: zdobersek (~zan@cpe-46-164-23-154.dynamic.amis.net) (Quit: Leaving.)
- # [20:54] <zewt> removing whitespace from javascript and other nonsense
- # [20:56] <Davstern15> Obscurification.
- # [20:56] <Davstern15> Compilation.
- # [20:56] <Davstern15> I find it to be a necessity.
- # [20:56] <zewt> that's an odd way of saying "complete nonsense"
- # [20:58] * Joins: auchenberg (~auchenber@176.222.239.226)
- # [20:59] * Joins: asdf` (asdf@bigfr.klupek.org)
- # [21:00] * Joins: hasather_ (~hasather_@cm-84.208.105.178.getinternet.no)
- # [21:03] * Parts: Davstern15 (Davstern15@unaffiliated/davstern15)
- # [21:27] * Joins: annevk (~annevk@84.241.223.154)
- # [21:31] <annevk> MikeSmith: care to address https://www.w3.org/Bugs/Public/show_bug.cgi?id=19993 ?
- # [21:31] <annevk> MikeSmith: I guess I can do it myself
- # [21:31] * Quits: jonlee|afk (~jonlee@2620:149:4:1b01:adc5:e4a4:e9e1:7a68) (Quit: jonlee|afk)
- # [21:32] * Quits: yoshu (~josh@67-1-11-149.tcso.qwest.net) (Quit: yoshu)
- # [21:33] * Joins: Ms2ger (~Ms2ger@109.133.5.192)
- # [21:37] * Quits: manu1 (~chatzilla@pool-71-171-30-125.nwrknj.east.verizon.net) (Ping timeout: 260 seconds)
- # [21:37] * Joins: sedovsek (~robert@BSN-61-116-43.dial-up.dsl.siol.net)
- # [21:38] <annevk> fixed
- # [21:39] <annevk> Hixie: http://dvcs.w3.org/hg/url/raw-file/tip/Overview.html
- # [21:39] <annevk> Hixie: kinda interesting approach, it's at least acknowledging the copy
- # [21:41] * Quits: annevk (~annevk@84.241.223.154) (Remote host closed the connection)
- # [21:49] * Joins: bholley (~bholley@c-67-180-21-133.hsd1.ca.comcast.net)
- # [21:51] * Quits: AryehGregor_ (~Simetrica@mediawiki/simetrical) (Ping timeout: 246 seconds)
- # [21:52] * Joins: Yuhong (~chatzilla@S01060019d1e384a3.vc.shawcable.net)
- # [21:54] * Joins: AryehGregor_ (~Simetrica@5.144.48.6)
- # [21:54] * Quits: AryehGregor_ (~Simetrica@5.144.48.6) (Changing host)
- # [21:54] * Joins: AryehGregor_ (~Simetrica@mediawiki/simetrical)
- # [21:59] * Joins: annevk (~annevk@a82-161-179-17.adsl.xs4all.nl)
- # [22:05] * Quits: jacobolus (~jacobolus@50-0-133-210.dsl.static.sonic.net) (Remote host closed the connection)
- # [22:09] <annevk> GPHemsley: http://stackoverflow.com/questions/2871655/proper-mime-type-for-fonts might be of interest
- # [22:09] <annevk> GPHemsley: in general though I'm not sure why we need a MIME type here
- # [22:10] <annevk> GPHemsley: MIME types are just identifiers for formats after all, you might as well point straight to the format
- # [22:13] <Ms2ger> TabAtkins, happy (birth + 1)day
- # [22:27] * Quits: Yuhong (~chatzilla@S01060019d1e384a3.vc.shawcable.net) (Ping timeout: 240 seconds)
- # [22:30] <SimonSapin> TabAtkins: is it enough to escape just "<" ?
- # [22:33] <annevk> matjas: so for http://url.spec.whatwg.org/ you get the new icon?
- # [22:33] <annevk> SimonSapin: you don't need to escape >
- # [22:33] <annevk> SimonSapin: in HTML anyway
- # [22:34] <annevk> not needed in most of XML either
- # [22:34] <Velmont> Ms2ger: You could do that for a full year :D
- # [22:37] * Joins: nessy (~silviapf@124-171-35-8.dyn.iinet.net.au)
- # [22:37] <SimonSapin> annevk: this is for generated SVG: https://github.com/tabatkins/railroad-diagrams/blob/89b7679ae2282207cb42f353f44fbdd4f013411d/railroad-diagrams.js#L71
- # [22:37] <SimonSapin> although it is often inline SVG inside HTML
- # [22:38] <annevk> SimonSapin: seems safer to construct a Text node
- # [22:39] <annevk> SimonSapin: hmm, is the input constrained?
- # [22:40] <annevk> SimonSapin: e.g. this doesn't seem to cater for &
- # [22:40] <SimonSapin> annevk: the function above does that, this is to get a string. I guess it could be useful in a non-browser environment
- # [22:40] <SimonSapin> Tab just fixed it: https://github.com/tabatkins/railroad-diagrams/commit/96ce88eb51
- # [22:41] <SimonSapin> unconstrained input, at least for text
- # [22:41] <annevk> but I guess it's your own input
- # [22:43] <SimonSapin> it’s a lib that could be useful to other people
- # [22:46] <SimonSapin> and the same input should work with both toSVG (assigning to element.textContents) and toString (appending strings, without a DOM)
- # [22:54] <annevk> yeah, I'm thinking of using it for URLs at some point
- # [22:55] <SimonSapin> cool
- # [22:56] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [22:58] <SimonSapin> annevk: you can either keep just the JS source and have the client regenerate the SVG every time the page is loaded (as in the example page) or copy the SVG output into your document (as in css3-syntax)
- # [22:58] <SimonSapin> the latter is probably "safer" in terms of JS compat
- # [22:58] <annevk> yeah, I suppose I'll do the latter once we've decided on the syntax :)
- # [22:59] <SimonSapin> the URL syntax?
- # [23:00] <annevk> yeah
- # [23:04] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Remote host closed the connection)
- # [23:04] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [23:05] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Read error: Connection reset by peer)
- # [23:05] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [23:08] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Remote host closed the connection)
- # [23:08] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [23:11] * Joins: mattgiff_ (~mattgiffo@108.161.20.199)
- # [23:12] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Read error: Connection reset by peer)
- # [23:17] <annevk> fixed the username/password bug
- # [23:25] * Quits: Ms2ger (~Ms2ger@109.133.5.192) (Quit: nn)
- # [23:29] <GPHemsley> annevk: Yeah, I've seen that. I think having an authoritative MIME type is important. No need to throw the baby out with the bathwater.
- # [23:32] <GPHemsley> I still think it'd be appropriate to create a 'font' type
- # [23:32] <GPHemsley> especially given the existence of e.g. 'font/opentype'
- # [23:32] <GPHemsley> hsivonen doesn't seem to agree, though
- # [23:35] <GPHemsley> If not, then 'application/font-(ttf|otf)' or 'application/font-(truetype|opentype)'
- # [23:35] * Joins: jsoncorwin (~textual@150.sub-70-199-67.myvzw.com)
- # [23:35] <GPHemsley> (The key being that they start with 'application/font-')
- # [23:35] <annevk> throw what baby out?
- # [23:36] <GPHemsley> MIME types
- # [23:37] <annevk> not really sure what the benefit of a MIME type would be
- # [23:37] <GPHemsley> at all, ever?
- # [23:37] <annevk> maybe in the context of viewing the file directly?
- # [23:38] <GPHemsley> sniffing should be a backup plan, ideally
- # [23:39] <annevk> nah, it's too hard to deploy MIME types
- # [23:39] <annevk> WebVTT and cache manifests moved to sniffing too, fortunately both have a good signature
- # [23:40] <GPHemsley> what makes MIME types any harder to deploy than sniffing?
- # [23:42] <annevk> setting a MIME type on a server is hard, letting the user agent figure it out by resource inspection is easier
- # [23:42] <annevk> (far easier, in fact)
- # [23:42] <annevk> I was surprised by this too, but lots of developers don't have access to .htaccess, or don't know how to use it, etc.
- # [23:43] <annevk> and it's just a pain, see the emails from foolip with regards to media sniffing
- # [23:46] <GPHemsley> where?
- # [23:46] <zewt> also, so long as browsers do sniffing (in any particular domain), lots and lots of people will ignore them and not set them, which means nobody can ever actually depend on or require them--which limits their usefulness
- # [23:47] <GPHemsley> vicious cycle
- # [23:47] <zewt> just the usual web issues, heh
- # [23:48] <annevk> GPHemsley: whatwg list
- # [23:48] <GPHemsley> then perhaps we should be keeping a registry of signatures?
- # [23:48] <GPHemsley> (which we sort of already are)
- # [23:48] <GPHemsley> (and the Just Solve the File Format Problem people are sort of, too)
- # [23:49] <GPHemsley> (plus whatever IANA has)
- # [23:49] <GPHemsley> annevk: Approximate date?
- # [23:49] <annevk> oh dunno, like a year ago?
- # [23:49] <zewt> in the case of fonts, there's already at least "application/x-font-ttf"; i definitely would not add another MIME type to the mix that means the same thing
- # [23:49] <annevk> GPHemsley: well yeah, MIME sniff is that registry :-)
- # [23:50] <annevk> zewt: is that for truetype or opentype?
- # [23:50] <GPHemsley> annevk: There's a bazillion file formats. If we stored them all in this one document, it'd be way too long.
- # [23:50] <zewt> not for the sake of "prettiness" eg. being able to say "all font mime types look like font/foo"; there's just not much gain there, and a definite (and IMO significant) cost to adding more competing mime types
- # [23:50] <zewt> annevk: it's what nginx defaults to for *.ttf, at least
- # [23:50] <annevk> GPHemsley: not all need to be identified via sniffing
- # [23:51] <zewt> i mean, filenames matching *.ttf
- # [23:51] <zewt> oh wait, i might have added that one, heh--can't say how much research I might have done first (though I definitely didn't just make it up)
- # [23:51] <GPHemsley> annevk: Was it related to WebVTT or more in general?
- # [23:51] <zewt> guessing nothing actually cares, though
- # [23:51] <annevk> GPHemsley: that was more general, about sniffing for <video>/<source> resources
- # [23:51] <GPHemsley> zewt: I'm told there was registration in process for these fonts
- # [23:52] <annevk> zewt: application/x-font-ttf is listed on Wikipedia as most popular for TrueType
- # [23:52] <GPHemsley> zewt: http://lists.w3.org/Archives/Public/public-webfonts-wg/2011Apr/0005.html
- # [23:52] * Joins: gqlewis (~gqlewis@z65-50-128-10.ips.direcpath.com)
- # [23:52] <zewt> annevk: yeah, google says ~150k results, so it's not uncommon at least
- # [23:52] <GPHemsley> Not sure the status, though
- # [23:52] <zewt> GPHemsley: that's a lump of nonsense, at least at first glance
- # [23:53] <GPHemsley> good to know
- # [23:53] * Quits: hasather_ (~hasather_@cm-84.208.105.178.getinternet.no) (Remote host closed the connection)
- # [23:53] <zewt> if everyone's using "application/x-font-ttf", then just keep using application/x-font-ttf, at least it's consistent and on the web that matters more than most things
- # [23:53] * Quits: gqlewis (~gqlewis@z65-50-128-10.ips.direcpath.com) (Remote host closed the connection)
- # [23:54] <zewt> (of course, MIME types weren't conceived for the web, and it may be that the mime type registry is not actually appropriate for the web, or even web compatible)
- # [23:54] * Quits: mattgiff_ (~mattgiffo@108.161.20.199) (Remote host closed the connection)
- # [23:54] <annevk> GPHemsley: they can register all they want, but as long as implementations sniff I'm not sure how it matters, what the observable effect is going to be
- # [23:54] * Joins: mattgifford (~mattgiffo@108.161.20.199)
- # [23:55] <annevk> GPHemsley: if there's no observable effect, it's like typing <img/> rather than <img>, something to appease the MIME type gods who really are irrelevant when it comes to fonts, just like / in <img> is irrelevant when it comes to HTML
- # [23:55] <zewt> annevk: probably not the "observable effect" you're referring to, but the main observable effect would be to make the MIME types used for fonts less reliable (probably forever)
- # [23:55] <GPHemsley> I just want to make sure I get the most common, and I don't know what they are
- # [23:56] <GPHemsley> there are two compartments in my head for this
- # [23:56] <annevk> zewt: so did you not like aligning encoders on the &#...; behavior?
- # [23:56] <zewt> (of course, since lots of fonts on the web are probably served as octet-stream or even text/plain, it's not like it's taking something consistent and making it not, so it probably just doesn't matter)
- # [23:56] * Joins: manu1 (~chatzilla@pool-96-240-190-151.ronkva.east.verizon.net)
- # [23:56] <GPHemsley> one is the Just Work™ one, and the other is the Make It Nice™ one
- # [23:56] <zewt> annevk: not familiar with it
- # [23:56] <zewt> or don't recall off-hand anyway
- # [23:57] <zewt> GPHemsley: the web needs to be very heavily biased towards the former :)
- # [23:57] <annevk> zewt: because if we're going to have this URLQuery API, aligning URLs and <form> submission with respect to unencodable code points makes a lot of sense to me
- # [23:57] <annevk> now URLs use ? and <form> uses &#...;
- # [23:57] <GPHemsley> zewt: Yeah, but if we can skew towards Make It Nice™ without losing Just Work™, we should, IMO
- # [23:57] <annevk> but WebKit uses &#...; in URLs too
- # [23:58] <GPHemsley> zewt: Not that I'm saying we can in this case.
- # [23:58] <GPHemsley> (That remains to be seen.)
- # [23:58] <annevk> GPHemsley: I don't really see how MIME types make things nice if they're just ignored
- # [23:58] <zewt> GPHemsley: and i also think it's less "nice" to have two (or N+1) mime types in use for a file type than one, more so than the gain of the particular strings of text being pretty
- # [23:58] <annevk> GPHemsley: seems like a waste of bytes
- # [23:58] <annevk> GPHemsley: and potential for error
- # [23:59] <zewt> the key thing to remember is that (for example) application/x-font-ttf will *never go away*--it might be different if that wasn't the case, but that's the web
- # [23:59] <GPHemsley> any waste of bytes or N+1 is sacrificing Just Work™
- # [23:59] <GPHemsley> so I'm not arguing for that
- # [23:59] * Quits: mattgifford (~mattgiffo@108.161.20.199) (Ping timeout: 276 seconds)
- # Session Close: Sun Nov 18 00:00:00 2012
The end :)