Options:
- # Session Start: Mon Jun 04 00:00:00 2007
- # Session Ident: #html-wg
- # [00:05] * Quits: hyatt (hyatt@24.6.91.161) (Quit: hyatt)
- # [00:15] * Quits: DanC_lap (connolly@128.30.52.30) (Ping timeout)
- # [00:18] * Joins: zuwiki (zuwiki@68.113.18.44)
- # [00:20] * Quits: heycam (cam@203.214.95.190) (Ping timeout)
- # [00:22] * Parts: hasather (hasather@81.235.209.174)
- # [00:26] * Joins: hasather (hasather@81.235.209.174)
- # [00:29] * Quits: xover (xover@193.157.66.5) (Connection reset by peer)
- # [00:29] * Joins: xover (xover@193.157.66.5)
- # [00:35] * Joins: DanC_lap (connolly@128.30.52.30)
- # [00:47] * Quits: Yudai (Yudai@59.147.29.149) (Ping timeout)
- # [00:50] * Quits: DanC_lap (connolly@128.30.52.30) (Ping timeout)
- # [00:51] * Quits: mw22 (chatzilla@84.41.169.151) (Ping timeout)
- # [00:53] * Quits: zuwiki (zuwiki@68.113.18.44) (Quit: Leaving)
- # [01:03] * Joins: Yudai (Yudai@59.147.16.16)
- # [01:04] * Joins: heycam (cam@130.194.72.84)
- # [01:38] * Parts: hasather (hasather@81.235.209.174)
- # [01:44] * Quits: jmb (jmb@81.86.70.47) (Ping timeout)
- # [01:52] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Ping timeout)
- # [01:56] * Joins: karl (karlcow@128.30.52.30)
- # [01:57] * Joins: jmb (jmb@81.86.70.47)
- # [01:57] <heycam> are there any methods in the html5 idl that have optional arguments?
- # [01:57] <Dashiva> I believe they use lots and lots of overloading instead
- # [01:58] * Quits: gavin_ (gavin@74.103.208.221) (Ping timeout)
- # [01:58] <heycam> ah, right
- # [01:58] <heycam> can you think of one that i can search for? (so i don't have to scour the document)
- # [01:58] <Philip`> Anything that ends with arguments which could accept 'undefined' could be counted as having optional arguments
- # [01:59] <heycam> although you can tell the difference between an argument being omitted and an 'undefined' value being passed as an argument
- # [01:59] <heycam> i was thinking just before if there are any functions that make that distinction
- # [01:59] <heycam> maybe Function.prototype.call?
- # [01:59] <Philip`> http://www.whatwg.org/specs/web-apps/current-work/#the-2d - drawImage has lots of overloading
- # [01:59] <heycam> thanks Philip`
- # [02:00] <heycam> do you know if there are any overloaded functions that discriminate based on argument type, rather than argument count?
- # [02:01] <Philip`> Oh, I misremembered the too-few-arguments things - it says "Unless other specified, if a method is passed fewer arguments than is defined for that method in its IDL definition, a NOT_SUPPORTED_ERR exception must be raised." (though that's not standard JS behaviour so maybe it should be changed)
- # [02:01] <Philip`> drawImage discriminates on HTMLImageElement vs HTMLCanvasElement
- # [02:02] <Philip`> createPattern too
- # [02:02] <Philip`> (I'm not familiar with any examples outside the canvas API, though)
- # [02:02] <heycam> (function() { return arguments.length }).call(null, undefined, undefined, undefined); // returns 3, though i guess this is a different kind of function, more like a varargs in C
- # [02:02] <heycam> k, thanks
- # [02:03] <mjs> Philip`: yeah, I think the too few arguments rule is a bad one
- # [02:03] * Joins: gavin_ (gavin@74.103.208.221)
- # [02:03] <mjs> Philip`: JS exceptions are bad sort of for the same reason as draconian parsing rules
- # [02:03] <mjs> minor implementation differences turn into fatal errors in some browsers but not all
- # [02:04] <heycam> mjs, yeah, but only if there are implementation differences :)
- # [02:04] <Philip`> Hmm, would it be good if there was a way for the APIs to complain about errors without using exceptions, so the script could carry on regardless?
- # [02:04] <mjs> heycam: I wish I could claim it's possible for browser vendors not to make mistakes
- # [02:05] <Philip`> because it's nice to know when you've done something wrong, so reporting errors is good
- # [02:05] <heycam> mjs, i know, it's the world we live in :)
- # [02:05] <mjs> Philip`: well, the other common approach is to return an error code, but multiple returns in JS are awkward
- # [02:05] <mjs> Philip`: I think logging a warning would be the best thing for browsers to do on wrong number of args (too few or too many)
- # [02:05] <Philip`> Multiple returns are easy in JS 1.7 :-)
- # [02:06] <heycam> mjs, but the statements following the incorrect function call are likely to rely on that statement functioning correctly
- # [02:06] <mjs> probably not good to rely on random mozilla-specific extensions to JS
- # [02:07] <Philip`> (But people ignore error codes by default, so they don't seem a good way to tell authors when they've done something wrong)
- # [02:07] <mjs> heycam: you'd be surprised
- # [02:07] <heycam> mjs, perhaps you write more fault tolerant scripts than i do ;)
- # [02:07] <mjs> heycam: a lot of the time, silent failure leads to a script that is very close to working right
- # [02:07] <mjs> I'm not talking about my personal code, but code that I tend to see on the web
- # [02:07] <heycam> aha
- # [02:08] <Dashiva> It depends on the case, though
- # [02:08] <mjs> a lot of pages that fail catastrophically are due to getting a JS exception in Safari and not in other browsers
- # [02:08] <Philip`> I think I remember hearing of someone having found that they could fix lots of crashes in C programs by just returning 0 for any invalid memory reads, and the programs usually carried on correctly even though the data was rubbish
- # [02:08] <Dashiva> Like doing send() in XMLHttpRequest instead of send(null) is not something to fail over
- # [02:08] <heycam> mjs, what sort of errors are they?
- # [02:08] <heycam> Dashiva, yeah that is pretty minor
- # [02:09] <mjs> heycam: often methods or properties that are missing, scope differences, differences in expected parameters, etc
- # [02:09] <Philip`> (...but I don't know (and can't find) any actual details)
- # [02:09] <mjs> heycam: a lot of the time just commenting out the offending line of JS leads to a page that mostly works
- # [02:10] <heycam> mjs, is there a way to get the webkit qt wrapper to use a proxy?
- # [02:11] <mjs> heycam: I don't know much about the Qt port
- # [02:11] <heycam> k
- # [02:12] * Quits: tH (Rob@87.102.93.94) (Quit: ChatZilla 0.9.78.1-rdmsoft [XULRunner 1.8.0.9/2006120508])
- # [02:29] * karl is reading quickly the IRC backlog for this week-end
- # [02:29] <heycam> regarding interpolating colours for gradients on canvas, it currently says: "Between each such stop, the colors and the alpha component must be linearly interpolated over the RGBA space without premultiplying the alpha value to find the color to use at that offset."
- # [02:30] <heycam> does that mean each component is separately linearly interpolated?
- # [02:30] <heycam> or could you use linear sRGB to do "nice" interpolation?
- # [02:32] * mjs shrugs
- # [02:34] <Philip`> My assumption would be that a gradient from (a,b,c,d) to (e,f,g,h) would have colour ((a+e)/2,(b+f)/2,...) at the centre, in the same colour space as all the input/output colours (via fillStyle, get/putImageData, etc)
- # [02:35] <Philip`> but the colour space is undefined (and it seems implementations use 'device RGB' rather than e.g. sRGB) so you can't really tell what it'll look like
- # [02:35] <mjs> on Windows, 'device RGB' and sRGB are for pratical purposes the same thing
- # [02:36] <Philip`> in which case it doesn't matter that the linear interpolation is not exactly defined, since it relies on other things are even less defined
- # [02:36] <mjs> though not on mac, since the gamma is different
- # [02:37] <Philip`> (but all those things ought to be defined eventually)
- # [02:37] * heycam is not a colour boffin, but just wondered if the wording implied one way or the other
- # [02:37] <Dashiva> RGB except when it's BGR...
- # [02:38] <Philip`> I'm not either, but I can't think of any other way of interpolating colours that makes sense :-)
- # [02:39] <Philip`> I suppose you could claim that since it says "the colors and the alpha component must be ..." rather than "the color must be ...", it means to split out the four components because otherwise it'd use the simpler phrasing
- # [02:40] <heycam> prolly, i'm just nit picking really
- # [03:24] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [03:44] <karl> http://www.w3.org/2007/02/dmdwa-ws/
- # [03:44] <karl> "Workshop on Declarative Models of Distributed Web Applications"
- # [03:45] <karl> 5 - 6 June 2007
- # [03:45] <karl> Dublin, Ireland
- # [03:49] <karl> http://www.w3.org/2000/09/dbwg/details?group=40318&public=1&order=org
- # [04:06] * Quits: gavin_ (gavin@74.103.208.221) (Ping timeout)
- # [04:11] * Joins: gavin_ (gavin@74.103.208.221)
- # [04:31] * Quits: dbaron (dbaron@71.198.189.81) (Quit: 8403864 bytes have been tenured, next gc will be global.)
- # [04:36] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Ping timeout)
- # [04:49] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [05:05] * Quits: mjs (mjs@17.255.100.150) (Quit: mjs)
- # [05:12] * Joins: mjs (mjs@17.255.100.150)
- # [05:15] * Joins: hyatt (hyatt@24.6.91.161)
- # [05:16] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Ping timeout)
- # [05:18] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [05:23] * Quits: hyatt (hyatt@24.6.91.161) (Quit: hyatt)
- # [06:17] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: Get thee behind me, satan.)
- # [06:32] * Joins: hyatt (hyatt@24.6.91.161)
- # [06:40] * Joins: krove (krove@71.178.130.249)
- # [07:01] * Quits: krove (krove@71.178.130.249) (Quit: krove)
- # [07:02] * Joins: Sander (svl@71.57.109.108)
- # [07:15] * Parts: icaaq (icaaaq@85.228.55.162)
- # [07:57] * Joins: frippz (frippz@193.15.86.51)
- # [08:03] * Parts: asbjornu (asbjorn@84.48.116.134)
- # [08:07] * Quits: mjs (mjs@17.255.100.150) (Quit: mjs)
- # [08:20] * Quits: Sander (svl@71.57.109.108) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
- # [08:27] * Quits: sbuluf (zzmwld@200.49.140.230) (Ping timeout)
- # [08:29] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [08:30] * Joins: sbuluf (pqe@200.49.140.234)
- # [08:55] * Joins: Zeros (Zeros-Elip@67.154.87.254)
- # [08:57] * Quits: heycam (cam@130.194.72.84) (Quit: bye)
- # [08:57] * Joins: edas (edaspet@88.191.34.123)
- # [09:28] * Joins: mjs (mjs@64.81.48.145)
- # [09:30] * Quits: karl (karlcow@128.30.52.30) (Quit: Where dwelt Ymir, or wherein did he find sustenance?)
- # [09:47] * Joins: anne (annevk@213.236.208.22)
- # [10:03] * Joins: heycam (cam@203.214.95.190)
- # [10:36] * Joins: ROBOd (robod@86.34.246.154)
- # [10:41] * Joins: mw22 (chatzilla@84.41.169.151)
- # [10:50] * Quits: mw22 (chatzilla@84.41.169.151) (Quit: Chatzilla 0.9.75.1 [SeaMonkey 1.1.1/2007031702])
- # [10:51] * Joins: mw22 (chatzilla@84.41.169.151)
- # [10:56] * Quits: Zeros (Zeros-Elip@67.154.87.254) (Quit: Leaving)
- # [11:00] * Quits: anne (annevk@213.236.208.22) (Client exited)
- # [11:00] * Joins: anne (annevk@213.236.208.22)
- # [11:35] * Quits: sbuluf (pqe@200.49.140.234) (Quit: sbuluf)
- # [11:38] * Joins: zcorpan (zcorpan@84.216.41.162)
- # [11:49] * Quits: hyatt (hyatt@24.6.91.161) (Ping timeout)
- # [12:03] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: Get thee behind me, satan.)
- # [12:05] * Joins: tH (Rob@87.102.93.94)
- # [12:35] * Quits: zcorpan (zcorpan@84.216.41.162) (Ping timeout)
- # [12:48] * Quits: ROBOd (robod@86.34.246.154) (Quit: http://www.robodesign.ro )
- # [13:09] * Joins: karl (karlcow@128.30.52.30)
- # [14:07] * Quits: Lachy (Lachlan@124.168.18.235) (Quit: This computer has gone to sleep)
- # [14:18] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [14:34] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Ping timeout)
- # [14:52] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [14:53] * Joins: ROBOd (robod@86.34.246.154)
- # [14:54] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Client exited)
- # [14:55] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [15:03] * Joins: schepers (schepers@84.73.168.194)
- # [16:09] * Joins: tH_ (Rob@87.102.12.3)
- # [16:10] * Quits: tH (Rob@87.102.93.94) (Ping timeout)
- # [16:10] * tH_ is now known as tH
- # [16:17] * Joins: olivier (ot@128.30.52.30)
- # [16:23] * Quits: frippz (frippz@193.15.86.51) (Quit: frippz)
- # [16:35] <MikeSmith> problems at freenode?
- # [16:36] <anne> wfm
- # [16:36] <edas> wfm also
- # [16:37] * Quits: edas (edaspet@88.191.34.123) (Client exited)
- # [16:38] <MikeSmith> weird ... guess I'll trying restarting Xchat
- # [16:38] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: Get thee behind me, satan.)
- # [16:39] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [16:42] * Joins: edas (edaspet@88.191.34.123)
- # [17:07] * Quits: tH (Rob@87.102.12.3) (Ping timeout)
- # [17:08] * Joins: tH (Rob@87.102.12.3)
- # [17:42] * Quits: Dashiva (noone@129.241.151.35) (Ping timeout)
- # [17:47] * Joins: Dashiva (noone@129.241.151.35)
- # [17:57] * Joins: kazuhito (kazuhito@222.151.145.30)
- # [18:02] * Quits: edas (edaspet@88.191.34.123) (Ping timeout)
- # [18:17] * Joins: asbjornu (asbjorn@84.48.116.134)
- # [18:20] * Joins: hasather (hasather@81.235.209.174)
- # [18:30] * Quits: kazuhito (kazuhito@222.151.145.30) (Quit: Quitting!)
- # [18:55] * Joins: Sander (svl@71.57.109.108)
- # [19:15] * Joins: h3h (bfults@66.162.32.234)
- # [19:34] * Joins: DanC_lap (connolly@128.30.52.30)
- # [19:38] * Joins: SeanPaul (for@213.7.63.15)
- # [19:38] <SeanPaul> Hey . what web applications are ?
- # [19:39] * Quits: tH (Rob@87.102.12.3) (Ping timeout)
- # [19:39] <Sander> think of things like gmail
- # [19:40] <Sander> although that's a rather extreme example; much simpler things would be classified as web apps, too
- # [19:53] <SeanPaul> thanks
- # [19:54] * Quits: SeanPaul (for@213.7.63.15) (Quit: SeanPaul)
- # [19:59] * Joins: tH (Rob@87.102.12.3)
- # [20:00] * Joins: kingryan (rking3@208.66.64.47)
- # [20:08] * Joins: kingryan_ (rking3@208.66.64.47)
- # [20:09] * Quits: kingryan (rking3@208.66.64.47) (Ping timeout)
- # [20:32] * Joins: edas (edaspet@88.191.34.123)
- # [20:36] * Quits: kingryan_ (rking3@208.66.64.47) (Quit: kingryan_)
- # [20:45] * Parts: asbjornu (asbjorn@84.48.116.134)
- # [20:46] * Joins: dbaron (dbaron@63.245.220.242)
- # [20:48] * Joins: kingryan (rking3@208.66.64.47)
- # [20:48] * Quits: kingryan (rking3@208.66.64.47) (Client exited)
- # [20:48] * Joins: kingryan (rking3@208.66.64.47)
- # [20:53] * Quits: laplink (link@193.157.66.93) (Quit: This computer has gone to sleep)
- # [21:24] * Joins: laplink (link@193.157.66.93)
- # [21:24] * Quits: laplink (link@193.157.66.93) (Quit: This computer has gone to sleep)
- # [21:28] * Quits: dbaron (dbaron@63.245.220.242) (Quit: 8403864 bytes have been tenured, next gc will be global.)
- # [22:01] * Joins: hyatt (hyatt@24.6.91.161)
- # [22:04] * Joins: asbjornu (asbjorn@84.48.116.134)
- # [22:07] * Joins: laplink (link@193.157.66.93)
- # [22:07] * Quits: laplink (link@193.157.66.93) (Quit: This computer has gone to sleep)
- # [22:10] * Quits: ROBOd (robod@86.34.246.154) (Quit: http://www.robodesign.ro )
- # [22:13] * Joins: laplink (link@193.157.66.93)
- # [22:28] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Client exited)
- # [22:29] * Quits: hyatt (hyatt@24.6.91.161) (Quit: hyatt)
- # [22:39] * Quits: DanC_lap (connolly@128.30.52.30) (Ping timeout)
- # [22:42] * Joins: hyatt (hyatt@24.6.91.161)
- # [22:55] * Parts: asbjornu (asbjorn@84.48.116.134)
- # [22:59] * Quits: edas (edaspet@88.191.34.123) (Ping timeout)
- # [23:24] * Joins: dbaron (dbaron@63.245.220.242)
- # [23:38] * Quits: jmb (jmb@81.86.70.47) (Quit: leaving)
- # [23:48] * Joins: Zeros (Zeros-Elip@67.154.87.254)
- # [23:53] * Joins: zcorpan (zcorpan@84.216.40.36)
- # [23:59] * Quits: tH (Rob@87.102.12.3) (Ping timeout)
- # Session Close: Tue Jun 05 00:00:00 2007
The end :)