/irc-logs / freenode / #whatwg / 2011-09-23 / end

Options:

  1. # Session Start: Fri Sep 23 00:00:00 2011
  2. # Session Ident: #whatwg
  3. # [00:00] <annacc> any gtk experts out there mind helping me with a (probably simple) issue with GNUmakefile.list.am ?
  4. # [00:01] <Philip`> AryehGregor: Surely the most convenient thing would be a .js file you can drop it and that will work with perfect compatibility on all browsers with no effort
  5. # [00:01] <AryehGregor> Philip`, a) the long run counts too, b) I don't personally care about old browsers.
  6. # [00:01] <AryehGregor> The specific use-case I was thinking of only needs to run in Aurora and Chrome dev.
  7. # [00:02] <zewt> being able to have an async API for it would be nice, though that's an easy worker use case anyway
  8. # [00:03] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  9. # [00:05] <jamesr> crypto APIs should provide stuff like SHA1
  10. # [00:05] <jamesr> because authors shouldn't have to roll their own crypto. there are a ton of ways to do it wrong
  11. # [00:05] <jamesr> but what's the source data that you are trying to SHA1? something like a blob, or a data structure in JS?
  12. # [00:08] <zewt> i've wanted to get a hash of a file selected in a file input, to ask the server if it's already there; that case would want a blob, at least
  13. # [00:08] <jamesr> yeah i think there should be a way to say "gimme a sha1 of this (file or blob)" that doesn't require reading the entire thing into JS memory
  14. # [00:09] <AryehGregor> jamesr, a password, in my case.
  15. # [00:09] <zewt> well you definitely want an incremental API, so you can hash data of arbitrary size
  16. # [00:09] <AryehGregor> But it would be cool to be able to do files or blobs.
  17. # [00:09] <zewt> eg. the usual init/update/digest API
  18. # [00:09] <AryehGregor> First you want a basic API that just provides someObject.sha1(). That will cover a lot of use-cases already.
  19. # [00:10] <AryehGregor> But yeah, an incremental one would be handy too, why not.
  20. # [00:10] <jamesr> adam barth and some folks at mozilla have been looking at crypto apis
  21. # [00:10] <zewt> i'd start with the core API: digest.update/digest from blobs, and then see what can't be done with that
  22. # [00:11] <zewt> i wouldn't start with the more limited api, since you might not need that at all once you have the lower-level one
  23. # [00:11] * Quits: micheil (~micheil@195.24.233.121) (Quit: http://brandedcode.com | http://github.com/miksago)
  24. # [00:11] <zewt> eg. if you want to hash a password, use BlobBuilder + that API
  25. # [00:12] <AryehGregor> So you have to use how many lines instead of one?
  26. # [00:13] <AryehGregor> There's no reason not to expose a convenience API for the very common case where you want to hash something that you already have fully in memory.
  27. # [00:13] <AryehGregor> PHP *only* exposes such a function, and I bet some of the JS libraries that implement hash functions also do.
  28. # [00:13] <zewt> shrug, 5-6? i don't think code golfing the narrow "get a hash of a JS string" use case is a good reason to have more APIs
  29. # [00:13] <AryehGregor> I think this is a case where adding a shortcut API for the common case is a no-brainer.
  30. # [00:14] <AryehGregor> In my experience scripting, it's vastly more common to want to hash something small than something big.
  31. # [00:14] <zewt> add the core api, play around with it for a while, then decide if you really need shortcut bloat
  32. # [00:14] <zewt> (also, see how the core api wrangles out, to see what the shortcut api would look like)
  33. # [00:16] <AryehGregor> It should look like someObject.sha1(s).
  34. # [00:16] <AryehGregor> That's what other languages expose. I know PHP does off the top of my head. C libraries like OpenSSL also expose such a shortcut, SHA1() in the one I used.
  35. # [00:16] <Philip`> How do you hash a string of 16-bit units?
  36. # [00:16] <zewt> i'd have a core API as eg: hash = new SHA1(); hash.update(blob); /* maybe allow hash.update(string); */ hash.digest();
  37. # [00:17] <AryehGregor> Python seems not to have shortcuts.
  38. # [00:17] <zewt> (where hash.update(string) is the shortcut API--definitely don't need a whole separate entry point)
  39. # [00:17] <zewt> python's hashlib works very well
  40. # [00:17] <AryehGregor> Philip`, . . . hmm. Well, btoa() treats it as an array of bytes, and throws if any code unit is > 0x00ff.
  41. # [00:18] <AryehGregor> That's an awkward point, though.
  42. # [00:18] <zewt> if there's a string shortcut, i'd think the only useful thing to do would be to convert to UTF-8
  43. # [00:18] <zewt> since that's usually what you want
  44. # [00:18] <Philip`> someObject.sha1("\ud800"); // ???
  45. # [00:18] <Philip`> or anything else you can't represent in UTF-8
  46. # [00:19] <zewt> why can't you represent that in utf-8?
  47. # [00:19] <zewt> roundtrips fine in python
  48. # [00:21] <zewt> oh, python is probably storing strings as UCS-4, where that's not an incomplete codepoint
  49. # [00:22] <Philip`> http://unicode.org/faq/utf_bom.html#utf8-5
  50. # [00:24] <Philip`> The UTF-16 incompleteness matters less than that you can't represent U+D800 as a legal UTF-8 sequence
  51. # [00:24] <zewt> if it's actually a complete surrogate pair then it should be converted, of course; if it's a mismatched surrogate arguably it should either just convert it (so it roundtrips) or throw
  52. # [00:24] <zewt> (IMO, throwing to try to be as anal as unicode would like the world to be would probably be more trouble than it's worth)
  53. # [00:24] <Philip`> If this is meant to be used for comparing against hashes computed by servers, it seems like it ought to do as little magic as possible, else people will get confused by why hashes don't match and it will be impossible to debug
  54. # [00:25] <zewt> that raises a question, though: what about BlobBuilder.append? that says "writing it as UTF-8" without further elaboration
  55. # [00:25] <AryehGregor> The way btoa() works is at least not terribly hard to understand.
  56. # [00:25] <AryehGregor> Although it's a bit tricky to figure out how to convert a UTF-16 string to a form it will accept.
  57. # [00:25] <zewt> or rather, it raises the same question
  58. # [00:26] * Quits: boblet (u1921@gateway/web/irccloud.com/x-stlfojpgyzfwhriw)
  59. # [00:26] * Joins: boblet (u1921@gateway/web/irccloud.com/x-sdaxrafulcskbnsp)
  60. # [00:26] <AryehGregor> Has anyone ever pointed out that JavaScript strings are atrocities?
  61. # [00:26] <zewt> i'm not sure anyone has failed to point that out :P
  62. # [00:26] <zewt> Philip`: it's not obvious which behavior is less "magic", though
  63. # [00:26] <Philip`> All strings are atrocities
  64. # [00:27] * jernoble is now known as jernoble|afk
  65. # [00:27] <AryehGregor> Sigh. Why does introducing trivial APIs always have to involve getting bogged down in details?
  66. # [00:27] <zewt> yeah, my python is built with UCS-4 strings, so it's not a very good comparison
  67. # [00:28] <zewt> AryehGregor: well, this seems like a detail that already has to be worked out; BlobBuilder opened the door here
  68. # [00:28] <zewt> presumably whatever that does, this API would follow suit
  69. # [00:28] <Hixie> AryehGregor: your definition of "trivial" is just wrong for the web ;-)
  70. # [00:28] * Quits: Rik` (~Rik`@mozilla-paris-253-98.cnt.nerim.net) (Remote host closed the connection)
  71. # [00:29] <zewt> anyone want to raise the question for BlobBuilder on webapps? otherwise i'll try to get to writing a mail at some point
  72. # [00:30] <zewt> (mental note: don't volunteer to do something when asking if anyone else wants to do it, it's counter to the goal of not having to do it)
  73. # [00:35] <AryehGregor> Hixie, seems so.
  74. # [00:38] * Quits: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1) (Ping timeout: 244 seconds)
  75. # [00:38] * Quits: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl) (Quit: RobbertAtWork)
  76. # [00:38] * Quits: danbri (~danbri@208.70.28.214) (Remote host closed the connection)
  77. # [00:38] * Joins: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1)
  78. # [00:38] * Quits: Amorphous (jan@unaffiliated/amorphous) (Read error: Connection reset by peer)
  79. # [00:39] * jernoble|afk is now known as jernoble
  80. # [00:42] <zewt> why do lots of people @google always say "comments inline" on mailing lists, i'd expect people employed by google to know that's redundant, heh
  81. # [00:43] <Hixie> it's not just google, it seems to be anyone who uses a mail client that doesn't do threading right. Outlook, GMail, IBM's thing, etc
  82. # [00:43] * Quits: svl (~me@ip565744a7.direct-adsl.nl) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
  83. # [00:43] <zewt> gmail's threading is reasonable
  84. # [00:44] <zewt> not as good as mutt's, but well, nothing is
  85. # [00:44] <Hixie> gmail encourages top-posting
  86. # [00:44] <Hixie> and doesn't do threading at all
  87. # [00:44] <Hixie> it does conversation concatenation
  88. # [00:44] <zewt> well yes, due to putting space at the top of the mail, but i'd expect people at google to know the bogusness of that :P
  89. # [00:45] <zewt> (minus whatever crackbox on the gmail team implemented that)
  90. # [00:45] <zewt> (yeah I know regular users don't "get" inline responses, i can still grumble)
  91. # [00:47] <Hixie> what drives me even more crazy is people who don't trim their quotes
  92. # [00:47] <Hixie> which top-posters never do
  93. # [00:47] <zewt> gmail encourages that, since it hides quotes
  94. # [00:47] <Hixie> so i end up having to waste hours of my life deleting quotes when replying to e-mails in my batch e-mails
  95. # [00:55] <ap> how about overquoting in Bugzilla? :)
  96. # [00:55] * Joins: Amorphous (jan@unaffiliated/amorphous)
  97. # [00:55] * Joins: nessy (~Adium@124-168-52-143.dyn.iinet.net.au)
  98. # [00:57] <Hixie> yeah that drives me batty too
  99. # [00:57] <Hixie> why do people do it?
  100. # [00:57] <Hixie> i mean, seriosuly
  101. # [00:57] <Hixie> it takes like 2 seconds to delete context one isn't replying to
  102. # [00:58] <Philip`> IRC seems to have a good solution to the problem of overquoting - if you quote many lines then you'll get kicked for flooding
  103. # [00:59] * _bga is now known as bga_|away
  104. # [01:01] * Joins: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  105. # [01:02] * Joins: weinig_ (~weinig@17.245.88.199)
  106. # [01:03] * Quits: hasather_ (~hasather_@84.38.144.96) (Remote host closed the connection)
  107. # [01:04] * Quits: jwalden (~waldo@2620:101:8003:200:222:68ff:fe15:af5c) (Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2.18/20110621100037])
  108. # [01:04] * bga_|away is now known as bga_
  109. # [01:06] * Quits: weinig (~weinig@2620:149:4:1b01:f03d:4c1a:bb80:5aa7) (Ping timeout: 240 seconds)
  110. # [01:06] * weinig_ is now known as weinig
  111. # [01:07] * Joins: jwalden (~waldo@2620:101:8003:200:221:6aff:fe6e:d10)
  112. # [01:12] * Quits: KillerX (~anant@2620:101:8003:200:6992:deb7:82cb:276b) (Remote host closed the connection)
  113. # [01:12] * Joins: KillerX (~anant@2620:101:8003:200:6992:deb7:82cb:276b)
  114. # [01:15] <TabAtkins> If I got kicked for writing long emails, I'd have a problem.
  115. # [01:15] * Joins: davidb (~davidb@bas4-kitchener06-1128762076.dsl.bell.ca)
  116. # [01:16] <Philip`> Think of the problems that readers would be saved from, though
  117. # [01:16] * Quits: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1) (Ping timeout: 244 seconds)
  118. # [01:16] * Quits: eric_carlson (~eric@17.212.152.104) (Quit: eric_carlson)
  119. # [01:17] * Joins: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1)
  120. # [01:20] * Joins: erlehmann (~erlehmann@89.204.137.118)
  121. # [01:26] * Quits: jwalden (~waldo@2620:101:8003:200:221:6aff:fe6e:d10) (Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2.18/20110621100037])
  122. # [01:28] * Joins: jwalden (~waldo@2620:101:8003:200:221:6aff:fe6e:d10)
  123. # [01:29] * Joins: eric_carlson (~eric@17.212.155.170)
  124. # [01:34] * Quits: dydx (~dydz@adsl-75-36-191-227.dsl.pltn13.sbcglobal.net) (Quit: dydx)
  125. # [01:36] * Quits: jennb (jennb@nat/google/x-xfagvrahkhmzoktj) (Quit: jennb)
  126. # [01:38] * Quits: cygri (~cygri@109.255.150.223) (Quit: cygri)
  127. # [01:39] * Quits: annacc (~Adium@74.125.59.1) (Quit: Leaving.)
  128. # [01:43] * Quits: stefan-_ (~music@wall.wi2.uni-trier.de) (Remote host closed the connection)
  129. # [01:44] * Joins: stefan-_ (~music@wall.wi2.uni-trier.de)
  130. # [01:50] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  131. # [01:53] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Client Quit)
  132. # [01:54] * Quits: KillerX (~anant@2620:101:8003:200:6992:deb7:82cb:276b) (Quit: KillerX)
  133. # [02:04] * Quits: bezoar (~Adium@c-24-143-67-135.customer.broadstripe.net) (Quit: Leaving.)
  134. # [02:05] * jernoble is now known as jernoble|afk
  135. # [02:08] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  136. # [02:08] * Quits: othermaciej (~mjs@17.245.90.109) (Quit: othermaciej)
  137. # [02:09] * Quits: rillian_ (~rillian@150.183.119.66.static.metrobridge.net) (Remote host closed the connection)
  138. # [02:10] * Quits: ezoe (~ezoe@203-140-88-201f1.kyt1.eonet.ne.jp) (Read error: Connection reset by peer)
  139. # [02:10] * Quits: weinig (~weinig@17.245.88.199) (Remote host closed the connection)
  140. # [02:11] * Joins: weinig (~weinig@17.212.155.228)
  141. # [02:11] * Joins: othermaciej (~mjs@17.245.90.109)
  142. # [02:16] * Quits: davidb (~davidb@bas4-kitchener06-1128762076.dsl.bell.ca) (Quit: blast off!)
  143. # [02:17] * bga_ is now known as bga_|away
  144. # [02:19] * Quits: ojan (ojan@nat/google/x-feopnwkygiomjsqb) (*.net *.split)
  145. # [02:19] * Quits: jochen__ (jochen@nat/google/x-gtgvadwiikplrcdn) (*.net *.split)
  146. # [02:19] * Quits: KolakCC (~KolakCC@unaffiliated/kolakcc) (*.net *.split)
  147. # [02:20] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  148. # [02:23] * Quits: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1) (Ping timeout: 244 seconds)
  149. # [02:25] * Joins: ojan (ojan@nat/google/x-feopnwkygiomjsqb)
  150. # [02:25] * Joins: jochen__ (jochen@nat/google/x-gtgvadwiikplrcdn)
  151. # [02:25] * Joins: KolakCC (~KolakCC@unaffiliated/kolakcc)
  152. # [02:26] * bga_|away is now known as bga_
  153. # [02:26] * Joins: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1)
  154. # [02:28] * Quits: ojan (ojan@nat/google/x-feopnwkygiomjsqb) (*.net *.split)
  155. # [02:28] * Quits: jochen__ (jochen@nat/google/x-gtgvadwiikplrcdn) (*.net *.split)
  156. # [02:28] * Quits: KolakCC (~KolakCC@unaffiliated/kolakcc) (*.net *.split)
  157. # [02:32] * Quits: david_carlisle (~chatzilla@dcarlisle.demon.co.uk) (Ping timeout: 248 seconds)
  158. # [02:33] * Quits: rniwa (rniwa@nat/google/x-jylvtsrtuatzympf) (Quit: rniwa)
  159. # [02:35] * Joins: bezoar (~Adium@c-24-143-67-135.customer.broadstripe.net)
  160. # [02:35] * Quits: astearns (~anonymous@192.150.22.5) (Ping timeout: 256 seconds)
  161. # [02:38] <weinig> Hixie: I have kind of a dumb question, but I am having trouble finding the answer in the spec
  162. # [02:38] <weinig> Hixie: are <script> tags in innerHTML and insertAdjacentHTML supposed to run?
  163. # [02:39] * Joins: ojan (ojan@nat/google/x-feopnwkygiomjsqb)
  164. # [02:39] * Joins: jochen__ (jochen@nat/google/x-gtgvadwiikplrcdn)
  165. # [02:39] * Joins: KolakCC (~KolakCC@unaffiliated/kolakcc)
  166. # [02:39] * Joins: karlcow (~karl@nerval.la-grange.net)
  167. # [02:40] <TabAtkins> Pretty sure, yes.
  168. # [02:40] <weinig> TabAtkins: pretty sure it should run the scripts?
  169. # [02:41] <weinig> neither Firefox nor WebKit seem to
  170. # [02:41] <TabAtkins> I think so, at least. But I could easily be wrong.
  171. # [02:41] <TabAtkins> And I can't point you to a yay/nay in the spec.
  172. # [02:41] <weinig> that is my problem :(
  173. # [02:42] * Philip` tries to follow the behaviour of the parser-inserted flag in the spec
  174. # [02:42] * Philip` fails
  175. # [02:42] * Quits: ap (~ap@17.212.155.203) (Quit: ap)
  176. # [02:42] * bga_ is now known as bga_|away
  177. # [02:42] <Philip`> http://www.whatwg.org/specs/web-apps/current-work/multipage/images/parsing-model-overview.svg looks weird and broken in Opera
  178. # [02:46] * Quits: saba (~foo@unaffiliated/saba) (Quit: leaving)
  179. # [02:47] <roc> yes, looks like an Opera bug ... someone probably forgot to start a new path when drawing the marker
  180. # [02:48] * Quits: ojan (ojan@nat/google/x-feopnwkygiomjsqb) (*.net *.split)
  181. # [02:48] * Quits: jochen__ (jochen@nat/google/x-gtgvadwiikplrcdn) (*.net *.split)
  182. # [02:48] * Quits: KolakCC (~KolakCC@unaffiliated/kolakcc) (*.net *.split)
  183. # [02:49] * bga_|away is now known as bga_
  184. # [02:49] * Joins: MikeSmith_ (~MikeSmith@EM114-48-223-27.pool.e-mobile.ne.jp)
  185. # [02:53] * Quits: MikeSmith (~MikeSmith@EM114-48-28-16.pool.e-mobile.ne.jp) (Ping timeout: 248 seconds)
  186. # [02:53] * MikeSmith_ is now known as MikeSmith
  187. # [02:54] * Quits: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1) (Ping timeout: 244 seconds)
  188. # [02:55] * Quits: karlcow (~karl@nerval.la-grange.net) (Quit: Freedom - to walk free and own no superior.)
  189. # [02:55] * Joins: karlcow (~karl@nerval.la-grange.net)
  190. # [02:56] * Joins: benjoffe_ (~benjoffe_@r49-2-10-185.cpe.vividwireless.net.au)
  191. # [02:57] <Hixie> wirepair: it's defined, but it's a bit subtle. The answer is no for innerHTML, and I forget for insertAdjacentHTML.
  192. # [02:57] <Hixie> er
  193. # [02:57] <Hixie> weinig: ^
  194. # [02:57] <Hixie> sorry wirepair
  195. # [02:57] <weinig> thanks
  196. # [02:58] <weinig> they both say similar things about inserting the document fragment into the document
  197. # [02:58] <Hixie> gotta go right now, but if you can't work it out and need an answer, ping me again in a bit :-)
  198. # [02:58] <weinig> ok, thanks
  199. # [03:00] * bga_ is now known as bga_|away
  200. # [03:10] * Quits: dbaron (~dbaron@nat/mozilla/x-bipqgzqdipyenije) (Ping timeout: 255 seconds)
  201. # [03:13] * Joins: nattokirai (~nattokira@rtr.mozilla.or.jp)
  202. # [03:14] * bga_|away is now known as bga_
  203. # [03:22] * Joins: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1)
  204. # [03:28] * Quits: benjoffe_ (~benjoffe_@r49-2-10-185.cpe.vividwireless.net.au) (Remote host closed the connection)
  205. # [03:29] * Joins: benjoffe_ (~benjoffe_@r49-2-10-185.cpe.vividwireless.net.au)
  206. # [03:30] * Quits: MacTed (~Thud@c-24-61-62-241.hsd1.ma.comcast.net)
  207. # [03:31] * bga_ is now known as bga_|away
  208. # [03:33] * Joins: davidwalsh (~davidwals@75-135-74-55.dhcp.mdsn.wi.charter.com)
  209. # [03:35] * Joins: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net)
  210. # [03:38] * Quits: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1) (Ping timeout: 244 seconds)
  211. # [03:41] * Quits: davidwalsh (~davidwals@75-135-74-55.dhcp.mdsn.wi.charter.com) (Quit: davidwalsh)
  212. # [03:41] * Quits: benjoffe_ (~benjoffe_@r49-2-10-185.cpe.vividwireless.net.au) (Remote host closed the connection)
  213. # [03:42] * Quits: othermaciej (~mjs@17.245.90.109) (Quit: othermaciej)
  214. # [03:48] * Joins: astearns (~anonymous@c-50-132-9-217.hsd1.wa.comcast.net)
  215. # [03:49] * bga_|away is now known as bga_
  216. # [03:53] * Quits: bga_ (~bga@ppp78-37-250-11.pppoe.avangarddsl.ru) (Read error: Connection reset by peer)
  217. # [03:55] * Quits: jwalden (~waldo@2620:101:8003:200:221:6aff:fe6e:d10) (Quit: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.2.18/20110621100037])
  218. # [03:56] * Quits: divya (~divyam@c-24-18-47-160.hsd1.wa.comcast.net) (Remote host closed the connection)
  219. # [03:59] * Quits: jdong_ (~quassel@222.126.155.250) (Remote host closed the connection)
  220. # [04:08] * Quits: dave_levin (dave_levin@nat/google/x-hukkcdcetejrtxlm) (Quit: dave_levin)
  221. # [04:23] * Quits: cying (~cying@173-13-176-101-sfba.hfc.comcastbusiness.net) (Quit: cying)
  222. # [04:28] * Joins: micheil (~micheil@92.40.253.166.threembb.co.uk)
  223. # [04:41] * Quits: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net) (Ping timeout: 252 seconds)
  224. # [04:45] * Quits: jamesr (~jamesr@216.239.45.19) (Quit: jamesr)
  225. # [04:48] * Quits: roc (~chatzilla@60.234.54.74) (Ping timeout: 245 seconds)
  226. # [04:50] * Joins: sicking (~chatzilla@c-98-210-155-80.hsd1.ca.comcast.net)
  227. # [04:55] * Quits: micheil (~micheil@92.40.253.166.threembb.co.uk) (Read error: Connection reset by peer)
  228. # [04:58] * Joins: othermaciej (~mjs@c-24-6-209-189.hsd1.ca.comcast.net)
  229. # [04:59] * Quits: erlehmann (~erlehmann@89.204.137.118) (Quit: Ex-Chat)
  230. # [05:04] * Joins: davidb (~davidb@bas4-kitchener06-1128762076.dsl.bell.ca)
  231. # [05:04] * Quits: othermaciej (~mjs@c-24-6-209-189.hsd1.ca.comcast.net) (Quit: othermaciej)
  232. # [05:08] * Quits: weinig (~weinig@17.212.155.228) (Quit: weinig)
  233. # [05:13] * Joins: Rik`_ (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  234. # [05:13] * Quits: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  235. # [05:15] * Quits: tndH (~Rob@cpc16-seac19-2-0-cust234.7-2.cable.virginmedia.com) (Quit: ChatZilla 0.9.87-rdmsoft [XULRunner 1.9.0.1/2008072406])
  236. # [05:19] * Joins: danbri (~danbri@adsl-76-193-219-232.dsl.pltn13.sbcglobal.net)
  237. # [05:24] * Joins: micheil (~micheil@92.40.253.166.threembb.co.uk)
  238. # [05:29] * Joins: jochen__ (jochen@nat/google/x-ucmnkmkvhkmedjll)
  239. # [05:41] * Joins: J_Voracek (~J_Voracek@71.21.195.70)
  240. # [05:42] * Quits: J_Voracek (~J_Voracek@71.21.195.70) (Client Quit)
  241. # [05:43] * Quits: nonge_ (~nonge@p5B326563.dip.t-dialin.net) (Ping timeout: 252 seconds)
  242. # [05:45] * Quits: danbri (~danbri@adsl-76-193-219-232.dsl.pltn13.sbcglobal.net) (Remote host closed the connection)
  243. # [05:51] * Quits: sicking (~chatzilla@c-98-210-155-80.hsd1.ca.comcast.net) (Ping timeout: 276 seconds)
  244. # [05:52] * Joins: ezoe (~ezoe@112-68-244-139f1.kyt1.eonet.ne.jp)
  245. # [05:53] * Joins: othermaciej (~mjs@c-24-6-209-189.hsd1.ca.comcast.net)
  246. # [05:55] * Joins: nonge_ (~nonge@p5082B3C5.dip.t-dialin.net)
  247. # [06:02] * Joins: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net)
  248. # [06:06] * Quits: aho (~nya@fuld-590c76e7.pool.mediaWays.net) (Quit: EXEC_over.METHOD_SUBLIMATION)
  249. # [06:06] * Quits: micheil (~micheil@92.40.253.166.threembb.co.uk) (Quit: http://brandedcode.com | http://github.com/miksago)
  250. # [06:12] * Quits: davidb (~davidb@bas4-kitchener06-1128762076.dsl.bell.ca) (Quit: blast off!)
  251. # [06:17] * Joins: KillerX (~anant@70-36-146-103.dsl.dynamic.sonic.net)
  252. # [06:21] * Joins: weinig (~weinig@c-24-130-56-198.hsd1.ca.comcast.net)
  253. # [06:27] * Quits: KillerX (~anant@70-36-146-103.dsl.dynamic.sonic.net) (Quit: KillerX)
  254. # [06:40] * Joins: cying (~cying@c-71-202-136-62.hsd1.ca.comcast.net)
  255. # [06:42] * Quits: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net) (Remote host closed the connection)
  256. # [06:42] * Joins: hij1nx (~hij1nx@cpe-98-14-168-178.nyc.res.rr.com)
  257. # [06:52] * Joins: sicking (~chatzilla@c-98-210-155-80.hsd1.ca.comcast.net)
  258. # [07:03] * Joins: roc (~chatzilla@121.98.230.221)
  259. # [07:14] * Quits: CvP (~CvP@123.49.21.1) (Quit: [ UPP ] > all)
  260. # [07:32] * Quits: hij1nx (~hij1nx@cpe-98-14-168-178.nyc.res.rr.com) (Quit: hij1nx)
  261. # [07:37] * Joins: Ankheg (~Ankheg@91.224.77.4)
  262. # [07:43] * Quits: zewt (~x@c-24-62-196-44.hsd1.ma.comcast.net) (Ping timeout: 252 seconds)
  263. # [07:43] * Joins: nielsle (~nielsle@3239059-cl69.boa.fiberby.dk)
  264. # [07:46] * Quits: ezoe (~ezoe@112-68-244-139f1.kyt1.eonet.ne.jp) (Ping timeout: 260 seconds)
  265. # [07:47] * Quits: temp01 (~temp01@unaffiliated/temp01) (Ping timeout: 260 seconds)
  266. # [07:48] * Joins: temp02 (~temp01@unaffiliated/temp01)
  267. # [07:49] * Joins: CvP (~CvP@123.49.21.1)
  268. # [07:49] <hsivonen> whoa: https://twitter.com/#!/joehewitt/status/117017829861113857
  269. # [07:50] <hsivonen> https://twitter.com/#!/joehewitt/status/117017571320016897
  270. # [07:51] <Hixie> man, i can never understand what people are saying on twitter
  271. # [07:54] * Joins: smaug____ (~chatzilla@a91-154-43-18.elisa-laajakaista.fi)
  272. # [07:56] * Joins: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net)
  273. # [07:57] <roc> /on twitter/
  274. # [08:00] * Joins: maikmerten (~merten@ls5dhcp200.cs.uni-dortmund.de)
  275. # [08:01] * Joins: zewt (~x@c-24-62-196-44.hsd1.ma.comcast.net)
  276. # [08:04] * Quits: weinig (~weinig@c-24-130-56-198.hsd1.ca.comcast.net) (Quit: weinig)
  277. # [08:04] * Quits: maikmerten (~merten@ls5dhcp200.cs.uni-dortmund.de) (Remote host closed the connection)
  278. # [08:05] * Joins: maikmerten (~merten@ls5dhcp200.cs.uni-dortmund.de)
  279. # [08:06] * Quits: maikmerten (~merten@ls5dhcp200.cs.uni-dortmund.de) (Remote host closed the connection)
  280. # [08:09] * Joins: brucel (~brucel@cpc4-smal11-2-0-cust879.perr.cable.virginmedia.com)
  281. # [08:09] * Joins: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp)
  282. # [08:31] * Joins: zcorpan (~zcorpan@node-7ahkvq28vc65m79q2.a0.ipv6.opera.com)
  283. # [08:35] * Quits: Bass10 (~Bass10@c-76-113-194-7.hsd1.mn.comcast.net) (Ping timeout: 255 seconds)
  284. # [08:49] * Joins: MikeSmith_ (~MikeSmith@EM111-191-246-56.pool.e-mobile.ne.jp)
  285. # [08:53] * Quits: MikeSmith (~MikeSmith@EM114-48-223-27.pool.e-mobile.ne.jp) (Ping timeout: 256 seconds)
  286. # [08:53] * MikeSmith_ is now known as MikeSmith
  287. # [08:54] * Quits: nattokirai (~nattokira@rtr.mozilla.or.jp) (Quit: nattokirai)
  288. # [08:58] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  289. # [09:01] * Joins: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl)
  290. # [09:01] * Joins: woef (~woef@91.183.84.141)
  291. # [09:01] * Joins: Kellen` (~Kellen@194-17-8-94.customer.telia.com)
  292. # [09:02] * Quits: CvP (~CvP@123.49.21.1) (Quit: [ UPP ] > all)
  293. # [09:06] * Joins: rimantas (~rimliu@93.93.57.193)
  294. # [09:06] * Quits: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net) (Ping timeout: 255 seconds)
  295. # [09:06] * Joins: mishunov (~spliter@77.88.72.162)
  296. # [09:12] * Joins: ZombieLoffe (ZombieL@unaffiliated/zombieloffe)
  297. # [09:21] * Joins: MrOpposif (~MrOpposit@c-84a7e253.5628737--62697410.cust.bredbandsbolaget.se)
  298. # [09:22] * Quits: MrOpposif (~MrOpposit@c-84a7e253.5628737--62697410.cust.bredbandsbolaget.se) (Changing host)
  299. # [09:22] * Joins: MrOpposif (~MrOpposit@unaffiliated/mropposite)
  300. # [09:23] * Quits: MrOpposite (~MrOpposit@unaffiliated/mropposite) (Ping timeout: 260 seconds)
  301. # [09:23] * MrOpposif is now known as MrOpposite
  302. # [09:26] * Joins: agektmr (~Adium@p4017-ipbf2207marunouchi.tokyo.ocn.ne.jp)
  303. # [09:27] * Joins: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net)
  304. # [09:32] * Quits: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net) (Ping timeout: 260 seconds)
  305. # [09:35] * Quits: cying (~cying@c-71-202-136-62.hsd1.ca.comcast.net) (Quit: cying)
  306. # [09:35] * Joins: zdobersek (~zan@90.157.247.37)
  307. # [09:39] * Joins: cying (~cying@c-71-202-136-62.hsd1.ca.comcast.net)
  308. # [09:39] * Quits: cying (~cying@c-71-202-136-62.hsd1.ca.comcast.net) (Client Quit)
  309. # [09:43] * Joins: rtuin (~rtuin@D57D6C6A.static.ziggozakelijk.nl)
  310. # [09:47] * Quits: lhnz (~lhnz@188-223-83-48.zone14.bethere.co.uk) (Ping timeout: 252 seconds)
  311. # [09:48] * Joins: lhnz (~lhnz@188-223-83-48.zone14.bethere.co.uk)
  312. # [09:48] <Kellen`> hsivonen: another recommendation for validator.nu: error codes in JSON output so that users can catch and report errors consistently if the message texts change
  313. # [09:49] * Joins: Ms2ger (~Ms2ger@91.181.20.245)
  314. # [09:50] <hsivonen> Kellen`: yeah, well, that would require having the capability to propagate codes. it's currently SAX ErrorHandler-based
  315. # [09:51] <hsivonen> Hixie: he seems to be saying that SemWeb stuff becomes more important when browsers diminish
  316. # [09:51] <hsivonen> (diminish in the sense that native iOS apps take over)
  317. # [09:55] * Joins: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net)
  318. # [09:56] * Quits: sicking (~chatzilla@c-98-210-155-80.hsd1.ca.comcast.net) (Ping timeout: 260 seconds)
  319. # [10:00] * Quits: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net) (Ping timeout: 255 seconds)
  320. # [10:01] * Joins: svl (~me@ip565744a7.direct-adsl.nl)
  321. # [10:05] * Quits: reggna (~reggna@godis.olf.sgsnet.se) (Read error: Operation timed out)
  322. # [10:06] * Joins: micheil (~micheil@92.40.253.166.threembb.co.uk)
  323. # [10:07] * Joins: reggna (~reggna@godis.olf.sgsnet.se)
  324. # [10:07] <Kellen`> hsivonen: okay, that makes sense. thanks
  325. # [10:14] * Rik`_ is now known as Rik`
  326. # [10:15] * Joins: cygri (~cygri@109.255.150.223)
  327. # [10:16] * Quits: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl) (Quit: RobbertAtWork)
  328. # [10:16] * Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)
  329. # [10:17] * Joins: ojan (ojan@nat/google/x-feopnwkygiomjsqb)
  330. # [10:17] * Joins: KolakCC (~KolakCC@unaffiliated/kolakcc)
  331. # [10:18] * Quits: agektmr (~Adium@p4017-ipbf2207marunouchi.tokyo.ocn.ne.jp) (Quit: Leaving.)
  332. # [10:24] * Quits: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp) (Remote host closed the connection)
  333. # [10:25] <Ms2ger> "Authors should not, but may"
  334. # [10:30] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  335. # [10:35] <MikeSmith> Kellen`: fwiw, the W3C systems team has also ask for error IDs, for localization purposes
  336. # [10:35] <MikeSmith> I told them the same thing that hsivonen told you
  337. # [10:36] <MikeSmith> but they've told me they are planning on trying to add them, and contributing a patch
  338. # [10:36] <MikeSmith> I don't quite know how they plan to do it, but I think they have someone assigned to work on it
  339. # [10:37] <Kellen`> MikeSmith: you could use a properties file for all the error strings and do the localization on output from the webservice
  340. # [10:37] <MikeSmith> yeah
  341. # [10:37] <Kellen`> messy, but it'd achieve the purpose
  342. # [10:37] <MikeSmith> I think hsivonen discusses that approach in his thesis, actually
  343. # [10:38] <Kellen`> haven't read it yet, ha
  344. # [10:38] <MikeSmith> it's a good read
  345. # [10:38] <MikeSmith> http://hsivonen.iki.fi/thesis/html5-conformance-checker.xhtml
  346. # [10:38] <MikeSmith> though some of the code has changed considerably since the time when he wrote that
  347. # [10:39] <MikeSmith> for one thing, I think he wrote it before he implemented the validator.nu conforming HTML5 parser
  348. # [10:40] <MikeSmith> http://hsivonen.iki.fi/thesis/html5-conformance-checker.xhtml#localizability
  349. # [10:40] <MikeSmith> that part discusses the error messages
  350. # [10:41] <MikeSmith> and "reverse templating"
  351. # [10:41] <Kellen`> thanks, yeah that was exactly what i was thinking
  352. # [10:42] <Kellen`> i'm using the parser internally so the localization doesn't matter so much, but it'd be nice not to have to update my code if the messages change ever so slightly
  353. # [10:42] <MikeSmith> yeah
  354. # [10:46] * Quits: temp02 (~temp01@unaffiliated/temp01) (Ping timeout: 260 seconds)
  355. # [10:47] * Joins: maikmerten (~merten@ls5dhcp200.cs.uni-dortmund.de)
  356. # [10:49] * Joins: Lachy (~Lachy@cm-84.215.59.50.getinternet.no)
  357. # [10:54] <zcorpan> Ms2ger: so the spec has three different rfc2119 keywords for the same thing. "must not use foo" "should not use foo" "may use foo (and ignore other requirements)"
  358. # [10:56] * Joins: temp01 (~temp01@unaffiliated/temp01)
  359. # [11:00] * Joins: ezoe (~ezoe@112-68-245-73f1.kyt1.eonet.ne.jp)
  360. # [11:14] * Quits: cygri (~cygri@109.255.150.223) (Quit: cygri)
  361. # [11:16] * Quits: micheil (~micheil@92.40.253.166.threembb.co.uk) (Quit: http://brandedcode.com | http://github.com/miksago)
  362. # [11:21] * Quits: Ms2ger (~Ms2ger@91.181.20.245) (Quit: Leaving)
  363. # [11:34] * Quits: Lachy (~Lachy@cm-84.215.59.50.getinternet.no) (Quit: Computer has gone to sleep.)
  364. # [11:35] * Quits: rimantas (~rimliu@93.93.57.193) (Ping timeout: 248 seconds)
  365. # [11:40] * Joins: tlsa (~mdrake@octopus.pepperfish.net)
  366. # [11:42] * Joins: bga_ (~bga@ppp78-37-250-11.pppoe.avangarddsl.ru)
  367. # [11:43] * Quits: karlcow (~karl@nerval.la-grange.net) (Quit: Freedom - to walk free and own no superior.)
  368. # [11:56] * Parts: mishunov (~spliter@77.88.72.162)
  369. # [12:22] * bga_ is now known as bga_|away
  370. # [12:22] * Joins: rimantas (~rimliu@93.93.57.193)
  371. # [12:27] * Quits: bezoar (~Adium@c-24-143-67-135.customer.broadstripe.net) (Ping timeout: 255 seconds)
  372. # [12:29] * Joins: spliter_ (~spliter@77.88.72.162)
  373. # [12:30] * Joins: simplicity- (~simplicit@unaffiliated/simplicity-)
  374. # [12:32] * Quits: simplicity- (~simplicit@unaffiliated/simplicity-) (Client Quit)
  375. # [12:33] * Joins: robnyman_ (~robnyman@c83-250-37-147.bredband.comhem.se)
  376. # [12:34] <robnyman_> Testing out HTML5 Forms and setCustomValidity("Any message I want")
  377. # [12:34] <robnyman_> WHen I try to combine that check oninput with checkValidity, it is always invalid
  378. # [12:35] <robnyman_> Shouldn't checkValidity still resort to the built-in validation even do I use setCustomValidity?
  379. # [12:36] <robnyman_> An example can be seen at http://jsfiddle.net/mathias/htsLW/
  380. # [12:37] <robnyman_> Basically, after any input and the usage of setCustomValidity, checkValidity always returns false
  381. # [12:38] <Rik`> robnyman_: yes, you need to do setCustomValidity('')
  382. # [12:39] <Rik`> oh that's what you do
  383. # [12:39] * Parts: spliter_ (~spliter@77.88.72.162)
  384. # [12:40] <robnyman_> Rik`: Yep. I think doing my own check and setting setCustomValidity would work. But checkValidity seems broken if you use it in conjunction with setCustomValidity
  385. # [12:41] <robnyman_> Which really makes it harder if I have to roll my own validation algorithm just because I use setCustomValidity to have my own message in the web browser's native UI
  386. # [12:42] * Joins: danbri (~danbri@adsl-76-193-219-232.dsl.pltn13.sbcglobal.net)
  387. # [12:43] <Rik`> there's no real check in your logic here
  388. # [12:43] <robnyman_> In what sense?
  389. # [12:43] <robnyman_> It checks validity for every input
  390. # [12:45] <Rik`> we have the x-moz-errormessage attribute to change the messag
  391. # [12:46] <robnyman_> Rik`: I know, but that doesn't seem to be standardized nor do I have any other option to make it work cross browser
  392. # [12:47] * Joins: cygri (~cygri@wlan-nat.fwgal01.deri.ie)
  393. # [12:47] <robnyman_> So I'm trying to figure out if setCustomValidity should cancel out checkValidity completey, or if there is something wrong in the implementations
  394. # [12:47] * Quits: cygri (~cygri@wlan-nat.fwgal01.deri.ie) (Remote host closed the connection)
  395. # [12:47] <Rik`> then we need to standardize it maybe ? :)
  396. # [12:47] * Joins: cygri (~cygri@wg1-nat.fwgal01.deri.ie)
  397. # [12:47] <robnyman_> Rik`: Oh, definitely!
  398. # [12:48] * Quits: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net) (Remote host closed the connection)
  399. # [12:48] * Quits: danbri (~danbri@adsl-76-193-219-232.dsl.pltn13.sbcglobal.net) (Ping timeout: 248 seconds)
  400. # [12:55] * Joins: FireFly (~firefly@unaffiliated/firefly)
  401. # [12:56] * bga_|away is now known as bga_
  402. # [12:57] <robnyman_> A combination of resetting setCustomValditiy on input and using setCustomValidity for the invalid event is the only way I can make it work
  403. # [12:57] <robnyman_> http://jsfiddle.net/SNysL/2/
  404. # [12:58] <robnyman_> And removing a message by an empty string, BTW - shouldn't it be another method, like removeCustomAbility?
  405. # [12:59] * Joins: cygri_ (~cygri@wlan-nat.fwgal01.deri.ie)
  406. # [13:00] * Joins: _bga (~bga@ppp78-37-233-56.pppoe.avangarddsl.ru)
  407. # [13:01] * Quits: bga_ (~bga@ppp78-37-250-11.pppoe.avangarddsl.ru) (Ping timeout: 245 seconds)
  408. # [13:04] * Quits: cygri (~cygri@wg1-nat.fwgal01.deri.ie) (Ping timeout: 248 seconds)
  409. # [13:04] * cygri_ is now known as cygri
  410. # [13:15] <hsivonen> does anyone happen to remember which fires first: the last progress event for XHR or the DOMContentLoaded on responseXML?
  411. # [13:16] * Quits: shepazu (~shepazu@108-70-132-46.lightspeed.rlghnc.sbcglobal.net) (Remote host closed the connection)
  412. # [13:18] * Joins: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp)
  413. # [13:30] * Quits: zcorpan (~zcorpan@node-7ahkvq28vc65m79q2.a0.ipv6.opera.com) (Ping timeout: 240 seconds)
  414. # [13:33] * _bga is now known as bga_|away
  415. # [13:34] * Joins: tndH (~Rob@cpc16-seac19-2-0-cust234.7-2.cable.virginmedia.com)
  416. # [13:36] * Joins: zcorpan (~zcorpan@node-7ahkvq28vc65m79q2.a0.ipv6.opera.com)
  417. # [13:39] * Joins: Neiluj (~Julien@195.200.175.214)
  418. # [13:42] * Quits: robnyman_ (~robnyman@c83-250-37-147.bredband.comhem.se) (Quit: robnyman_)
  419. # [13:44] * Joins: 77CAAHMLB (~robnyman@c83-250-37-147.bredband.comhem.se)
  420. # [13:48] * Quits: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp) (Remote host closed the connection)
  421. # [13:48] * Joins: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp)
  422. # [13:49] * Quits: maikmerten (~merten@ls5dhcp200.cs.uni-dortmund.de) (Quit: Verlassend)
  423. # [13:52] * Quits: temp01 (~temp01@unaffiliated/temp01) (Read error: Connection reset by peer)
  424. # [13:53] * Quits: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp) (Ping timeout: 245 seconds)
  425. # [14:02] * Joins: temp01 (~temp01@unaffiliated/temp01)
  426. # [14:02] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  427. # [14:27] * Joins: Rik`_ (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  428. # [14:27] * Quits: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  429. # [14:30] * Joins: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  430. # [14:30] * Quits: Rik`_ (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  431. # [14:34] * Joins: Rik`_ (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  432. # [14:34] * Quits: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  433. # [14:42] <zcorpan> thanks AryehGregor for updating atob
  434. # [14:42] * Joins: jochen___ (jochen@nat/google/x-jrxttnalychdnjpl)
  435. # [14:43] * Quits: jochen__ (jochen@nat/google/x-ucmnkmkvhkmedjll) (Ping timeout: 240 seconds)
  436. # [14:43] * jochen___ is now known as jochen__
  437. # [14:45] * Joins: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  438. # [14:45] * Quits: Rik`_ (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  439. # [14:45] * Parts: cypha (~cypha@unaffiliated/cypha)
  440. # [14:48] * Quits: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  441. # [14:49] * Joins: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  442. # [14:50] * Joins: MikeSmith_ (~MikeSmith@EM114-48-139-117.pool.e-mobile.ne.jp)
  443. # [14:51] * Quits: svl (~me@ip565744a7.direct-adsl.nl) (Read error: Operation timed out)
  444. # [14:51] * Joins: svl (~me@ip565744a7.direct-adsl.nl)
  445. # [14:53] * Joins: agektmr (~Adium@p4017-ipbf2207marunouchi.tokyo.ocn.ne.jp)
  446. # [14:53] * Quits: MikeSmith (~MikeSmith@EM111-191-246-56.pool.e-mobile.ne.jp) (Ping timeout: 248 seconds)
  447. # [14:53] * MikeSmith_ is now known as MikeSmith
  448. # [14:56] <MikeSmith> anybody know if a PHP class can have multiple constructors?
  449. # [14:56] <MikeSmith> with different signatures
  450. # [14:56] * MikeSmith googles
  451. # [15:06] * Joins: miketaylr (~miketaylr@206.217.92.186)
  452. # [15:07] * Joins: Bass10 (Bass10@c-76-113-194-7.hsd1.mn.comcast.net)
  453. # [15:17] * Joins: davidb_ (~davidb@66.207.208.98)
  454. # [15:20] * Joins: Effilry (~firefly@firefly.xen.prgmr.com)
  455. # [15:21] * bga_|away is now known as bga_
  456. # [15:22] * Quits: rimantas (~rimliu@93.93.57.193) (Quit: Leaving)
  457. # [15:26] * Quits: FireFly (~firefly@unaffiliated/firefly) (Quit: FireFly)
  458. # [15:26] * Quits: Effilry (~firefly@firefly.xen.prgmr.com) (Changing host)
  459. # [15:26] * Joins: Effilry (~firefly@unaffiliated/firefly)
  460. # [15:26] * Effilry is now known as FireFly
  461. # [15:26] * Joins: MacTed (~Thud@63.119.36.36)
  462. # [15:27] * bga_ is now known as bga_|away
  463. # [15:28] * Quits: tndH (~Rob@cpc16-seac19-2-0-cust234.7-2.cable.virginmedia.com) (Ping timeout: 248 seconds)
  464. # [15:29] * Joins: GlitchMr (~glitchmr@178-36-254-227.adsl.inetia.pl)
  465. # [15:35] <hsivonen> is XHR Level 2 part of HTML5? :-)
  466. # [15:36] * Joins: myakura (~myakura@FL1-203-136-181-177.tky.mesh.ad.jp)
  467. # [15:38] * Quits: ezoe (~ezoe@112-68-245-73f1.kyt1.eonet.ne.jp) (Ping timeout: 245 seconds)
  468. # [15:39] * bga_|away is now known as bga_
  469. # [15:47] * Quits: Ankheg (~Ankheg@91.224.77.4) (Read error: Connection reset by peer)
  470. # [15:48] * Joins: timeless (d04149cb@firefox/developer/timeless)
  471. # [15:50] * Joins: simplicity- (~simplicit@unaffiliated/simplicity-)
  472. # [15:51] * Quits: 77CAAHMLB (~robnyman@c83-250-37-147.bredband.comhem.se) (Quit: 77CAAHMLB)
  473. # [15:53] * Parts: tlsa (~mdrake@octopus.pepperfish.net)
  474. # [15:56] * Quits: simplicity- (~simplicit@unaffiliated/simplicity-) (Quit: ...)
  475. # [16:02] * Quits: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net) (Quit: The computer fell asleep)
  476. # [16:02] * Joins: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net)
  477. # [16:04] * Joins: scor (~scor@drupal.org/user/52142/view)
  478. # [16:04] * Quits: scor (~scor@drupal.org/user/52142/view) (Excess Flood)
  479. # [16:06] * Quits: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net) (Ping timeout: 245 seconds)
  480. # [16:10] * Quits: cygri (~cygri@wlan-nat.fwgal01.deri.ie) (Quit: cygri)
  481. # [16:18] * Joins: scor (~scor@drupal.org/user/52142/view)
  482. # [16:18] * Quits: scor (~scor@drupal.org/user/52142/view) (Excess Flood)
  483. # [16:19] * Quits: woef (~woef@91.183.84.141) (Ping timeout: 276 seconds)
  484. # [16:20] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  485. # [16:26] * Joins: scor (~scor@drupal.org/user/52142/view)
  486. # [16:26] * Quits: scor (~scor@drupal.org/user/52142/view) (Excess Flood)
  487. # [16:26] * Joins: scor (~scor@drupal.org/user/52142/view)
  488. # [16:26] * Quits: scor (~scor@drupal.org/user/52142/view) (Excess Flood)
  489. # [16:27] * Joins: scor (~scor@drupal.org/user/52142/view)
  490. # [16:28] * Quits: zcorpan (~zcorpan@node-7ahkvq28vc65m79q2.a0.ipv6.opera.com) (Quit: zcorpan)
  491. # [16:33] * Quits: Kellen` (~Kellen@194-17-8-94.customer.telia.com) (Ping timeout: 256 seconds)
  492. # [16:35] * Joins: espadrine (~thaddee_t@acces2213.res.insa-lyon.fr)
  493. # [16:37] * Joins: cygri (~cygri@wlan-nat.fwgal01.deri.ie)
  494. # [16:40] * Quits: davidb_ (~davidb@66.207.208.98) (Quit: davidb_)
  495. # [16:42] * Joins: davidb_ (~davidb@66.207.208.98)
  496. # [16:49] * Joins: charlvn (~charlvn@524BA444.cm-4-4c.dynamic.ziggo.nl)
  497. # [16:54] * Joins: benjoffe_ (~benjoffe_@r49-2-10-185.cpe.vividwireless.net.au)
  498. # [16:55] * Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Remote host closed the connection)
  499. # [16:56] * Quits: nonge_ (~nonge@p5082B3C5.dip.t-dialin.net) (Quit: Verlassend)
  500. # [16:58] * Joins: cying (~cying@c-71-202-136-62.hsd1.ca.comcast.net)
  501. # [17:00] * Quits: charlvn (~charlvn@524BA444.cm-4-4c.dynamic.ziggo.nl) (Quit: Leaving)
  502. # [17:01] * Joins: J_Voracek (~J_Voracek@71.21.195.70)
  503. # [17:02] * bga_ is now known as bga_|away
  504. # [17:02] * Joins: weinig (~weinig@c-24-130-56-198.hsd1.ca.comcast.net)
  505. # [17:02] <hober> TabAtkins: you really should have resolved one of those as "everyone's a porc porc"
  506. # [17:03] <hober> TabAtkins: totally missed the humor window there :)
  507. # [17:05] * Joins: simplicity- (~simplicit@unaffiliated/simplicity-)
  508. # [17:07] * Quits: simplicity- (~simplicit@unaffiliated/simplicity-) (Client Quit)
  509. # [17:09] * Quits: rtuin (~rtuin@D57D6C6A.static.ziggozakelijk.nl) (Quit: Leaving)
  510. # [17:09] * Quits: cygri (~cygri@wlan-nat.fwgal01.deri.ie) (Quit: cygri)
  511. # [17:10] * Joins: cygri (~cygri@wlan-nat.fwgal01.deri.ie)
  512. # [17:20] * Quits: J_Voracek (~J_Voracek@71.21.195.70) (Quit: disconnected: Jace Voracek - Jace@Jace-Place.com)
  513. # [17:20] * Quits: cying (~cying@c-71-202-136-62.hsd1.ca.comcast.net) (Quit: cying)
  514. # [17:22] * Quits: roc (~chatzilla@121.98.230.221) (Ping timeout: 245 seconds)
  515. # [17:28] * Joins: shepazu (~shepazu@108-70-132-46.lightspeed.rlghnc.sbcglobal.net)
  516. # [17:29] * Quits: Necrathex (~nectop@82-170-160-25.ip.telfort.nl) (Quit: Necrathex)
  517. # [17:43] * Joins: KevinMarks (~KevinMark@c-71-204-145-244.hsd1.ca.comcast.net)
  518. # [17:51] * Quits: GlitchMr (~glitchmr@178-36-254-227.adsl.inetia.pl) (Read error: Connection reset by peer)
  519. # [17:53] * Quits: weinig (~weinig@c-24-130-56-198.hsd1.ca.comcast.net) (Quit: weinig)
  520. # [17:57] * Quits: davidb_ (~davidb@66.207.208.98) (Quit: davidb_)
  521. # [18:03] * Joins: davidb_ (~davidb@66.207.208.98)
  522. # [18:05] <wilhelm> This might be of interest to some of you: http://lists.w3.org/Archives/Public/public-test-infra/2011JulSep/0031.html
  523. # [18:08] * jernoble|afk is now known as jernoble
  524. # [18:10] * Joins: david_carlisle (~chatzilla@dcarlisle.demon.co.uk)
  525. # [18:11] <AryehGregor> wilhelm, sounds awesome if people actually attend. Do you know who else is coming?
  526. # [18:11] <AryehGregor> Presumably Google, if it's at Google headquarters . . .
  527. # [18:12] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  528. # [18:12] <wilhelm> AryehGregor: Yes. Google, Mozilla, Opera and Microsoft have shown interest. Pending actual signups. (c:
  529. # [18:12] <wilhelm> I haven't heard back from Apple.
  530. # [18:12] <AryehGregor> Nice.
  531. # [18:12] <AryehGregor> There are quite a lot of tests floating around at this point that browsers should all be running.
  532. # [18:13] <AryehGregor> Although this reminds me, I need to give some people a poke (and/or stab) about my reflection tests again.
  533. # [18:13] <AryehGregor> They seem to be moldering indefinitely in submission/.
  534. # [18:13] <wilhelm> TabAtkins (and possibly others - you guys need to figure that out :) will attend from Google. I have also invited Simon Stewart separately (Google too, but from the WebDriver project).
  535. # [18:14] * AryehGregor isn't really part of "you guys" when it comes to Google
  536. # [18:14] * AryehGregor justs happens to receive money from them for some reason
  537. # [18:14] <wilhelm> Yes. And I know several browser vendors, Opera included, have large numbers of unreleased tests.
  538. # [18:14] <wilhelm> They should be released, in formats all the other browser vendors can use. (c:
  539. # [18:14] <AryehGregor> Well, it can't be "several" when there are only two notable browser vendors whose rendering engines are closed-source.
  540. # [18:15] <AryehGregor> I somehow doubt Mozilla or anyone from WebKit has many secret tests.
  541. # [18:15] <AryehGregor> They have lots that other browsers can't straightforwardly use as it stands, though.
  542. # [18:15] <gsnedders> AryehGregor: Apple do, certainly.
  543. # [18:15] <AryehGregor> Really? For testing the rendering engine and not just the browser UI and such?
  544. # [18:16] <wilhelm> Eh, yes, that could have been phrased better. Not all the publicly available tests have been submitted to working groups, using sensible frameworks and formats. (c:
  545. # [18:16] <gsnedders> For testing the rendering engine. They can't have copies of Gmail and the like publicly, for example.
  546. # [18:16] <AryehGregor> Like, tests that are going to fail when people do WebKit checkins but the people who do the checkin won't notice for who knows how long because the WebKit buildbots don't run the tests?
  547. # [18:17] <gsnedders> AryehGregor: Potentionally yes.
  548. # [18:17] <AryehGregor> I thought copies of things like Gmail are useless because they change way too rapidly and are way too complicated, so that you're best off just waiting for user reports.
  549. # [18:18] * Quits: espadrine (~thaddee_t@acces2213.res.insa-lyon.fr) (Ping timeout: 260 seconds)
  550. # [18:18] <AryehGregor> I guess user reports aren't as helpful when you have a Safari-style release schedule instead of a Chrome/Firefox schedule with bajillions of beta testers.
  551. # [18:18] <gsnedders> AryehGregor: Whether it's for performance testing or regression testing is a good question, but they certainly have copies of major sites and the like.
  552. # [18:18] <AryehGregor> Interesting.
  553. # [18:18] <AryehGregor> Not really relevant to standards, though.
  554. # [18:18] * Joins: CvP (~CvP@123.49.21.1)
  555. # [18:18] <gsnedders> No, but who knows what other tests they have privately/
  556. # [18:18] <gsnedders> *?
  557. # [18:20] <gsnedders> AryehGregor: But yeah, the more serious point is the majority of tests vendors have isn't really in any form useful to any other vendor.
  558. # [18:20] <wilhelm> Also, tests requring some sort of user interaction is an unsolved problem. I think every browser vendor is doing something slightly different, if they are automating such things at all.
  559. # [18:20] * Joins: dave_levin (dave_levin@nat/google/x-evpauhrnfrhlwima)
  560. # [18:23] * Joins: shetech (~shetech@12.234.36.130)
  561. # [18:23] * Quits: shetech (~shetech@12.234.36.130) (Client Quit)
  562. # [18:24] <AryehGregor> Yeah, I could really use that for my editing tests.
  563. # [18:25] <wilhelm> I think some mutation of WebDriver is the solution. Which is why I've invited Simon Stewart (and why the basic WebDriver API will be specced and standarized in the tools WG).
  564. # [18:26] <AryehGregor> Makes sense.
  565. # [18:26] * bga_|away is now known as bga_
  566. # [18:27] <wilhelm> We use the Watir API at Opera (which is built on top of the more verbose WebDriver API).
  567. # [18:27] <gsnedders> AIUI Google are using WebDriver too for Chrome
  568. # [18:29] <wilhelm> Yep, with a slightly different flavour. (c:
  569. # [18:31] * Joins: espadrine (~thaddee_t@acces2213.res.insa-lyon.fr)
  570. # [18:34] <gsnedders> Python bindings?
  571. # [18:36] <wilhelm> I've been told Mozilla uses the Python bindings.
  572. # [18:37] <gsnedders> Don't they all work with each other, if only by the remote protocol?
  573. # [18:40] * Joins: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net)
  574. # [18:40] <wilhelm> They do. But it would be nice to have a test suite in one language, not part Java, part Ruby, part Python, part .NET. (c:
  575. # [18:41] <gsnedders> Well, yes :)
  576. # [18:41] <AryehGregor> Surely we'd want it all JavaScript.
  577. # [18:41] <wilhelm> 927? :P
  578. # [18:44] <gsnedders> AryehGregor: When nobody uses that today?
  579. # [18:44] * Joins: rillian (~giles@150.183.119.66.static.metrobridge.net)
  580. # [18:44] * Quits: astearns (~anonymous@c-50-132-9-217.hsd1.wa.comcast.net) (Quit: astearns)
  581. # [18:44] * Joins: weinig_ (~weinig@17.245.88.199)
  582. # [18:45] <AryehGregor> gsnedders, nobody but Opera uses the W3C test formats at all today, that I'm aware of.
  583. # [18:45] <gsnedders> AryehGregor: And would require a different WebDriver impl for each JS engine, if people cared about that?
  584. # [18:45] <AryehGregor> Isn't WebDriver something people want to implement in browsers anyway? Or am I confusing it with something else?
  585. # [18:45] <gsnedders> AryehGregor: I believe WebKit run some.
  586. # [18:45] <AryehGregor> Oh, I am.
  587. # [18:45] <gsnedders> AryehGregor: You need something to control the web browser, and something that exposes an API to control it with.
  588. # [18:45] * Philip` thinks standardising on languages sounds like a pretty futile exercise, since everyone has their own favourites and not enough motivation to use a different one
  589. # [18:46] <AryehGregor> We need to use JS for the tests anyway. We should avoid using any other language if it's not strictly necessary.
  590. # [18:46] * Quits: weinig_ (~weinig@17.245.88.199) (Client Quit)
  591. # [18:46] * Joins: rillian_ (~rillian@150.183.119.66.static.metrobridge.net)
  592. # [18:46] <wilhelm> That something that controls the browser must be outside the browser.
  593. # [18:46] <Philip`> (Better to design a system that can cope with diversity, rather than trying to get rid of all diversity)
  594. # [18:46] <AryehGregor> Yeah, granted.
  595. # [18:46] <AryehGregor> I was thinking WebDriver was something else.
  596. # [18:46] <AryehGregor> Philip`, diversity is bad if you expect the same people to maintain all the code.
  597. # [18:47] * Quits: rillian_ (~rillian@150.183.119.66.static.metrobridge.net) (Remote host closed the connection)
  598. # [18:47] <gsnedders> AryehGregor: But what JS engine? What host object API do you use to impl the code to control the browser?
  599. # [18:47] <AryehGregor> I know that MediaWiki has a small part (texvc) written in OCaml that's bitrotted for years because the only language all the devs know is PHP.
  600. # [18:47] <AryehGregor> gsnedders, it shouldn't matter, right? JS is standard! :)
  601. # [18:47] * Joins: rillian_ (~rillian@150.183.119.66.static.metrobridge.net)
  602. # [18:47] <gsnedders> AryehGregor: How could you communicate with a browser through JS, though?
  603. # [18:48] <wilhelm> gsnedders: Actually, if someone did write JS bindings for WebDriver, it would magically work in all browsers.
  604. # [18:48] <gsnedders> wilhelm: Using the remote API?
  605. # [18:48] <Philip`> AryehGregor: If it's meant to integrate with browser developers' testing systems (getting tests from them and giving other tests to them), then the relevant people are not all the same people
  606. # [18:48] <wilhelm> gsnedders: By simply mapping the JS function calls to the WebDriver API calls.
  607. # [18:49] <wilhelm> All the business logic is one level below.
  608. # [18:49] <Philip`> OCaml is unusually obscure compared to PHP/Python/Perl/Ruby/JS/etc
  609. # [18:49] <gsnedders> wilhelm: But how would it call the WebDriver API?
  610. # [18:49] <wilhelm> If someone would be willing to make that investment, this might be a possible solution.
  611. # [18:50] <wilhelm> gsnedders: Eh. Andreas would know. (c:
  612. # [18:50] * wilhelm is a dump user in this particular case.
  613. # [18:50] <wilhelm> eh, dumb
  614. # [18:50] <gsnedders> wilhelm: I mean, the only way I can think is to use the remote API, hence communicating over HTTP.
  615. # [18:50] <wilhelm> Yes, I think that's what the different bindings use.
  616. # [18:50] <AryehGregor> I should clarify that the tests themselves should be entirely in JS.
  617. # [18:51] <AryehGregor> If there's some browser- and/or OS-specific framework that's not in JS that only a few people have to understand, that's okay.
  618. # [18:52] <gsnedders> AryehGregor: Running in each browser in some privilaged mode?
  619. # [18:52] <gsnedders> The aim of the WebDriver approach is to run tests in the normal executation mode.
  620. # [18:53] <gsnedders> If you want to use WebDriver within JS, it may as well be from a JS shell, which means managing to implement WebDriver host objects.
  621. # [18:53] * Joins: ryanmunger (636be5ab@gateway/web/freenode/ip.99.107.229.171)
  622. # [18:53] * gsnedders is most unclear what people are proposing here
  623. # [18:53] <ryanmunger> hi all
  624. # [18:53] <ryanmunger> found our about this room by reading jeremy keith's masterpiece "HTML5 for web designers"
  625. # [18:54] <AryehGregor> You've caught us.
  626. # [18:54] <AryehGregor> This is where we all lurk and conspire.
  627. # [18:54] <AryehGregor> Hi.
  628. # [18:54] <ryanmunger> excellent!
  629. # [18:55] * Joins: sicking (~chatzilla@34.198.247.173.mozilla-sfo1.web-pass.com)
  630. # [18:55] <jarib> wilhelm, gsnedders: there has been some work on a pure JS WebDriver http://selenium.googlecode.com/svn/trunk/javascript/webdriver-jsapi/
  631. # [18:55] <ryanmunger> i am excited to start using the new strucrural elements, as well as microformats!
  632. # [18:55] <jarib> not sure how it works exactly
  633. # [18:56] <ryanmunger> the only thing that is strange about html5 is the fact that we can have like 10 <h1> tags on the same page
  634. # [18:56] <ryanmunger> how does google and other search engines view that at the moment?
  635. # [18:56] <jarib> but a JS client could potentially use the existing wire protocol (which is JSON/HTTP)
  636. # [18:57] <wilhelm> jarib: Interesting. Is the project alive?
  637. # [18:58] <jarib> wilhelm: the dev doing most of the work has been out for a while due to an injury, so not at the moment.
  638. # [18:59] <gsnedders> jarib: Right, that's what I was guessing. So it could run in one browser and potentionally control another.
  639. # [18:59] * Parts: brucel (~brucel@cpc4-smal11-2-0-cust879.perr.cable.virginmedia.com)
  640. # [18:59] <jarib> yep
  641. # [19:00] <gsnedders> Would likely require XHR2, though, as to communicate with the wire protocol
  642. # [19:01] <wilhelm> Running it in a second browser would be suboptimal for completely automated testing, though.
  643. # [19:02] <gsnedders> Yes. Though it'd be interesting to see how running it in the same browser would affect testing.
  644. # [19:02] * Joins: ap (~ap@2620:149:4:1b01:311a:1681:274e:5c9c)
  645. # [19:02] <wilhelm> “Interesting”. (c:
  646. # [19:03] <gsnedders> "Well, I hope it won't crash and burn."
  647. # [19:03] * Joins: davidwalsh (~davidwals@75-135-74-55.dhcp.mdsn.wi.charter.com)
  648. # [19:04] <AryehGregor> ryanmunger, mostly here we're excited about the boring matter of writing standards and tests clear enough that browsers actually interoperate in practice. What search engines do is something that a) probably we don't know, and b) we don't care about so much.
  649. # [19:05] <ryanmunger> gotcha
  650. # [19:05] <AryehGregor> Nearly all the active people here are either browser implementers, or spec and/or test writers.
  651. # [19:05] <AryehGregor> Search engines not so much.
  652. # [19:06] <AryehGregor> They use nonstandard heuristics, generally, so not our lookout. We define theoretical semantics and they'll probably support it if they see enough authors using it.
  653. # [19:06] <ryanmunger> wthank you for the clarification
  654. # [19:06] <ryanmunger> i will do my best to keep up
  655. # [19:06] <AryehGregor> Except they'll probably support some variant that better reflects what people actually use, and not follow the standard.
  656. # [19:06] <AryehGregor> So whatever.
  657. # [19:06] <ryanmunger> which follows the whole "pave the cowpaths" model, right?
  658. # [19:07] <AryehGregor> Something like that, yeah.
  659. # [19:07] <wilhelm> It predates any formal model, but yes. (c:
  660. # [19:07] * Joins: jamesr (jamesr@nat/google/x-hlaanzlpjgfbrrgq)
  661. # [19:07] <AryehGregor> Although in our case we try to pave them, search engines are maybe more likely to just use them as-is.
  662. # [19:07] <ryanmunger> i guess a healthy medium of "formal model" and "using what is already being used" would be a good approach...
  663. # [19:07] <AryehGregor> We try to adapt existing browser behavior to be sane enough that we can standardize it without crying ourselves to sleep at night.
  664. # [19:08] <ryanmunger> :)
  665. # [19:08] <AryehGregor> As opposed to matching it exactly.
  666. # [19:08] * Joins: Maurice (copyman@5ED573FA.cm-7-6b.dynamic.ziggo.nl)
  667. # [19:08] <AryehGregor> (except when we have to)
  668. # [19:08] <ryanmunger> exciting
  669. # [19:08] <wilhelm> There's a lot of the crying-ourselves-to-sleep.
  670. # [19:08] <wilhelm> I suppose that too can be exciting. :P
  671. # [19:08] <ryanmunger> well, this is a little off topic, but someone needs to tell firefox to find a better way to update their browser
  672. # [19:09] <ryanmunger> since everytime i do, it breaks every plugin i have installed
  673. # [19:09] <AryehGregor> Yeah, I think they know that.
  674. # [19:09] <AryehGregor> They're kind of trapped by the fact that they're adopting this rapid-release thing so late in the game.
  675. # [19:09] <ryanmunger> i can see them using the "update it behind the scenes" model that chrome uses
  676. # [19:09] <AryehGregor> Chrome did it from day one and so they made sure their extension APIs were stable.
  677. # [19:09] <ryanmunger> yeah
  678. # [19:09] <ryanmunger> does anyone develop in chrome, here?
  679. # [19:09] <AryehGregor> Firefox has way deeper extension APIs, so they can't keep them stable, so extensions have to sometimes break on release.
  680. # [19:09] <ryanmunger> i am thinking about making that jump
  681. # [19:10] <AryehGregor> There are a few Chrome developers who hang out here, yeah.
  682. # [19:10] <ryanmunger> i am more of a 60% designer, 40% front end dev
  683. # [19:10] <AryehGregor> We've got at least one or two regular visitors from every major browser except IE.
  684. # [19:10] <ryanmunger> sounds like firefox needs to standardize their plugins?
  685. # [19:10] <AryehGregor> They can't without breaking all of them for good.
  686. # [19:11] <AryehGregor> They're trying to get people to move to Jetpacks, which are more like Chrome extensions and won't break on upgrade (hopefully).
  687. # [19:11] * Joins: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl)
  688. # [19:11] * Joins: GlitchMr (~glitchmr@178-36-254-227.adsl.inetia.pl)
  689. # [19:11] <AryehGregor> And also can be installed without a browser restart, I think.
  690. # [19:11] <AryehGregor> Anyway, that's something they know about and are thinking about, yeah.
  691. # [19:11] <ryanmunger> it will be interesting to see what the future holds in terms of making firefox plugins future proof
  692. # [19:12] <ryanmunger> i feel like it's the wordpress days, when you would update wordpress and your entire site would break
  693. # [19:12] <AryehGregor> Extensions are also holding back Firefox from moving to a multi-process model.
  694. # [19:12] <ryanmunger> i do like that about chrome, as well
  695. # [19:12] <ryanmunger> the mpm
  696. # [19:12] <AryehGregor> ("extensions" and "plugins" are different things for non-IE browsers, by the way -- plugins are things like Flash or Java that use the NPAPI and work cross-browser, extensions are browser-specific)
  697. # [19:13] <ryanmunger> my bad :)
  698. # [19:13] <ryanmunger> still learning the nomen clature
  699. # [19:14] <ryanmunger> all right. time to get back to work. i will be here absorbing a lot of the chatter going on in here
  700. # [19:14] <ryanmunger> thanks for clarifying some things
  701. # [19:16] * Philip` hopes ryanmunger is sufficiently absorbent and won't overflow with the chatter
  702. # [19:17] <ryanmunger> well, i definitely feel like the dumbest guy in the room :)
  703. # [19:17] <ryanmunger> but i hope to change that by just taking it all in
  704. # [19:17] <AryehGregor> That's how most of us started.
  705. # [19:17] * Joins: astearns (~anonymous@192.150.22.5)
  706. # [19:17] <ryanmunger> is there a fair share of front end devs in here?
  707. # [19:18] <AryehGregor> No, basically none.
  708. # [19:18] <AryehGregor> Some of us have experience as front-end devs, though.
  709. # [19:18] <Philip`> You could read the last million lines of chat log to catch up with where we are now, if you want
  710. # [19:18] <ryanmunger> lol
  711. # [19:18] * Joins: tndH (~Rob@cpc16-seac19-2-0-cust234.7-2.cable.virginmedia.com)
  712. # [19:18] <AryehGregor> Well, I guess Philip` is primarily a front-end dev of some kind.
  713. # [19:18] <AryehGregor> I'm a MediaWiki developer, but have been inactive in that for a year or two, since I moved mostly to standards stuff.
  714. # [19:18] <Philip`> I'm not a dev at all :-)
  715. # [19:19] <AryehGregor> What are you?
  716. # [19:19] <AryehGregor> I'm curious.
  717. # [19:19] <zewt> educated guess: human male
  718. # [19:19] <Philip`> An almost-ex PhD student, I suppose
  719. # [19:19] <ryanmunger> what is anyone in this industry anymore? ;D
  720. # [19:19] <ryanmunger> font end user experience standards based designer with an emphasis in usability?
  721. # [19:19] <ryanmunger> :)
  722. # [19:20] <ryanmunger> the terms get so crazy
  723. # [19:20] <AryehGregor> Are you writing a dissertation in anthropology on the social structure of web standards development, or do you have some personal involvement in the web?
  724. # [19:20] <ryanmunger> "we're all designers"
  725. # [19:20] <AryehGregor> . . . Other than as a user.
  726. # [19:22] <Philip`> It's not about anything web-related (it's a few layers further down the stack); I just got involved in HTML5 stuff a while ago since canvas was fun but broken, and then hung around for no particular reason
  727. # [19:23] <AryehGregor> Makes sense.
  728. # [19:23] <ryanmunger> ah, canvas
  729. # [19:23] <AryehGregor> You've mentioned something about game development, no?
  730. # [19:23] <ryanmunger> that thing that adobe will use to create their browser based version of photoshop in the next 10 years :)
  731. # [19:23] <zewt> i'd put money against that :P
  732. # [19:23] <zewt> (for a real value of "photoshop" and not "HalfBakedWebPhotoshop")
  733. # [19:24] <ryanmunger> do you think canvas is capable of something like that, though?
  734. # [19:24] <Philip`> AryehGregor: That's another hobby which I started a while ago and then failed to give up on :-)
  735. # [19:24] <ryanmunger> some open source version that will blow photoshop out of the water?
  736. # [19:24] <wilhelm> ryanmunger: I'll be a front end dev in … two and a half months! :P
  737. # [19:24] <AryehGregor> ryanmunger, if you're sufficiently masochistic, the current web platform is enough to write an OS from scratch.
  738. # [19:24] <ryanmunger> (that is NOT GIMP)
  739. # [19:24] <AryehGregor> Which people have more or less done.
  740. # [19:24] <wilhelm> After seven years on the Other Side.
  741. # [19:25] <ryanmunger> awesome, wilhelm
  742. # [19:25] <AryehGregor> By writing JS VMs and such.
  743. # [19:25] * Philip` supposes he needs to figure out what to do in real life, after finishing PhDing
  744. # [19:25] <zewt> it's capable of pieces of it (the webgl side of "canvas", anyway, not so much the 2d side), but i have my doubts of web app APIs will ever fully displace native ones
  745. # [19:25] <ryanmunger> html, css and javascript seem like a pretty powerful combo right now
  746. # [19:25] <zewt> but i'll help as I can to get them to come as close as possible :P
  747. # [19:26] <ryanmunger> maybe in 1996 people thought it would be impossible to drag a map around in your web browser?
  748. # [19:26] <zewt> ryanmunger: here's a random piece https://zewt.org/curves :P
  749. # [19:26] <zewt> ("url" won't work anymore; need to load a local file)
  750. # [19:27] <Philip`> ryanmunger: There was probably a Java applet that could drag maps :-)
  751. # [19:27] <Philip`> (and that would take thirty seconds to start up and would randomly hang your browser)
  752. # [19:27] <ryanmunger> okay..."plug in free"
  753. # [19:28] <zewt> in 1996 we didn't have enough experience with the web to make any kind of meaningful predictions :P
  754. # [19:28] <ryanmunger> hha
  755. # [19:28] <zewt> now we have quite a bit of experience
  756. # [19:28] <ryanmunger> too busy using the <blink> tag
  757. # [19:29] <zewt> https://zewt.org/~glenn/gross.html
  758. # [19:29] * Joins: annacc (Adium@nat/google/x-wpdqxydkbzfpihcn)
  759. # [19:30] <ryanmunger> lol
  760. # [19:30] <ryanmunger> love it
  761. # [19:30] <ryanmunger> love that snippet of js you wrote
  762. # [19:30] <zewt> the revival of blink, not so much? heh
  763. # [19:31] <zewt> i did name it appropriately
  764. # [19:31] <zewt> gross.
  765. # [19:31] <ryanmunger> :D
  766. # [19:31] <ryanmunger> blunk
  767. # [19:31] <ryanmunger> i'm trying to get a real hold on microformats today
  768. # [19:31] <ryanmunger> def exciting stuff
  769. # [19:38] * Quits: espadrine (~thaddee_t@acces2213.res.insa-lyon.fr) (Ping timeout: 244 seconds)
  770. # [19:39] <AryehGregor> zewt, web APIs will never fully displace native ones in the same sense as scripting will never fully displace C, and for that matter C will never fully displace assembly. It's plausible that at some point, most programmers will only really know web APIs.
  771. # [19:40] * AryehGregor never realized that <style> had a .disabled IDL attribute, dang
  772. # [19:40] * AryehGregor has some code where he inserts and removes /* */ using regex :(
  773. # [19:40] <AryehGregor> zewt, also, you can probably do that declaratively these days with CSS animations!
  774. # [19:44] * Quits: agektmr (~Adium@p4017-ipbf2207marunouchi.tokyo.ocn.ne.jp) (Quit: Leaving.)
  775. # [19:46] * bga_ is now known as bga_|away
  776. # [19:48] * Joins: jwalden (~waldo@34.198.247.173.mozilla-sfo1.web-pass.com)
  777. # [19:49] <zewt> AryehGregor: not really the right analogy
  778. # [19:49] <zewt> scripting won't displace C because it'll never be as fast as C; the reasons web apis won't display native APIs are different
  779. # [19:49] <zewt> (that's one of them, to be sure, but not the biggest)
  780. # [19:50] <AryehGregor> C to assembly is a better analogy. Assembly will never disappear because there are some things C can't do, but you'll only find it used for niche things.
  781. # [19:50] <AryehGregor> Web APIs can be as fast as native ones with NaCl.
  782. # [19:50] * Quits: jamesr (jamesr@nat/google/x-hlaanzlpjgfbrrgq) (Ping timeout: 240 seconds)
  783. # [19:51] <AryehGregor> If the Chrome OS concept takes off, which I suspect it will as web APIs become more powerful, then most developers won't be able to develop for anything but the web platform, if they want to target devices like Chrome OS.
  784. # [19:51] <zewt> the need for web apis to be cross-platform (meaning, in most cases, lowest-common-denominator), and the need in most cases for them to be safe enough to run untrusted code on (this at least could be improved, and hopefully will)
  785. # [19:51] <gsnedders> AryehGregor: That depends how much Google tries to standardize it's platform
  786. # [19:51] <gsnedders> zewt: Also, stuff like LuaJIT2 gets pretty impressive performance
  787. # [19:51] * Parts: annacc (Adium@nat/google/x-wpdqxydkbzfpihcn)
  788. # [19:51] <gsnedders> In general not as quick as C, but not massively far off
  789. # [19:52] <gsnedders> (How you deal with SSE and the like from a high-level langauge is a good question, though)
  790. # [19:52] <zewt> "not far off" for JIT tends to mean things like "only four times slower"
  791. # [19:52] <zewt> well, SSE is even hard in C, which is why most native-code developers still drop to assembly for it
  792. # [19:53] <gsnedders> zewt: pure maths stuff it's quicker than C for, often
  793. # [19:53] <zewt> (intrinsics, even when they work, are still inherently platform-specific)
  794. # [19:53] <gsnedders> Which JS has little hope of reaching.
  795. # [19:53] <zewt> (intrinsically platform-specific? heh)
  796. # [19:53] <gsnedders> (with the single int/double type, and overflow checks it needs, etc)
  797. # [19:54] <zewt> but performance is only a part of the equation; i was thinking in terms of APIs
  798. # [19:55] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  799. # [20:01] * Quits: CvP (~CvP@123.49.21.1) (Ping timeout: 245 seconds)
  800. # [20:06] * Quits: david_carlisle (~chatzilla@dcarlisle.demon.co.uk) (Ping timeout: 256 seconds)
  801. # [20:11] * Joins: jamesr (~jamesr@216.239.45.19)
  802. # [20:18] * Joins: aho (~nya@fuld-590c633b.pool.mediaWays.net)
  803. # [20:19] <AryehGregor> jgraham, my reflection tests are still broken and I don't know why. It must have been a change in testharness.js, because I never changed the tests themselves without testing the change. See, e.g., http://aryeh.name/tests-root/tests/submission/AryehGregor/reflection/reflection-forms.html
  804. # [20:22] * Quits: ap (~ap@2620:149:4:1b01:311a:1681:274e:5c9c) (Read error: Connection reset by peer)
  805. # [20:22] * Joins: ap (~ap@17.212.155.203)
  806. # [20:23] * Quits: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl) (Quit: RobbertAtWork)
  807. # [20:24] <AryehGregor> Or the w3.org URL if you like: http://dvcs.w3.org/hg/html/raw-file/tip/tests/submission/AryehGregor/reflection/reflection-forms.html
  808. # [20:24] <AryehGregor> The tests seem to run, but they don't output.
  809. # [20:25] <AryehGregor> Wait, now it seems to work?
  810. # [20:25] <AryehGregor> Hmm . . .
  811. # [20:26] * Quits: othermaciej (~mjs@c-24-6-209-189.hsd1.ca.comcast.net) (Quit: othermaciej)
  812. # [20:26] <AryehGregor> This is what breaks it: document.body.innerHTML += "something";
  813. # [20:27] <AryehGregor> Not sure why that would do it, but it's obviously bad for perf and such anyway.
  814. # [20:27] <AryehGregor> Hmm, maybe because it causes an expected element to vanish.
  815. # [20:29] * Joins: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net)
  816. # [20:29] * bga_|away is now known as bga_
  817. # [20:31] <AryehGregor> jgraham, okay, I fixed it, never mind.
  818. # [20:31] <AryehGregor> Is there some place I can file bugs about testharness, though?
  819. # [20:36] <AryehGregor> . . . I'm pretty sure this template stuff is responsible for massive slowdowns in rendering the test output.
  820. # [20:36] * Quits: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  821. # [20:37] * Joins: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  822. # [20:37] <AryehGregor> IMO, you should just use string concatenation to make the HTML for the output table and assign it all to the table at once.
  823. # [20:37] * AryehGregor experiments with that
  824. # [20:40] * Joins: Rik`_ (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net)
  825. # [20:40] * Joins: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl)
  826. # [20:40] * Quits: Rik` (~Rik`@lag75-1-78-192-241-87.fbxo.proxad.net) (Read error: Connection reset by peer)
  827. # [20:43] * Quits: zdobersek (~zan@90.157.247.37) (Quit: Leaving.)
  828. # [20:46] * Quits: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net) (Read error: Connection reset by peer)
  829. # [20:47] * Joins: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net)
  830. # [20:47] * Quits: dbaron (~dbaron@173-228-28-227.dsl.dynamic.sonic.net) (Ping timeout: 260 seconds)
  831. # [20:49] <TabAtkins> AryehGregor: I have significant experience as a front-end dev, though I'm now mostly a spec author.
  832. # [20:49] <AryehGregor> TabAtkins, right, I thought of you when I said that.
  833. # [20:49] <TabAtkins> Ah, kk.
  834. # [20:49] <AryehGregor> But you don't currently work as a front-end author.
  835. # [20:50] * TabAtkins misses a lot of conversation in the mornings now that he works from home until lunch.
  836. # [20:50] <TabAtkins> True.
  837. # [20:50] * Joins: MikeSmith_ (~MikeSmith@EM114-48-14-50.pool.e-mobile.ne.jp)
  838. # [20:50] <TabAtkins> hober: Oh man, you're right. There's still time!
  839. # [20:50] * Joins: cying (~cying@173-13-176-101-sfba.hfc.comcastbusiness.net)
  840. # [20:50] * Quits: sicking (~chatzilla@34.198.247.173.mozilla-sfo1.web-pass.com) (Ping timeout: 248 seconds)
  841. # [20:53] * Quits: MikeSmith (~MikeSmith@EM114-48-139-117.pool.e-mobile.ne.jp) (Ping timeout: 248 seconds)
  842. # [20:53] * MikeSmith_ is now known as MikeSmith
  843. # [20:55] * Joins: david_carlisle (~chatzilla@dcarlisle.demon.co.uk)
  844. # [20:56] * Quits: miketaylr (~miketaylr@206.217.92.186) (Read error: Connection reset by peer)
  845. # [20:56] * Joins: miketayl_r (~miketaylr@206.217.92.186)
  846. # [20:56] * miketayl_r is now known as miketaylr
  847. # [20:57] <AryehGregor> jgraham, this patch makes my one-page reflection tests in your framework take about five minutes to run in Firefox instead of eight: http://pastebin.com/kbfWk6RH
  848. # [20:57] <AryehGregor> If you don't count blank lines and comments, it removes three lines of code net.
  849. # [20:58] <AryehGregor> And uses only basic DOM stuff instead of templates, so it's much easier to understand.
  850. # [20:58] <AryehGregor> Can I push it? :)
  851. # [21:00] <AryehGregor> Hmm, it seems to make no difference to Chrome.
  852. # [21:00] * AryehGregor isn't 100% sure about his Firefox results' validity, but thinks it's worth it just based on code simplicity
  853. # [21:03] * Quits: davidwalsh (~davidwals@75-135-74-55.dhcp.mdsn.wi.charter.com) (Quit: Reading http://davidwalsh.name)
  854. # [21:03] * Quits: smaug____ (~chatzilla@a91-154-43-18.elisa-laajakaista.fi) (Ping timeout: 260 seconds)
  855. # [21:07] * Quits: david_carlisle (~chatzilla@dcarlisle.demon.co.uk) (Ping timeout: 260 seconds)
  856. # [21:08] <TabAtkins> ...I just not realized there was actually a man named "Haskell Curry".
  857. # [21:08] <TabAtkins> That feels like finding someone named "Javascript Memoize".
  858. # [21:08] <jgraham> TabAtkins: You previously did realise?
  859. # [21:08] <TabAtkins> s/not/now/, pedant.
  860. # [21:09] <jgraham> AryehGregor: (reading backscroll)
  861. # [21:09] * Quits: davidb_ (~davidb@66.207.208.98) (Quit: blast off!)
  862. # [21:09] * Joins: davidb_ (~davidb@66.207.208.98)
  863. # [21:11] * Quits: Neiluj (~Julien@195.200.175.214) (Quit: Neiluj)
  864. # [21:14] * Joins: dbaron (~dbaron@nat/mozilla/x-mrdhmuikigsstgps)
  865. # [21:16] * Quits: RobbertAtWork (~Robbert@a83-160-99-114.adsl.xs4all.nl) (Quit: RobbertAtWork)
  866. # [21:17] * Quits: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net) (Read error: Connection reset by peer)
  867. # [21:18] * Joins: jacobolus (~jacobolus@c-71-198-169-213.hsd1.ca.comcast.net)
  868. # [21:20] * Quits: timeless (d04149cb@firefox/developer/timeless) (Ping timeout: 252 seconds)
  869. # [21:20] <jgraham> TabAtkins: Given form, I'm surprised no one at Opera has named their kids Haskell yet (as far as I know)
  870. # [21:23] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  871. # [21:24] * Joins: othermaciej (~mjs@17.245.91.64)
  872. # [21:25] <jgraham> AryehGregor: I am not a big fan of random escape_html functions with weird edge cases living in the middle of the code
  873. # [21:25] <jgraham> It feels too much like bad experiences with PHP
  874. # [21:26] <AryehGregor> jgraham, granted. What do you suggest instead?
  875. # [21:26] <AryehGregor> Do you have a problem with the general idea?
  876. # [21:27] <jgraham> Well it would be interesting to know what is slow. Maybe the templating stuff can stay (although I grant that it is complex) but can build a string for innerHTML rather than doing DOM operations
  877. # [21:27] * Quits: dbaron (~dbaron@nat/mozilla/x-mrdhmuikigsstgps) (Quit: rebooting for security updates)
  878. # [21:28] <AryehGregor> What use is the templating stuff? It just adds complexity. It's not like it makes the code any shorter.
  879. # [21:30] * Joins: dbaron (~dbaron@nat/mozilla/x-xsnqtjvfqzwoipnu)
  880. # [21:30] <jgraham> Well I think it is shorter than doing all the DOM operations by hand would be. Or at least less complex
  881. # [21:30] <AryehGregor> It's longer in this case.
  882. # [21:30] <AryehGregor> Look at the diffstat, then count the added/removed lines that are blank or comments.
  883. # [21:31] <AryehGregor> That's even including the addition of my escape_html function.
  884. # [21:31] <jgraham> Well yeah, but you're not doing dom operations, you're doing unsafe string manipulation
  885. # [21:31] <AryehGregor> That's the point, yes. It's much faster for large inputs. Also, why do you say "unsafe"?
  886. # [21:32] <AryehGregor> I mean, clearly they're unsafe if misused, but in this case it's pretty easy to see that it's safe (I think).
  887. # [21:32] <AryehGregor> Also, it's not like we're super-worried here about XSS in the test cases.
  888. # [21:33] <jgraham> Well yeah, but the point is that in general it's not safe
  889. # [21:33] <jgraham> No, I'm not worried about XSS
  890. # [21:33] <AryehGregor> It is if you escape properly.
  891. # [21:33] <AryehGregor> It's also much, much shorter and easier to understand.
  892. # [21:33] <jgraham> But it is tiresome if we start getting issues where adding the wrong kind of character to the test name causes weird brokenness
  893. # [21:33] <AryehGregor> And I strongly suspect it's faster, at least in Gecko, although I didn't do multiple runs to verify.
  894. # [21:34] <jgraham> Which I have seen in similar systems
  895. # [21:34] <jgraham> I can easily believe that it is faster
  896. # [21:34] <AryehGregor> Faster is a big issue when you have tens of thousands of tests on a page.
  897. # [21:34] <AryehGregor> Most of the time is spent rendering the results, not running the actual tests.
  898. # [21:34] <AryehGregor> That's bad.
  899. # [21:35] <jgraham> Yes, I can see that is a problem. Having tens of thousands of tests on a page wasn't a design goal
  900. # [21:35] <AryehGregor> Well, in Firefox that's true. Chrome seems to spend most of the time running them, but still an appreciable amount of time rendering them.
  901. # [21:35] <jgraham> s/Having/Supporting/
  902. # [21:35] <jgraham> So it's not supported well
  903. # [21:36] * Quits: cygri (~cygri@wlan-nat.fwgal01.deri.ie) (Quit: cygri)
  904. # [21:37] <AryehGregor> I guess it might make sense for me to just split the tests up as much as necessary.
  905. # [21:38] * Joins: bezoar (~Adium@c-24-143-67-135.customer.broadstripe.net)
  906. # [21:42] <jgraham> I also had to change a bunch of createElements to createElementNS to keep the SVG people happy. Possibly innerHTML would upset them (although I don't recall the exact problem we were trying to solve)
  907. # [21:43] * Joins: expilicious (~zAyghip8@93-96-170-70.zone4.bethere.co.uk)
  908. # [21:44] * Quits: expilicious (~zAyghip8@93-96-170-70.zone4.bethere.co.uk) (Client Quit)
  909. # [21:46] <shepazu> jgraham: what would upset the SVG people about innerHTML (besides the unfortunate name)?
  910. # [21:50] * Joins: robnyman_ (~robnyman@c83-250-37-147.bredband.comhem.se)
  911. # [21:52] * Joins: simplicity- (~simplicit@unaffiliated/simplicity-)
  912. # [21:54] * Quits: robnyman_ (~robnyman@c83-250-37-147.bredband.comhem.se) (Ping timeout: 260 seconds)
  913. # [21:57] <AryehGregor> It occurs to me that if we tested all of HTML5 at the same level of depth I like to write tests, the full test suite would take weeks to run.
  914. # [21:57] <AryehGregor> Oh well.
  915. # [21:57] <jgraham> shepazu: Depending on it in testharness.js given that it doesn't work on SVG elements yet
  916. # [21:57] <AryehGregor> It should parallelize nicely.
  917. # [21:57] <jgraham> AryehGregor: ACID4!
  918. # [21:57] <jgraham> It will require proper dedication to get a result ;)
  919. # [21:57] <AryehGregor> We should make ACID4 be a giant comprehensive test suite that takes weeks to run?
  920. # [21:57] <AryehGregor> Sounds good to me.
  921. # [21:57] <jgraham> Yeah :)
  922. # [21:59] <Hixie> heh
  923. # [22:02] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  924. # [22:05] <shepazu> jgraham: what would need to happen for innerHTML to work on SVG?
  925. # [22:05] * Quits: davidb_ (~davidb@66.207.208.98) (Quit: davidb_)
  926. # [22:05] * Quits: othermaciej (~mjs@17.245.91.64) (Read error: Connection reset by peer)
  927. # [22:05] <jgraham> shepazu: Not much.
  928. # [22:06] * Joins: othermaciej (~mjs@17.245.91.64)
  929. # [22:06] <jgraham> shepazu: I think it is in DOM4 already. Implementations just need to actually implement it
  930. # [22:06] <jgraham> But it's not really that hard since they already do it for (X)HTML
  931. # [22:07] * Quits: rillian_ (~rillian@150.183.119.66.static.metrobridge.net) (Remote host closed the connection)
  932. # [22:08] * Quits: GlitchMr (~glitchmr@178-36-254-227.adsl.inetia.pl) (Quit: Wychodzi)
  933. # [22:08] * Joins: smaug____ (~chatzilla@a91-154-43-18.elisa-laajakaista.fi)
  934. # [22:13] <jamesr> AryehGregor: parallelization of tests is very handy, although basically impossible to do in a browser-based harness
  935. # [22:14] <AryehGregor> jamesr, why isn't it trivial in a browser-based harness?
  936. # [22:14] <AryehGregor> If you have separate test pages.
  937. # [22:14] <AryehGregor> Just parallelize across the pages.
  938. # [22:14] <mkanat> AryehGregor: Imagine you have a million tests.
  939. # [22:14] * Quits: scor (~scor@drupal.org/user/52142/view) (Quit: scor)
  940. # [22:14] <mkanat> AryehGregor: And you want to run 300 at once.
  941. # [22:14] <jamesr> maybe you could open up a test run page in a bunch of (isolated) tabs and have some central broker shard the tests out
  942. # [22:15] <AryehGregor> Sure.
  943. # [22:15] <mkanat> jamesr: Like with postMessage?
  944. # [22:15] <jgraham> Why not just use multiple browser instances
  945. # [22:15] <jgraham> On multiple physical machines
  946. # [22:15] <mkanat> jgraham: That would be even better, then you'd run out of RAM after opening just three.
  947. # [22:15] <AryehGregor> Or do it by some unit (e.g., directory) that's large enough that you can just spawn a new tab for each one without load balancing.
  948. # [22:15] <mkanat> jgraham: That would indeed solve the problem, physical machines.
  949. # [22:15] <mkanat> jgraham: And it was my original thought as well.
  950. # [22:16] <jgraham> If the tests are anything like efficient you can't parallelise well in one browser instance simply because you quickly use up all the avaliable CPU
  951. # [22:16] * Joins: cpearce (~chatzilla@ip-118-90-78-13.xdsl.xnet.co.nz)
  952. # [22:16] <jgraham> Also working out what happened when something crashes becomes tricky
  953. # [22:16] <mkanat> jgraham: Well, not all browser tests would be CPU-intensive.
  954. # [22:17] <AryehGregor> Almost all will be.
  955. # [22:17] <AryehGregor> I mean, they don't *have* to be.
  956. # [22:17] <jamesr> what else would they be?
  957. # [22:17] <mkanat> jamesr: GPU, RAM.
  958. # [22:17] <jgraham> GPU sure
  959. # [22:17] <mkanat> jamesr: And some few (storage) would be I/O bound.
  960. # [22:17] <jgraham> RAM not so much
  961. # [22:17] <jamesr> memory-bound is the same as cpu-bound
  962. # [22:17] <jamesr> if you're really blocked on memory bandwidth
  963. # [22:17] <mkanat> jamesr: Memory-speed bound, sure.
  964. # [22:17] <AryehGregor> You could conceivably have tests that require large delays to be inserted for some reason.
  965. # [22:18] <jamesr> storage tests shouldn't be I/O bound unless the implementation is pretty bad
  966. # [22:18] <AryehGregor> Or I/O, yeah, or GPU.
  967. # [22:18] <mkanat> jamesr: No, I do agree with you that in my imaginary world, most HTML tests are CPU-bound.
  968. # [22:18] <jgraham> Tests that require large delays are not uncommon
  969. # [22:18] <mkanat> AryehGregor: setTimeout.
  970. # [22:18] <jgraham> If you are testing networking code, for example
  971. # [22:18] <mkanat> AryehGregor: I mean, that test would involve a delay.
  972. # [22:18] <jamesr> network bound is reasonable
  973. # [22:18] <AryehGregor> Yes, but that's a tiny minority of tests.
  974. # [22:18] <jgraham> But anyway, parallelising across multiple browsers makes all of this rather easy to deal with
  975. # [22:18] <AryehGregor> I mean setTimeout.
  976. # [22:18] <mkanat> Well, but if you were testing network code, I'd probably test against localhost.
  977. # [22:18] <AryehGregor> Network, maybe not.
  978. # [22:18] <mkanat> AryehGregor: Yeah, agreed that it's a small minority.
  979. # [22:19] <AryehGregor> But who cares? Just spawn significantly more instances than you have CPUs.
  980. # [22:19] <mkanat> jgraham: Agreed.
  981. # [22:19] <AryehGregor> Let the OS scheduler work it out.
  982. # [22:19] * Joins: hasather_ (~hasather_@84.38.144.96)
  983. # [22:20] <mkanat> Hixie: MS and other vendors have actually written a bunch of somewhat-comprehensive spec tests for some specs, right?
  984. # [22:20] <jgraham> (the other advantage is that running multiple tests at the same time on the same machine can cause problems)
  985. # [22:20] <jgraham> (e.g. timeouts due to resource starvation)
  986. # [22:20] <jgraham> mkanat: fairly comprehensive testsuites for some features exist, yes
  987. # [22:22] * Quits: simplicity- (~simplicit@unaffiliated/simplicity-) (Quit: ...)
  988. # [22:26] * Joins: david_carlisle (~chatzilla@dcarlisle.demon.co.uk)
  989. # [22:36] * Joins: davidwalsh (~davidwals@75-135-74-55.dhcp.mdsn.wi.charter.com)
  990. # [22:39] * Joins: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1)
  991. # [22:39] * Joins: tomasf_ (~tomasf@h88-206-139-114.vokby.se)
  992. # [22:49] * Quits: tomasf_ (~tomasf@h88-206-139-114.vokby.se) (Quit: tomasf_)
  993. # [22:52] * Quits: MacTed (~Thud@63.119.36.36)
  994. # [22:55] * Quits: othermaciej (~mjs@17.245.91.64) (Quit: othermaciej)
  995. # [22:55] * Quits: davidwalsh (~davidwals@75-135-74-55.dhcp.mdsn.wi.charter.com) (Quit: Reading http://davidwalsh.name)
  996. # [23:01] * Quits: david_carlisle (~chatzilla@dcarlisle.demon.co.uk) (Ping timeout: 245 seconds)
  997. # [23:03] * Quits: smaug____ (~chatzilla@a91-154-43-18.elisa-laajakaista.fi) (Ping timeout: 248 seconds)
  998. # [23:05] * Quits: miketaylr (~miketaylr@206.217.92.186) (Quit: miketaylr)
  999. # [23:12] * Quits: sicking (~chatzilla@2620:101:8003:200:226:bbff:fe05:3fe1) (Remote host closed the connection)
  1000. # [23:13] * Joins: othermaciej (~mjs@2620:149:f01:202:cc8f:db42:76e8:bb74)
  1001. # [23:29] * Quits: jamesr (~jamesr@216.239.45.19) (Remote host closed the connection)
  1002. # [23:29] * Joins: jamesr (jamesr@nat/google/x-kpzeihftdrarzhfr)
  1003. # [23:33] * Joins: ezoe (~ezoe@61-205-124-134f1.kyt1.eonet.ne.jp)
  1004. # [23:38] * Quits: ojan (ojan@nat/google/x-feopnwkygiomjsqb) (*.net *.split)
  1005. # [23:38] * Quits: KolakCC (~KolakCC@unaffiliated/kolakcc) (*.net *.split)
  1006. # [23:42] * Joins: _bga (~bga@ppp78-37-233-56.pppoe.avangarddsl.ru)
  1007. # [23:42] * Joins: ojan (ojan@nat/google/x-feopnwkygiomjsqb)
  1008. # [23:42] * Joins: KolakCC (~KolakCC@unaffiliated/kolakcc)
  1009. # [23:46] * Quits: bga_ (~bga@ppp78-37-233-56.pppoe.avangarddsl.ru) (Ping timeout: 276 seconds)
  1010. # [23:53] * Joins: cygri (~cygri@109.255.150.223)
  1011. # Session Close: Sat Sep 24 00:00:00 2011

The end :)