Options:
- # Session Start: Tue Jan 26 00:00:00 2010
- # Session Ident: #whatwg
- # [00:05] * Joins: JonathanNeal (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com)
- # [00:19] * Quits: FireFly (n=firefly@unaffiliated/firefly) ("Leaving")
- # [00:26] * Quits: kmartiin (n=kmartiin@p57AC6C99.dip.t-dialin.net) (Remote closed the connection)
- # [00:27] * Quits: smaug_ (n=chatzill@cs181150024.pp.htv.fi) ("ChatZilla 0.9.86 [Firefox 3.7a1pre/20100112120615]")
- # [00:29] * Joins: kmartiin (n=kmartiin@p57AC6C99.dip.t-dialin.net)
- # [00:29] * Quits: kmartiin (n=kmartiin@p57AC6C99.dip.t-dialin.net) (Remote closed the connection)
- # [00:30] * Joins: kmartiin (n=kmartiin@p57AC6C99.dip.t-dialin.net)
- # [00:31] * Quits: jgornick (n=joe@199.199.210.66)
- # [00:35] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Connection timed out)
- # [00:45] * Joins: karlushi (n=karlushi@fw.vdl2.ca)
- # [00:45] * Joins: Rik`_ (n=Rik`@pha75-2-81-57-187-57.fbx.proxad.net)
- # [00:47] * Joins: JonathanNeal_oww (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com)
- # [00:48] * Joins: GarethAdams|Home (n=GarethAd@pdpc/supporter/active/GarethAdams)
- # [00:51] * Joins: jwalden (n=waldo@nat/mozilla/x-xbswdvgcjunxncrj)
- # [00:52] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Read error: 60 (Operation timed out))
- # [00:52] * Joins: karlushi (n=karlushi@fw.vdl2.ca)
- # [00:57] * Quits: JonathanNeal (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com) (Read error: 110 (Connection timed out))
- # [01:02] * dimich is now known as dimich_mtg
- # [01:02] * Quits: Rik` (n=Rik`@pha75-2-81-57-187-57.fbx.proxad.net) (Read error: 113 (No route to host))
- # [01:02] * Rik`_ is now known as Rik`
- # [01:11] * Quits: tametick (n=chatzill@chello084114134061.3.15.vie.surfer.at) (Client Quit)
- # [01:19] <karlcow> http://doc.s3.amazonaws.com/betadesign/Versioning.html versioning on S3
- # [01:19] * Quits: payman (n=payman@pat.se.opera.com) (Read error: 60 (Operation timed out))
- # [01:20] * Joins: payman (n=payman@pat.se.opera.com)
- # [01:25] * Joins: jwm (n=jwm@dev.dist.us)
- # [01:25] * Quits: ray (i=ray@drong.notacat.org) (niven.freenode.net irc.freenode.net)
- # [01:25] * Quits: JonathanNeal_oww (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com) (niven.freenode.net irc.freenode.net)
- # [01:25] * Quits: takkaria (n=takkaria@isparp.co.uk) (niven.freenode.net irc.freenode.net)
- # [01:25] * Quits: salavas (i=salavas@h4n1fls31o279.telia.com) (niven.freenode.net irc.freenode.net)
- # [01:25] * Quits: riven (n=riven@53518387.cable.casema.nl) (niven.freenode.net irc.freenode.net)
- # [01:25] * Quits: GPHemsley (n=GPHemsle@pdpc/supporter/student/GPHemsley) (niven.freenode.net irc.freenode.net)
- # [01:25] * Quits: dimich_mtg (n=dimich@74.125.59.65) (niven.freenode.net irc.freenode.net)
- # [01:25] * Joins: ray_ (i=ray@drong.notacat.org)
- # [01:25] * Joins: takkaria_ (n=takkaria@isparp.co.uk)
- # [01:25] * Joins: JonathanNeal_oww (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com)
- # [01:25] * Joins: salavas (i=salavas@h4n1fls31o279.telia.com)
- # [01:25] <jwm> I have an easy question.. can you make an entire canvas area scale pretty well?
- # [01:25] * Joins: GPHemsley (n=GPHemsle@pdpc/supporter/student/GPHemsley)
- # [01:26] * Quits: othermaciej (n=mjs@12.44.174.3)
- # [01:26] <jwm> I am designing an UI that I would like to have scale from 2560x down to smartphones
- # [01:26] <jwm> of course content will be added/removed to make things fit but I'd like to have the entire window scale also
- # [01:26] * Joins: riven (n=riven@53518387.cable.casema.nl)
- # [01:27] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Connection timed out)
- # [01:28] <TabAtkins> jwm: Yeah, <canvas> scales just fine if you, say, use CSS to resize it. It depends on whatever the browser's native scaling algorithms are, of course.
- # [01:28] <TabAtkins> Alternately, you can handle the scaling yourself using whatever algorithm you wish.
- # [01:29] <jwm> cool
- # [01:29] <jwm> that is good news
- # [01:30] <jwm> I want to mimmic webos kind of hehe
- # [01:30] <jwm> in my interface
- # [01:30] <jwm> not sure if canvas or svg or just regular xhtml/css would be good enough
- # [01:30] <jwm> hehe
- # [01:30] <TabAtkins> HTML/CSS with 3d transforms!
- # [01:30] <jwm> hehe
- # [01:30] <TabAtkins> It'll only work in Safari, but it'll be beautiful!
- # [01:31] <jwm> hah
- # [01:34] <jwm> I guess regular web tech xhtml/css will do what I want to do
- # [01:34] <jwm> was just trying to figure out what to use for graphics to rescale them
- # [01:34] <jwm> hehe
- # [01:34] * Joins: dimich (n=dimich@74.125.59.73)
- # [01:37] * Joins: wakaba_0 (n=wakaba_@122x221x184x68.ap122.ftth.ucom.ne.jp)
- # [01:37] * Joins: karlushi (n=karlushi@fw.vdl2.ca)
- # [01:37] * Quits: cying (n=cying@70.90.171.153)
- # [01:39] <Philip`> <canvas> never does nice automatic scaling
- # [01:39] * Quits: dglazkov (n=dglazkov@nat/google/x-usmcxyedntgknjja)
- # [01:40] <Philip`> The size of the bitmap is determined by the width/height attributes on the element (possibly multiplied by a constant), and it does usually-ugly resampling to match whatever size CSS tells it to render at
- # [01:41] <Philip`> and you'd have to do some manual work if you want the bitmap dimensions to match the rendered size
- # [01:41] <jwm> crap
- # [01:41] <jwm> ok
- # [01:42] <Philip`> SVG is probably much more appropriate for scalable graphics, if you don't need canvas's immediate-mode API
- # [01:43] * Quits: JonathanNeal_oww (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com) ("Leaving")
- # [01:46] <jwm> yeah but it seems canvas has a lot more steam behind it
- # [01:46] <jwm> hehe
- # [01:46] <jwm> totally different things I know
- # [01:52] <Philip`> Steam doesn't seem so important, what matters is the functionality they provide
- # [01:52] <Philip`> (and they're not going to provide functionality much different to what they provide today)
- # [01:58] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Connection timed out)
- # [02:05] * Joins: othermaciej (n=mjs@17.246.19.201)
- # [02:06] * Hixie wonders how his IMAP server ended up with a "INBOX.INBOX.INBOX.INBOX.INBOX.Apple Mail To Do" folder
- # [02:08] * Joins: karlushi (n=karlushi@fw.vdl2.ca)
- # [02:09] <jcranmer> google hates you
- # [02:09] * Quits: dbaron (n=dbaron@nat/mozilla/x-bxmiubjyvcrxmaas) ("8403864 bytes have been tenured, next gc will be global.")
- # [02:12] * ray_ is now known as ray
- # [02:13] <Hixie> jcranmer: google?
- # [02:14] <jcranmer> oh, you're not using GMail? ;-)
- # [02:15] <jwm> hehe
- # [02:20] <Hixie> jcranmer: i am, but this isn't the gmail IMAP server in this particular case :-)
- # [02:20] <jcranmer> well, it's still fun to poke at gmail
- # [02:20] * Joins: martink (n=kmartiin@p57AC6D46.dip.t-dialin.net)
- # [02:23] * Joins: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [02:25] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Read error: 110 (Connection timed out))
- # [02:44] * Quits: kmartiin (n=kmartiin@p57AC6C99.dip.t-dialin.net) (Read error: 110 (Connection timed out))
- # [02:52] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 110 (Connection timed out))
- # [02:53] * Joins: GarethAdams_ (n=GarethAd@pdpc/supporter/active/GarethAdams)
- # [02:57] * Joins: paul_iri_ (n=paul_iri@c-71-192-163-128.hsd1.nh.comcast.net)
- # [02:58] * Quits: paul_irish (n=paul_iri@c-71-192-163-128.hsd1.nh.comcast.net) (Nick collision from services.)
- # [02:58] * paul_iri_ is now known as paul_irish
- # [03:00] * Joins: wakaba_1 (n=wakaba_@119-228-219-41.eonet.ne.jp)
- # [03:02] * Quits: GarethAdams|Home (n=GarethAd@pdpc/supporter/active/GarethAdams) (Read error: 110 (Connection timed out))
- # [03:02] * GarethAdams_ is now known as GarethAdams|Home
- # [03:03] * Quits: ap (n=ap@17.246.19.5)
- # [03:12] * Quits: martink (n=kmartiin@p57AC6D46.dip.t-dialin.net) (Remote closed the connection)
- # [03:13] * Joins: dbaron (n=dbaron@c-98-234-51-190.hsd1.ca.comcast.net)
- # [03:16] * Quits: wakaba_0 (n=wakaba_@122x221x184x68.ap122.ftth.ucom.ne.jp) (Read error: 113 (No route to host))
- # [03:21] * Joins: MikeSmith (n=MikeSmit@tea12.w3.mag.keio.ac.jp)
- # [03:35] <MikeSmith> the lxml getprevious() and getparent() methods seem to cause the state to change
- # [03:39] * Joins: mackstann_ (n=death@216-20-152-177-dsl.hevanet.com)
- # [03:41] <MikeSmith> gsnedders, jgraham - http://pastebin.ca/1766042
- # [03:42] <MikeSmith> patch to make anolis --filter option work as expected
- # [03:43] <MikeSmith> summary: use element.drop_tree() instead of element.getparent().remove(element)
- # [03:43] * Quits: gavin_ (n=gavin@firefox/developer/gavin) (Read error: 110 (Connection timed out))
- # [03:44] * Joins: gavin_ (n=gavin@firefox/developer/gavin)
- # [03:46] <MikeSmith> actually, I guess you might as well just do:
- # [03:46] <MikeSmith> http://pastebin.ca/1766045
- # [03:48] <MikeSmith> get rid of the remove(element) function altogether
- # [03:48] <MikeSmith> wait
- # [03:50] * Joins: miketaylr (n=miketayl@24.42.95.234)
- # [03:54] * Joins: aroben (n=aroben@unaffiliated/aroben)
- # [03:58] * Joins: sbublava (n=stephan@77.119.160.151.wireless.dyn.drei.com)
- # [03:58] * Quits: m_W (n=mwj@c-69-141-106-205.hsd1.nj.comcast.net)
- # [04:08] * Quits: drunknbass_work (n=aaron@71.107.253.243) (Client Quit)
- # [04:11] * pham__ is now known as quuxman
- # [04:22] * Joins: sbublava_ (n=stephan@77.119.27.133.wireless.dyn.drei.com)
- # [04:26] * Quits: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [04:36] * Quits: Heimidal (n=heimidal@unaffiliated/heimidal) (Remote closed the connection)
- # [04:43] * Quits: sbublava (n=stephan@77.119.160.151.wireless.dyn.drei.com) (Read error: 110 (Connection timed out))
- # [04:46] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 104 (Connection reset by peer))
- # [04:57] * Joins: aroben (n=aroben@unaffiliated/aroben)
- # [05:02] * Quits: jwalden (n=waldo@nat/mozilla/x-xbswdvgcjunxncrj) ("ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.2/20100122095031]")
- # [05:05] * Quits: mackstann_ (n=death@216-20-152-177-dsl.hevanet.com)
- # [05:05] * Joins: mackstann_ (n=death@216-20-152-177-dsl.hevanet.com)
- # [05:08] * Quits: cpearce (n=cpearce@203-97-204-82.dsl.clear.net.nz) ("ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.15/2009101909]")
- # [05:13] * Joins: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [05:16] * Quits: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net) (Client Quit)
- # [05:23] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 104 (Connection reset by peer))
- # [05:37] * Quits: breakmau5 (n=breakz@erft-4db7ca93.pool.mediaWays.net) (Read error: 113 (No route to host))
- # [05:37] * Quits: jmb (n=jmb@login.ecs.soton.ac.uk) (Read error: 110 (Connection timed out))
- # [05:48] * Joins: JonathanNeal (n=Jonathan@99-59-124-67.lightspeed.irvnca.sbcglobal.net)
- # [05:50] * Joins: hamaji (n=hamaji@220.109.219.244)
- # [05:52] <JonathanNeal> hey guys what was that site that shows off html5 sites
- # [05:52] <jwm> google
- # [05:53] <JonathanNeal> http://html5gallery.com/
- # [05:53] <JonathanNeal> :D
- # [05:53] <jwm> :)
- # [05:54] <JonathanNeal> boaz in the ot told me
- # [05:54] <jwm> if you just type html5 sites
- # [05:54] <jwm> into google
- # [05:54] <jwm> it's the first result
- # [05:54] <jwm> :)
- # [05:55] <JonathanNeal> I searched for "sites running html 5"
- # [05:55] <jwm> ohh
- # [05:55] <jwm> if you searched for html5 sites
- # [05:55] * Quits: sbublava_ (n=stephan@77.119.27.133.wireless.dyn.drei.com) (Client Quit)
- # [05:55] <jwm> then it'd of pulled it
- # [05:55] <jwm> just like you typed :)
- # [05:57] * Quits: othermaciej (n=mjs@17.246.19.201)
- # [06:00] <JonathanNeal> jwm, i'm sorry i didn't jfgi right
- # [06:00] <jwm> haha
- # [06:00] <jwm> nah I didn't mean that mean
- # [06:00] <jwm> I seriously didn't know where it was either
- # [06:01] <jwm> I don't understand what a html5 site would be
- # [06:01] <jwm> other than for inclusion of canvas and tables
- # [06:01] <jwm> hehe
- # [06:02] <JonathanNeal> http://www.liferay.com/
- # [06:02] <JonathanNeal> we're all html'd up, well except that we have no need for canvas yet.
- # [06:04] * Joins: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [06:07] * Quits: roc (n=roc@203-97-204-82.dsl.clear.net.nz)
- # [06:08] * Quits: miketaylr (n=miketayl@24.42.95.234) (Remote closed the connection)
- # [06:15] * Quits: Amorphous (i=jan@unaffiliated/amorphous) (Read error: 113 (No route to host))
- # [06:18] * Joins: Amorphous (i=jan@unaffiliated/amorphous)
- # [06:22] * Quits: TabAtkins (n=chatzill@70-139-15-246.lightspeed.rsbgtx.sbcglobal.net) (Read error: 110 (Connection timed out))
- # [06:29] * Joins: cpearce (n=cpearce@ip-118-90-22-222.xdsl.xnet.co.nz)
- # [06:37] * Quits: gavin_ (n=gavin@firefox/developer/gavin) (Success)
- # [06:37] * Joins: gavin_ (n=gavin@firefox/developer/gavin)
- # [06:54] * Joins: othermaciej (n=mjs@c-69-181-42-237.hsd1.ca.comcast.net)
- # [06:56] * Quits: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [07:03] * Joins: kmartiin (n=kmartiin@p57AC6D46.dip.t-dialin.net)
- # [07:08] * Quits: kmartiin (n=kmartiin@p57AC6D46.dip.t-dialin.net) (Remote closed the connection)
- # [07:15] * Joins: jwalden (n=waldo@c-98-248-40-206.hsd1.ca.comcast.net)
- # [07:25] * Quits: gavin_ (n=gavin@firefox/developer/gavin) (Read error: 110 (Connection timed out))
- # [07:26] * Joins: gavin_ (n=gavin@firefox/developer/gavin)
- # [07:37] * Joins: jorlow_ (n=jorlow@216.239.45.130)
- # [07:50] * Quits: dbaron (n=dbaron@c-98-234-51-190.hsd1.ca.comcast.net) (Read error: 110 (Connection timed out))
- # [08:05] * Joins: workmad3 (n=workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com)
- # [08:15] * Quits: JonathanNeal (n=Jonathan@99-59-124-67.lightspeed.irvnca.sbcglobal.net) (Read error: 110 (Connection timed out))
- # [08:16] * Joins: JonathanNeal (n=Jonathan@76-219-69-134.lightspeed.breaca.sbcglobal.net)
- # [08:22] * Joins: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de)
- # [08:30] <hsivonen> How is about:blank going?
- # [08:31] <jwm> heh
- # [08:31] <jwm> getting there
- # [08:31] <jwm> maybe some day
- # [08:45] * Joins: pesla (n=retep@procurios.xs4all.nl)
- # [08:49] <MikeSmith> hsivonen: so do I read mnot's comments correctly, the resolution of the rel-registry license sub-discussion is that it will in fact carry an MIT license?
- # [08:50] * Joins: FireFly (n=firefly@unaffiliated/firefly)
- # [08:50] <hsivonen> MikeSmith: so it seemed, but I still have messages on public-html that I need to read and reply to
- # [08:50] * Joins: foolip_ (n=philip@h-63-95.A163.priv.bahnhof.se)
- # [08:52] <MikeSmith> hsivonen: fwiw, if Mark has gotten agreement from whomever else he talked with off-list, it doesn't seem necessary to respond any further to Roy's messages asserting that no license is necessary
- # [08:52] * Joins: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl)
- # [08:52] <hsivonen> MikeSmith: ok
- # [08:53] <MikeSmith> hsivonen: well, just imho
- # [08:53] <hsivonen> MikeSmith: understood
- # [08:54] <MikeSmith> anyway, if the rel registry will in fact have an explicit license, it seems like a case can been made for adding the same or similar license to the language-subtag and character-encoding-name registries
- # [08:54] <hsivonen> yeah
- # [08:56] * Quits: foolip (n=philip@h-63-95.A163.priv.bahnhof.se) (Read error: 110 (Connection timed out))
- # [08:57] * Joins: drunknbass_work (n=aaron@cpe-76-173-195-145.socal.res.rr.com)
- # [09:02] * Joins: erlehmann (n=erlehman@82.113.106.109)
- # [09:11] * Joins: mhausenblas (n=mhausenb@wg1-nat.fwgal01.deri.ie)
- # [09:11] * Joins: karlushi (n=karlushi@fw.vdl2.ca)
- # [09:23] * Quits: FireFly (n=firefly@unaffiliated/firefly) ("Leaving")
- # [09:25] * Quits: workmad3 (n=workmad3@cpc3-bagu10-0-0-cust651.1-3.cable.virginmedia.com) (Remote closed the connection)
- # [09:30] * Joins: jorlow__ (n=jorlow@c-67-164-97-172.hsd1.ca.comcast.net)
- # [09:41] * Quits: jorlow__ (n=jorlow@c-67-164-97-172.hsd1.ca.comcast.net) (Client Quit)
- # [09:43] <jwm> can you make bitmaps scale inside of canvas?
- # [09:43] <jwm> without javascript
- # [09:47] * Quits: jorlow_ (n=jorlow@216.239.45.130) (Read error: 110 (Connection timed out))
- # [09:52] * Quits: Rik` (n=Rik`@pha75-2-81-57-187-57.fbx.proxad.net)
- # [09:53] * Quits: mackstann_ (n=death@216-20-152-177-dsl.hevanet.com) (Read error: 60 (Operation timed out))
- # [09:56] * Quits: MikeSmith (n=MikeSmit@tea12.w3.mag.keio.ac.jp) ("Tomorrow to fresh woods, and pastures new.")
- # [10:01] * Quits: cpearce (n=cpearce@ip-118-90-22-222.xdsl.xnet.co.nz) ("ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.0.15/2009101909]")
- # [10:07] <Philip`> jwm: You can't use canvas at all without JS
- # [10:09] * Quits: othermaciej (n=mjs@c-69-181-42-237.hsd1.ca.comcast.net)
- # [10:11] * Quits: GarethAdams|Home (n=GarethAd@pdpc/supporter/active/GarethAdams)
- # [10:26] <hsivonen> Boo. Prototype uses browser sniffing :-(
- # [10:27] <hsivonen> I thought these canned JS libs were supposed to do things the Right Way
- # [10:27] <hsivonen> (with feature sniffing)
- # [10:34] * Joins: mat_t (n=mattomas@91.189.88.12)
- # [10:35] * Joins: timz (n=mostrovo@dc51469cbe.adsl.wanadoo.nl)
- # [10:35] <jgraham> hsivonen: IIRC MooTools uses browser sniffing too
- # [10:36] <jgraham> (or at least it changes the expected results of at least one of its tests based on whether it thinks you are Opera or not)
- # [10:44] * Quits: jwalden (n=waldo@c-98-248-40-206.hsd1.ca.comcast.net) ("ChatZilla 0.9.85-rdmsoft [XULRunner 1.9.2/20100122095031]")
- # [10:44] * Joins: ROBOd (n=robod@89.122.216.38)
- # [10:47] * Joins: Phae (n=phaeness@gateb.thls.bbc.co.uk)
- # [10:50] * Joins: jmb (n=jmb@login.ecs.soton.ac.uk)
- # [10:53] * Quits: GarethAdams|Work (n=GarethAd@pdpc/supporter/active/GarethAdams)
- # [11:02] * Joins: workmad3 (n=workmad3@cspool71.cs.man.ac.uk)
- # [11:07] * Quits: gavin_ (n=gavin@firefox/developer/gavin) (Read error: 110 (Connection timed out))
- # [11:07] * Joins: gavin_ (n=gavin@firefox/developer/gavin)
- # [11:13] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Connection timed out)
- # [11:13] * Joins: tametick (n=chatzill@chello084114134061.3.15.vie.surfer.at)
- # [11:18] <gsnedders> hsivonen: All the major libraries do
- # [11:18] <gsnedders> Sometimes with broken codepaths for some browsers, which lead to failing tests that they obviously don't care about.
- # [11:19] <krijnh> Whoops, somebody changed my IP :/
- # [11:20] * gsnedders blames krijn
- # [11:21] * Joins: JonathanNeal_oww (n=Jonathan@76-219-69-134.lightspeed.breaca.sbcglobal.net)
- # [11:21] * krijnh blames his little brother
- # [11:21] <krijnh> But I think the interwebs are faster now
- # [11:22] <gsnedders> The tubes you have now less blocked?
- # [11:22] * Joins: karlushi (n=karlushi@fw.vdl2.ca)
- # [11:23] <krijnh> Got a new connection, hope it improves /irc-logs/ speedyness :)
- # [11:29] <hsivonen> hmm. does WebKit save the form element source order for submission order instead of relying on the DOM order?
- # [11:37] * Quits: JonathanNeal (n=Jonathan@76-219-69-134.lightspeed.breaca.sbcglobal.net) (Read error: 110 (Connection timed out))
- # [11:41] * Joins: breakmau5 (n=breakz@erft-5d80d462.pool.mediaWays.net)
- # [11:42] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [11:50] * Joins: svl_ (n=me@ip565744a7.direct-adsl.nl)
- # [11:54] * Quits: drunknbass_work (n=aaron@cpe-76-173-195-145.socal.res.rr.com) (Client Quit)
- # [11:54] * svl_ is now known as svl
- # [11:55] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
- # [11:59] * Quits: Guest88730 (i=beos@81-233-16-19-no30.tbcn.telia.com) (Client Quit)
- # [12:02] * Joins: starjive (i=beos@81-233-16-19-no30.tbcn.telia.com)
- # [12:02] * Quits: karlushi (n=karlushi@fw.vdl2.ca) (Read error: 110 (Connection timed out))
- # [12:02] * Quits: erlehmann (n=erlehman@82.113.106.109) ("Ex-Chat")
- # [14:04] * Disconnected
- # [15:18] * Attempting to rejoin channel #whatwg
- # [15:18] * Rejoined channel #whatwg
- # [15:18] * Topic is 'WHATWG: http://www.whatwg.org/ -- logs: http://krijnhoetmer.nl/irc-logs/ -- stats: http://gavinsharp.com/irc/whatwg.html -- Please leave your sense of logic at the door, thanks!'
- # [15:18] * Set by annevk42 on Mon Oct 19 22:03:06
- # [15:20] * Joins: tndH_ (n=Rob@cpc2-leed18-0-0-cust427.leed.cable.ntl.com)
- # [15:20] * Quits: tndH (n=Rob@cpc2-leed18-0-0-cust427.leed.cable.ntl.com) (Read error: 110 (Connection timed out))
- # [15:20] * tndH_ is now known as tndH
- # [15:20] * Quits: tametick (n=chatzill@chello084114134061.3.15.vie.surfer.at) (Client Quit)
- # [15:32] * Joins: kmartiin (n=kmartiin@p57AC6D46.dip.t-dialin.net)
- # [15:36] * Quits: hish_ (n=chatzill@p57B7F56F.dip.t-dialin.net) (Remote closed the connection)
- # [15:40] * Quits: CriticalMass (n=chatzill@brick-lane.lbi.co.uk) ("ChatZilla 0.9.86 [Firefox 3.6/20100115144158]")
- # [15:44] * Joins: CriticalMass (n=andrew@brick-lane.lbi.co.uk)
- # [16:00] * Quits: paul_irish (n=paul_iri@c-71-192-163-128.hsd1.nh.comcast.net) ("Leaving...")
- # [16:01] * Quits: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com)
- # [16:04] * Joins: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com)
- # [16:04] * Joins: jgornick (n=joe@199.199.210.66)
- # [16:07] * Joins: Utkarsh (n=admin@117.201.89.199)
- # [16:07] * Quits: ccklaus (n=chatzill@pc154-c716.uibk.ac.at) ("ChatZilla 0.9.86 [Firefox 3.6.1pre/20100122082234]")
- # [16:07] * Quits: miketaylr (n=miketayl@38.117.156.163) (Remote closed the connection)
- # [16:12] * Joins: hish (n=chatzill@p57B7F56F.dip.t-dialin.net)
- # [16:12] * Joins: miketaylr (n=miketayl@38.117.156.163)
- # [16:15] * Joins: ttepasse (n=ttepas--@ip-95-222-120-117.unitymediagroup.de)
- # [16:25] * Quits: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com) (Read error: 110 (Connection timed out))
- # [16:25] * Joins: GarethAdams|Work (n=GarethAd@pdpc/supporter/active/GarethAdams)
- # [16:28] * Joins: hish_ (n=chatzill@p57B7F29F.dip.t-dialin.net)
- # [16:31] * Joins: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [16:38] * Joins: Michelangelo (n=Michelan@93-41-41-78.ip79.fastwebnet.it)
- # [16:45] <TabAtkins> All right, so, data urls vs @srcdoc. What are the problems again? (I'll list the ones I know, see if I missed any before I send this email.)
- # [16:45] * Quits: hish (n=chatzill@p57B7F56F.dip.t-dialin.net) (Read error: 110 (Connection timed out))
- # [16:46] <TabAtkins> 1) data urls will work in current UAs that don't understand sandbox, thus "failing open". Will the sandboxed html mime type help with this?
- # [16:46] <TabAtkins> 2) data urls have more difficult escaping requirements. Possibly not. PHP escapes things correctly with rawurlencode, python also has a built-in function that will do it properly.
- # [16:46] <TabAtkins> 3) ?
- # [16:47] <AryehGregor> 1) Yes, sandboxed HTML MIME type should solve that problem, I think.
- # [16:47] <TabAtkins> Maybe something with origins? data urls are automatically unique-origin, right? Could @sandbox=allow-same-origin just special-case override that?
- # [16:47] <AryehGregor> 3) You can save some annoying boilerplate with srcdoc="".
- # [16:47] <TabAtkins> Just the "text/html;charset=utf8" bit, right?
- # [16:48] <Dashiva> And the doctype
- # [16:48] * Joins: FireFly (n=firefly@unaffiliated/firefly)
- # [16:48] <TabAtkins> Ah, right. And <title>.
- # [16:48] <gsnedders> TabAtkins: IE < 8 is still normally a consideration, IE8 is limited to 32KB
- # [16:48] <gsnedders> (or maybe KiB?)
- # [16:48] <TabAtkins> what's the limit on IE<8?
- # [16:48] <gsnedders> TabAtkins: they have no data uri impl
- # [16:49] <TabAtkins> Oh, well then. That's not a big deal, then, because they don't have a @srcdoc impl either.
- # [16:49] <Dashiva> I also dispute 2)
- # [16:49] <TabAtkins> But 32kb. That may be an issue.
- # [16:49] <Dashiva> Sure, PHP has _a_ function that does it right
- # [16:49] <TabAtkins> Dashiva: Dispute how?
- # [16:49] <Dashiva> But it's hardly given that people will choose the right one
- # [16:49] <AryehGregor> You don't really need to include <title>.
- # [16:49] <TabAtkins> And one that does it wrong in an immediately obvious (but not security-relevant) way.
- # [16:50] <TabAtkins> I mean, the very first comment I see that looks like "First+post+LOLOLOL", I'll know something's wrong.
- # [16:50] <AryehGregor> Yeah, I don't think the existence of urlencode() is a big deal.
- # [16:50] <Dashiva> Yeah, if you use that one
- # [16:50] <TabAtkins> Are there other url-encoding functions in PHP that we expect authors will use?
- # [16:51] <gsnedders> urlencode()?
- # [16:51] <Dashiva> I wouldn't be surprised if people tried with the html* functions too
- # [16:51] <TabAtkins> That's the one I just mentioned.
- # [16:51] * jgraham assumes authors will use my_broken_url_encoder()
- # [16:51] <TabAtkins> htmlspecialchars? Hmm. I wonder how quickly that would fail.
- # [16:51] <AryehGregor> Dashiva, as long as it fails in an obvious way, it's not a big deal, you can't get much better than that.
- # [16:51] <AryehGregor> Some people will try urlencode() on srcdoc too.
- # [16:52] <Dashiva> AryehGregor: Yes, but then we have to first verify that all the obvious functions do fail in an obvious way
- # [16:52] <Dashiva> We can't just assume they will
- # [16:52] <AryehGregor> The same goes for srcdoc.
- # [16:52] <gsnedders> urlencode/rawurlencode are a lot easier to mix up though
- # [16:52] * Joins: drunknbass_work (n=aaron@cpe-76-173-195-145.socal.res.rr.com)
- # [16:52] <AryehGregor> But the wrong one fails quickly and obviously, so I don't think we have to worry about it.
- # [16:52] <TabAtkins> And fails in a way that doesn't compromise security.
- # [16:52] <gsnedders> Sure, I know that urlencode encodes \x20 as + and rawurlencode encodes it as %20, but most authors don't.
- # [16:52] * Quits: drunknbass_work (n=aaron@cpe-76-173-195-145.socal.res.rr.com) (Remote closed the connection)
- # [16:53] <TabAtkins> Most authors will use urlencode, see lots of +s in their page, and google for it.
- # [16:53] <AryehGregor> They'll figure it out pretty quickly.
- # [16:53] <AryehGregor> Not a big deal.
- # [16:54] * AryehGregor wonders why browser release announcements seem to select benchmarks at random to show how much their performance has improved . . . do they just pick the most favorable one? A recent Chrome announcement gives improvement on "Mozilla's Dromaeo DOM Core Tests", previous ones have used SunSpider, V8's crazy tests, . . .
- # [16:55] <AryehGregor> Oh, neat, Chrome 4 supports STS.
- # [16:55] <Dashiva> AryehGregor: Kind of like how every new car was "car of the year" in at least one car magazine
- # [16:56] * Joins: tametick (n=chatzill@chello084114134061.3.15.vie.surfer.at)
- # [16:56] <TabAtkins> Hmm, can anyone think of something I can put in a data url that will pass through htmlspecialchars unscathed and cause problems? By default, it escapes <>"& (not ').
- # [16:57] <AryehGregor> TabAtkins, ' will cause problems, if the attribute uses ' instead of " for quoting. :)
- # [16:57] <TabAtkins> Yeah, but it fails even quicker than @srcdoc will if you forget to escape the ".
- # [16:57] <TabAtkins> Because people use ' all the time.
- # [16:57] <AryehGregor> "HTML5: Notifications, Web Database, Local Storage, WebSockets, Ruby support" <-- How many of these are actually part of HTML5? Maybe Ruby support? Is Notifications even a vendor-neutral spec?
- # [16:57] <gsnedders> But with larger security issues
- # [16:57] <TabAtkins> gsnedders: Yes, but with identical security issues to @srcdoc.
- # [16:57] <gsnedders> AryehGregor: Most of them _used_ to be HTML 5
- # [16:58] <AryehGregor> I guess "HTML5" just means "cool new web features anyway".
- # [16:58] <gsnedders> All apart from Ruby were originally HTML 5.
- # [16:58] <AryehGregor> We should rename the HTML5 spec to "Some Random Subset of HTML5" to reflect common usage.
- # [16:59] <Philip`> I thought IE8 only supports data: for images, not HTML pages
- # [17:00] <Philip`> so its length limit is irrelevant
- # [17:01] <Philip`> TabAtkins: # breaks data: in Opera but not other browsers, I think
- # [17:01] * Quits: maikmerten (n=merten@ls5dhcp196.cs.uni-dortmund.de) (Remote closed the connection)
- # [17:01] <AryehGregor> Yeah, Opera treats stuff after a # as the URL fragment, right?
- # [17:01] <AryehGregor> Really annoying.
- # [17:01] * foolip_ is now known as foolip
- # [17:01] <AryehGregor> Is there a spec that says whether that's right or wrong?
- # [17:02] <TabAtkins> Huh. Something's breaking my page in IE, and causing it to navigate to one of the data urls.
- # [17:03] <TabAtkins> Does IE8 'do' data urls in iframe @src?
- # [17:04] * Quits: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl) ("Disconnected...")
- # [17:04] * Quits: dglazkov (n=dglazkov@c-67-188-0-62.hsd1.ca.comcast.net)
- # [17:05] <Philip`> TabAtkins: I thought IE8 only supports data: for images, not HTML pages
- # [17:05] <TabAtkins> Possibly. Which means we can ignore the size limits of IE8, which is good.
- # [17:05] <Philip`> (It basically does the minimum needed for Acid2)
- # [17:06] <AryehGregor> IE8 doesn't support sandbox anyway, obviously, so who cares about it in this context?
- # [17:06] <AryehGregor> We have no backward compatibility here anyway.
- # [17:08] <TabAtkins> AryehGregor: Yeah, but we have to be careful about, frex, resource sniffing.
- # [17:08] <AryehGregor> Hmm?
- # [17:08] <TabAtkins> Wouldn't want IE to sniff a text/html-sandboxed page as text/html.
- # [17:08] <AryehGregor> Will it
- # [17:08] <AryehGregor> ?
- # [17:08] <AryehGregor> That seems unrelated.
- # [17:09] <TabAtkins> I know they sniff resources for html-ness normally. Of course, their complete lack of support for pages in data: urls means we don't have to worry about it.
- # [17:09] <TabAtkins> IIRC, it's somewhat difficult to serve html as text/plain to IE?
- # [17:10] <Dashiva> Shelley is planning on filing several thousand change requests?
- # [17:10] <AryehGregor> TabAtkins, they only sniff for certain MIME types, IIRC.
- # [17:10] <TabAtkins> Okay.
- # [17:10] <TabAtkins> Dashiva: Eventually, probably.
- # [17:10] <AryehGregor> I think someone tested this, no?
- # [17:10] <TabAtkins> I have no idea. I'm relying on hazy recollections.
- # [17:11] <AryehGregor> Mark Pilgrim's lastest WHATWG blog post says no current browser will execute text/sandboxed-html.
- # [17:11] <Dashiva> Just doing some calculations based on http://lists.w3.org/Archives/Public/public-html/2010Jan/1308.html
- # [17:11] * Quits: breakmau5 (n=breakz@erft-5d80d462.pool.mediaWays.net) (No route to host)
- # [17:11] <Philip`> I'm not aware of anyone testing it thoroughly
- # [17:13] * Philip` wouldn't count unevidenced statements in blog posts as being particularly meaningful
- # [17:14] <danbri> interesting note from bengee - http://bnode.org/blog/2010/01/26/microdata-semantic-markup-for-both-rdfers-and-non-rdfers
- # [17:18] <TabAtkins> When opera breaks on unescaped #, it's an innocuous break, right? Just a malformed page, not busting content out into attributes?
- # [17:18] <Lachy> Interesting. "Atom, microformats, OpenID, Portable Contacts, XRDS, Activity Streams, these are all examples where RDFers tried, but failed to promote some of their infrastructure into the respective solutions"
- # [17:21] <GarethAdams|Work> I just noticed that HTML5 still doesn't me mark up inline lists. <p>I went shopping for <ul><li>lightbulbs,</li> <li>widgets,</li> <li>flozzbots and</li> <li>some milk</li></ul>, but I got distracted and ended up in the pub.</p>
- # [17:21] * Joins: csarven (n=csarven@ip157-77-212-87.adsl2.static.versatel.nl)
- # [17:21] <TabAtkins> Sure it does. ul,li{display:inline;}
- # [17:21] * Joins: jambo (n=jambo@31-34-201.wireless.csail.mit.edu)
- # [17:21] <AryehGregor> TabAtkins, it just treats everything after # as the fragment portion of the URL, AFAIK.
- # [17:22] <AryehGregor> TabAtkins, not in <p>.
- # [17:22] <TabAtkins> AryehGregor: Cool, so that's innocuous.
- # [17:22] <TabAtkins> AryehGregor: Ah, you're right. Silly me.
- # [17:22] <AryehGregor> GarethAdams|Work, you can't put <ul> inside <p> in text/html, it's not compatible with legacy browsers.
- # [17:22] <TabAtkins> I always forget about <p>'s silly self-closing rules.
- # [17:22] * Quits: BlurstOfTimes (n=blurstof@168.203.117.66) (Client Quit)
- # [17:22] <TabAtkins> That causes me problems sometimes.
- # [17:22] <Philip`> GarethAdams|Work: Why not write it like "<p>I went shopping for lightbulbs, widgets, ..."?
- # [17:22] <Dashiva> Also, <li> has a horrible delimiter story
- # [17:23] <Dashiva> E.g. if you want a list like apples | bananas | other fruits
- # [17:23] <GarethAdams|Work> ah, legacy browsers, shoulda guessed
- # [17:23] <AryehGregor> GarethAdams|Work, "legacy" meaning "all".
- # [17:23] <GarethAdams|Work> yeh
- # [17:23] <GarethAdams|Work> I forgot about the backward compatibility
- # [17:23] <AryehGregor> I mean, it's part of text/html parsing rules that <p>Foo <ul><li>Bar inserts </p> before the <ul> (effectively).
- # [17:23] <GarethAdams|Work> schoolboy error
- # [17:23] * Joins: jg (n=jg@135.245.8.1)
- # [17:24] <GarethAdams|Work> Dashiva: the delimiter problem is down to bad support for `:after` and `content:` in CSS though
- # [17:25] * Parts: jambo (n=jambo@31-34-201.wireless.csail.mit.edu)
- # [17:25] * Joins: dglazkov (n=dglazkov@nat/google/x-acyaxsxsduwtbnws)
- # [17:25] <Dashiva> GarethAdams|Work: That's still a bad story
- # [17:25] <Dashiva> You need special casing for first/last element, etc
- # [17:26] * Quits: erlehmann (n=erlehman@82.113.106.109) (Read error: 113 (No route to host))
- # [17:26] <Dashiva> "There is a great deal of contention about the new srcdoc attribute."
- # [17:27] <Philip`> If you count number of emails, there has
- # [17:27] <Philip`> Maybe not so much if you count people
- # [17:28] * Joins: BlurstOfTimes (n=blurstof@168.203.117.66)
- # [17:28] <Dashiva> Maybe ask Sam to revive the frequent poster statistics
- # [17:29] <TabAtkins> So, the issues are (1) fail open, (2) harder escaping, (3) boilerplate, and (4) unique origins? Anything else?
- # [17:30] <Dashiva> URL size limit, potentially. We won't know until the future browsers are released, though.
- # [17:30] <TabAtkins> True, I'll bring that up.
- # [17:31] <Dashiva> Also, there's the dual source thing
- # [17:31] <Dashiva> With srcdoc, you can use src you provide fallback for browsers that don't support it
- # [17:31] <Dashiva> *use src to
- # [17:31] * Joins: erlehmann (n=erlehman@82.113.106.109)
- # [17:36] <TabAtkins> Right.
- # [17:36] <AryehGregor> Maybe we should use the Cooke method in the HTMLWG: http://www.rff.org/News/Features/Pages/The-Cooke-Method-A-Route-to-More-Reliable-Expert-Advice.aspx
- # [17:37] <TabAtkins> Though, you have to manually clean the @src content, which makes it kind of redundant.
- # [17:37] <Dashiva> No, you wouldn't clean it at all
- # [17:37] <Dashiva> It would say "Your browser doesn't support secure iframes, please upgrade or something, I don't know"
- # [17:38] <TabAtkins> Haha.
- # [17:38] <AryehGregor> Dashiva, browsers could just as well have a srcdoc size limit.
- # [17:38] <AryehGregor> Future ones, I mean.
- # [17:38] <TabAtkins> AryehGregor: Could, but that hasn't been demonstrated yet.
- # [17:38] <AryehGregor> Nor have limits on data URL length for sandboxed iframes.
- # [17:38] * Joins: MikeSmithX (n=MikeSmit@EM111-188-0-118.pool.e-mobile.ne.jp)
- # [17:39] * Quits: pesla (n=retep@procurios.xs4all.nl) ("( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )")
- # [17:40] <Dashiva> AryehGregor: There already are quite real limits on data URLs, though. It's not a matter of possibly breaking, it's a matter of breaking unless it gets fixed.
- # [17:41] <AryehGregor> Introducing a whole new attribute and hoping there won't be comparable length limits seems like a roundabout way to address the problem. You could just mandate a minimum length for data URLs.
- # [17:41] <AryehGregor> I mean, minimum maximum supported length.
- # [17:42] <Dashiva> It's not a way to address the problem, it's a way to address lots of different problems
- # [17:43] * AryehGregor is unconvinced.
- # [17:43] <Philip`> Has anybody pointed out use cases for srcdoc other than blog comments?
- # [17:43] <TabAtkins> Wiki pages.
- # [17:43] <Philip`> Things like 32KB length limits aren't really a concern in those cases
- # [17:44] <TabAtkins> Virtually all cases where untrusted users are uploading something you want to display.
- # [17:44] <TabAtkins> AryehGregor, any idea how big the largest page on wikipedia is?
- # [17:44] <Philip`> In most cases users aren't uploading HTML, so you just escape all "<"s and you're done
- # [17:44] <Lachy> personally, I'm not yet convinced of the use cases for srcdoc either
- # [17:45] <TabAtkins> I'm composing an email with a lot of discussion about data urls, their problems, and their possible solutions.
- # [17:45] <Lachy> but I think it would suck if pages like wikipedia started putting entire articles into srcdoc
- # [17:45] <AryehGregor> TabAtkins, in bytes? Actual articles or also maintenance pages and such? I wouldn't be surprised if the largest article is 1 MB
- # [17:45] <AryehGregor> .
- # [17:45] <Philip`> so it's only cases where users are uploading some subset of HTML, but a large enough subset that decent filtering is hard
- # [17:45] <TabAtkins> AryehGregor: Yeah, in bytes, and any page where you'd show untrusted user content, potentially via a sandboxed iframe.
- # [17:46] <TabAtkins> Philip`: Also, just the fact that you can guarantee that no scripts slip through your genius filtering is nice.
- # [17:46] <AryehGregor> This is a feature for a use-case that's kind of marginal to begin with, and data: URLs would work okay for it, so I really don't see what the point is.
- # [17:46] <Philip`> TabAtkins: If your filter just allows <b> and <i> and <a href> and nothing else, then you don't really need to worry about that
- # [17:47] <TabAtkins> If your filter is good enough to avoid all the crazy shenanigans hackers get up to.
- # [17:47] <TabAtkins> I just plain distrust filters.
- # [17:47] * Quits: kmartiin (n=kmartiin@p57AC6D46.dip.t-dialin.net) (Client Quit)
- # [17:48] <AryehGregor> 1) htmlspecialchars() 2) strtr( array( '<b>' => '<b>', '</b>' => '</b>', ... ) )
- # [17:48] <AryehGregor> Pretty hard for that to go wrong.
- # [17:48] <jgraham> Famous last words
- # [17:48] <Lachy> if you use proper HTML parsing, rather than a regex, and a whitelist that checks elements, attributes and attribute values (to e.g. disallow href="javascript:..."), then server side filtering should be sufficient
- # [17:49] <gsnedders> Lachy: And what major blogging package does this?
- # [17:49] <Lachy> I don't think I would choose to use srcdoc on my own blog
- # [17:49] <AryehGregor> Nobody uses proper HTML parsing.
- # [17:49] <AryehGregor> There's no such *thing* as proper HTML parsing prior to HTML5.
- # [17:49] <Lachy> I'm hoping that will start to change now that HTML parsing has been defined properly
- # [17:49] <AryehGregor> Yes, true.
- # [17:49] <gsnedders> Lachy: Parsing html in PHP is prohibitively slow.
- # [17:50] <Philip`> There's been proper HTML parser libraries long before HTML5 existed
- # [17:50] <Philip`> Why would people use HTML5 parsers when they haven't used those ones?
- # [17:50] * Joins: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com)
- # [17:50] <Philip`> (given that for blog comments you don't care about legacy compatibility, which is the only thing HTML5 adds)
- # [17:50] <jgraham> s/HTML/XML/ and you end up with the same conclusion
- # [17:50] <gsnedders> PHP5 has access to libxml's HTML parser, and nobody uses it.
- # [17:50] <Lachy> gsnedders, yes, I know. I don't think I would use PHP for a CMS. It's not a well designed language
- # [17:50] <gsnedders> Lachy: Yet the majority of CMSes on the web do.
- # [17:50] <TabAtkins> Argh, I find it ironic that Richard's emails about Canvas accessibility are almost unreadable to me because he uses HTML emails in some crazy size.
- # [17:51] <Lachy> yeah, I know they do
- # [17:51] <gsnedders> Lachy: What you personally would ues is irrelevant.
- # [17:51] * Quits: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com) (Client Quit)
- # [17:51] <AryehGregor> Lachy, you would use PHP for a CMS if you wanted it to be as widely used as possible.
- # [17:51] <jgraham> (i.e. people don't always use XML parsers when producing XML, to oftentimes hillarious effect)
- # [17:51] * Joins: dbaron (n=dbaron@c-98-234-51-190.hsd1.ca.comcast.net)
- # [17:52] <Lachy> AryehGregor, yeah, I understand that's why PHP is so common.
- # [17:52] <Dashiva> What about providing a santitation library in C or something
- # [17:52] <Philip`> jgraham: That's understandable, since XML parsers don't produce XML
- # [17:52] <AryehGregor> Also, by the way, there are no PHP libraries that are reliably available on shared hosts, unless they're written in pure PHP.
- # [17:52] <jgraham> Philip`: HTML5 parsers don't produce HTML
- # [17:52] <AryehGregor> (in which case you can bundle them)
- # [17:52] <smaug> what are "HTML5 notifications" ?
- # [17:52] <gsnedders> Dashiva: Even if you got that into PHP 5.3.3, it'd be years before I could rely upon that.
- # [17:53] <Philip`> jgraham: Indeed, and I've got no idea what relevance producing *ML has to the discussion :-)
- # [17:53] <Dashiva> No in PHP, separately
- # [17:53] <AryehGregor> smaug, it seems like they're a Google invention that has nothing to do with any standards body, but I didn't look very hard.
- # [17:53] <Dashiva> So it could be used for python and perl and whatnot too
- # [17:53] <Lachy> are there CMSs written in C or C++?
- # [17:53] <gsnedders> Dashiva: As AryehGregor says you can't run arbitary C code from PHP
- # [17:53] <smaug> AryehGregor: yet they are selling notifications as "part of HTML5"
- # [17:53] <AryehGregor> Not on all shared hosts, anyway.
- # [17:53] <Philip`> jgraham: Are you meaning XML serializers rather than parsers, or something?
- # [17:53] <gsnedders> Heck, you can't even rely upon all default enabled extensions being enabled.
- # [17:53] <gsnedders> And there might be random functions disabled.
- # [17:54] <gsnedders> I <3 PHP.
- # [17:54] <jgraham> Philip`: No I'm meaning parsers, as a first step in sanitizing user-generated content
- # [17:54] <AryehGregor> smaug, I think this falls under HTML5 as buzzword for "cool new technologies that push the boundaries of what the web platform can do", rather than HTML5 as a name for some boring old spec.
- # [17:54] <jgraham> (in the case when the output is XML)
- # [17:54] <smaug> well, usually whatever falls under HTML5 has been defined in some whatwg or w3c spec
- # [17:54] <AryehGregor> At least at some point, yeah.
- # [17:54] <Philip`> jgraham: Nobody expects users to enter XML (except annevk), so I don't see why you'd use an XML parser for that
- # [17:54] <Dashiva> Usually implies exceptions
- # [17:54] <AryehGregor> Kind of odd.
- # [17:55] <AryehGregor> I assume the person who wrote it doesn't really know what HTML5 is.
- # [17:55] <Philip`> I guess PHP shared hosts don't let you upload and run binary executables?
- # [17:56] <Dashiva> Don't ascribe to ignorance what can more easily be ascribed to competent marketing personell
- # [17:56] * Quits: MikeSmith (n=MikeSmit@EM111-188-42-243.pool.e-mobile.ne.jp) (Read error: 110 (Connection timed out))
- # [17:56] <gsnedders> Philip`: Nope
- # [17:57] <Philip`> Surely you could just find a buffer overflow bug in PHP and use that to run your C extension
- # [17:57] <AryehGregor> Philip`, some PHP shared hosts let you run binary executables.
- # [17:57] <AryehGregor> But to do that safely you have to have separate Unix users for each customer.
- # [17:57] <gsnedders> Yeah, probably, seeming most hosts run massively out of date versions of PHP…
- # [17:57] <AryehGregor> Which typically means you need to use CGI.
- # [17:58] <AryehGregor> Which doesn't perform as well as mod_php or FastCGI.
- # [17:58] <gsnedders> AryehGregor: But normally only via shell_exec in my experience
- # [17:58] <AryehGregor> gsnedders, well, yeah.
- # [17:58] <gsnedders> Which is fun combined with safe mode
- # [17:58] <AryehGregor> But that works.
- # [17:58] <gsnedders> Not with safe mode enabled
- # [17:58] <AryehGregor> If they use safe mode, yes, you're screwed.
- # [17:58] * Quits: JonathanNeal_oww (n=Jonathan@76-219-69-134.lightspeed.breaca.sbcglobal.net) (Read error: 104 (Connection reset by peer))
- # [17:58] <AryehGregor> But some hosts don't, like 1and1.com.
- # [17:58] * gsnedders needs to get around to moving stuff over to his VPS
- # [17:59] <gsnedders> Then I can run arbitary binaries :P
- # [17:59] * AryehGregor is lucky in that his first foray into web hosting was an already-running dedicated server
- # [17:59] * AryehGregor now has a dedicated 16-core machine with 16G of RAM and, soon, 1.6T of raw disk space to play around with however he wants
- # [18:00] <gsnedders> AryehGregor: So what's sqrt(pi)?
- # [18:00] <gsnedders> To a million digits?
- # [18:00] <AryehGregor> Bah, who needs decimal expansions?
- # [18:01] <AryehGregor> It's a perfectly good transcendental number, don't sully it with your base-10 nonsense.
- # [18:01] <Philip`> gsnedders: The same as 1/10^5*sum(exp(n^2/(10^10)),n=-infinity..infinity)
- # [18:01] <Philip`> apparently
- # [18:02] <AryehGregor> sum(exp(n^2/(10^10)),n=-infinity..infinity is infinite.
- # [18:02] <TabAtkins> gsnedders: √π
- # [18:03] <gsnedders> Hmm, apparently it has another root, what's that? :P
- # [18:03] <gsnedders> Or, if we want more fun, what are all three cube roots?
- # [18:03] <AryehGregor> That's trivial.
- # [18:04] <AryehGregor> Once you've got one, you just multiply by roots of unity.
- # [18:04] <workmad3> gsnedders: √π is the square root of π
- # [18:04] <workmad3> it's a multi-valued function
- # [18:04] <AryehGregor> If you take the principal nth root of x, the other nth roots are just that times e^(2k*i*pi/n), k = 1, ..., n -1.
- # [18:04] <AryehGregor> The principal square root function is not multi-valued.
- # [18:05] <gsnedders> Indeed.
- # [18:05] * Joins: aroben (n=aroben@unaffiliated/aroben)
- # [18:05] <AryehGregor> That only becomes a real problem with complex numbers.
- # [18:05] <AryehGregor> Where you don't have a continuous single-valued square root function, and there's no obvious candidate for the canonical one.
- # [18:05] <Philip`> Hmph, that's what I get for copying from a newsgroup posting
- # [18:05] * gsnedders can't remember e^(2k*i*pi/n), k = 1, ..., n -1 off the top of his head though
- # [18:05] * gsnedders guesses he must've known it once… like, a year ago.
- # [18:05] <workmad3> it rings bells
- # [18:05] <Philip`> It's meant to be 1/10^5*sum(exp(-n^2/(10^10)),n=-infinity..infinity)
- # [18:06] <gsnedders> Yeah, it looks familiar.
- # [18:06] <workmad3> haven't done anything serious along those lines since 1st year uni though... so almost 6 years ago now :(
- # [18:06] <AryehGregor> e^(2k*i*pi/n), k = 0, ..., n - 1 are the nth roots of unity (i.e., the nth roots of 1).
- # [18:06] <Philip`> Anyway, that equation gives you at least the first 42 billion decimal digits of sqrt(pi)
- # [18:07] <AryehGregor> If you know any nth root of a number, the others will just be found by multiplying by nth roots of unity.
- # [18:07] <Philip`> though it's not equal to sqrt(pi)
- # [18:07] <Philip`> Easily good enough if you just want the first million, anyway
- # [18:08] <Philip`> (http://www.cecm.sfu.ca/personal/pborwein/PAPERS/P56.pdf)
- # [18:09] <AryehGregor> Oh, dear, it's already past noon.
- # [18:09] <AryehGregor> I have to head off to my PDEs class.
- # [18:10] <gsnedders> PDEs?
- # [18:11] <AryehGregor> Partial differential equations.
- # [18:11] <Philip`> Particularly difficult equations?
- # [18:11] * Quits: riven (n=riven@53518387.cable.casema.nl) (Read error: 104 (Connection reset by peer))
- # [18:12] <Philip`> Oh
- # [18:12] <AryehGregor> Those too.
- # [18:12] <AryehGregor> And after that, an introductory cryptography course.
- # [18:12] * Joins: riven` (n=riven@53518387.cable.casema.nl)
- # [18:15] <TabAtkins> Will a data url default to utf-8 if the charset isn't specified? Is that defined anywhere?
- # [18:16] <gsnedders> TabAtkins: AFAIK what is defined is a mix of mapping IRIs to URIs and then just whatever the MIME type is
- # [18:16] * Joins: Maurice (i=copyman@5ED548D4.cable.ziggo.nl)
- # [18:16] <gsnedders> the mapping of IRI to URI will leave it in UTF-8, but given something like text/html it'll try to use charset=windows-1252
- # [18:16] <TabAtkins> So... no?
- # [18:16] <gsnedders> No.
- # [18:17] <gsnedders> Well, for application/xml it will
- # [18:17] <TabAtkins> Any idea on text/html-sandboxed?
- # [18:17] * gsnedders hasn't read the spec for that
- # [18:17] <TabAtkins> kk
- # [18:18] <Lachy> wow! http://www.romancortes.com/blog/pure-css-coke-can/
- # [18:19] <TabAtkins> Any clue on whether data urls without a doctype will trigger quirks mode? How can I quickly test this?
- # [18:19] * Quits: Phae (n=phaeness@gateb.thls.bbc.co.uk)
- # [18:19] <Lachy> TabAtkins, yes, they will trigger quirks mode
- # [18:19] <TabAtkins> Thanks.
- # [18:19] <gsnedders> TabAtkins: Yes, check parsing of <p><table>
- # [18:19] <Lachy> but you can test it easily by loading data:text/html,<p>some-html-here
- # [18:20] * Joins: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com)
- # [18:20] <Lachy> and then typing javascript:alert(document.compatMode); in to your address bar
- # [18:20] <TabAtkins> Ah, cool. Thanks.
- # [18:20] * Quits: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com) (Remote closed the connection)
- # [18:21] * Joins: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com)
- # [18:24] * Joins: sbublava (n=stephan@77.116.37.204.wireless.dyn.drei.com)
- # [18:27] * Quits: erlehmann (n=erlehman@82.113.106.109) (Remote closed the connection)
- # [18:27] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) ("This computer has gone to sleep")
- # [18:27] * Joins: erlehmann (n=erlehman@82.113.106.109)
- # [18:29] <TabAtkins> Ah, I understand how the cokecan works now. Crazy!
- # [18:30] * Quits: CriticalMass (n=andrew@brick-lane.lbi.co.uk)
- # [18:30] * riven` is now known as riven
- # [18:31] <zcorpan> http://twitter.com/strangefunction/statuses/8235849998
- # [18:33] * Joins: mlpug (n=mlpug@a88-115-164-40.elisa-laajakaista.fi)
- # [18:34] * Quits: dave_levin (n=dave_lev@74.125.59.65)
- # [18:35] * Joins: dave_levin (n=dave_lev@74.125.59.65)
- # [18:35] <Philip`> Real Coke cans don't violate the laws of perspective :-(
- # [18:36] <jgraham> Real beer cans do, if you drink enough first
- # [18:38] * Joins: JonathanNeal (n=Jonathan@rrcs-76-79-114-213.west.biz.rr.com)
- # [18:38] * Joins: ap_ (n=ap@17.246.19.5)
- # [18:42] * Joins: tametick_ (n=chatzill@chello084114134061.3.15.vie.surfer.at)
- # [18:43] * Quits: tametick (n=chatzill@chello084114134061.3.15.vie.surfer.at) (Remote closed the connection)
- # [18:43] <GarethAdams|Work> real coke cans don't violate using 55 extra divs on a page
- # [18:43] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [18:46] <TabAtkins> He didn't use 55 extra divs. He used 55 extra *<p>*s.
- # [18:46] <TabAtkins> Which is, of course, the wrong choice. It should have been <div>s. ^_^
- # [18:46] <TabAtkins> But also, this is just a cool tech trick, that's all.
- # [18:47] * ap_ is now known as ap
- # [19:00] * Quits: workmad3 (n=workmad3@cspool71.cs.man.ac.uk) (Remote closed the connection)
- # [19:03] * Joins: jorlow_ (n=jorlow@216.239.45.130)
- # [19:03] * Joins: maikmerten (n=maikmert@port-92-201-56-177.dynamic.qsc.de)
- # [19:03] * Quits: csarven (n=csarven@ip157-77-212-87.adsl2.static.versatel.nl) ("Leaving.")
- # [19:17] * Parts: adactio (n=adactio@host213-123-197-180.in-addr.btopenworld.com)
- # [19:20] * Joins: Heimidal (n=heimidal@cpe-76-168-254-92.socal.res.rr.com)
- # [19:21] * Quits: ttepasse (n=ttepas--@ip-95-222-120-117.unitymediagroup.de) ("404")
- # [19:27] * Quits: dbaron (n=dbaron@c-98-234-51-190.hsd1.ca.comcast.net) ("8403864 bytes have been tenured, next gc will be global.")
- # [19:28] * Quits: mhausenblas (n=mhausenb@wg1-nat.fwgal01.deri.ie)
- # [19:39] * Joins: Sidnicious (n=Sidney@pdpc/supporter/professional/sidney)
- # [19:43] * Quits: jorlow_ (n=jorlow@216.239.45.130) (Client Quit)
- # [19:44] * Joins: drunknbass_work (n=aaron@71.107.253.243)
- # [19:44] <Sidnicious> I've been talking with some people in #javascript about forms' submit events. Right now, if a user wants to perform validation on a form before submission, or to prevent submission and handle the form asynchronously, the user has to scrape the form to get the value of each element, perform tests for disabled inputs, and special-case inputs like checkboxes to try to replicate the information that the UA has about the form. It's imposs
- # [19:44] <Sidnicious> get information about, say, which button was pressed to submit the form. I'd be much nicer if all that information were provided in the event.
- # [19:45] * Joins: cpearce (n=cpearce@ip-118-90-96-234.xdsl.xnet.co.nz)
- # [19:45] <Sidnicious> Ack, wall of text. I'm mostly curious about where the right place is to introduce the idea: here, the WHATWG list, or some W3C list. I don't know the politics involved here.
- # [19:48] <TabAtkins> whatwg is fine, or the htmlwg list. Subscribing to the whatwg list is substantially easier, though.
- # [19:49] <TabAtkins> What information are you wanting, exactly? The value of all the form elements, and relevant attributes such as disabled, plus the origin of the submit event?
- # [19:50] * Joins: jorlow_ (n=jorlow@nat/google/x-ggbrzyygdipulkdo)
- # [19:54] * Joins: Steve^ (n=steve@92.40.73.120.sub.mbb.three.co.uk)
- # [19:59] * Joins: Rik` (n=Rik`@pha75-2-81-57-187-57.fbx.proxad.net)
- # [20:04] * Joins: jwalden (n=waldo@nat/mozilla/x-tdamdotdpvoudchv)
- # [20:06] * Joins: roc (n=roc@121-72-171-11.dsl.telstraclear.net)
- # [20:14] * Quits: erlehmann (n=erlehman@82.113.106.109) ("Ex-Chat")
- # [20:15] <Sidnicious> TabAtkins: Sorry, was afk. I want access to the data goes into creating the query string or post body, including the button that triggered submit, coordinates on image inputs, the works.
- # [20:15] <Sidnicious> The simplest implementation that gets us most of the way there would be an array of nodes that were involved in submission — only enabled inputs, only checked checkboxes, only the clicked button. That does not get us information like image coordinates, but it makes form scraping much more reliable: if I want the value of the to-be-submitted form, I just get the name and value of every element in the array.
- # [20:16] <Sidnicious> There are plenty of other ways this could be implemented. I like the idea of supplying an array of objects, each of which has a key property, a value property, and an node property, so it'd be possible to ignore the elements entirely (and minimize DOM access) and just look at the keys and values from the array.
- # [20:18] <TabAtkins> Hmm, that's interesting.
- # [20:18] <TabAtkins> And your use-case is validation, right?
- # [20:20] * Quits: zcorpan (n=zcorpan@90-224-190-71-no135.tbcn.telia.com) (Remote closed the connection)
- # [22:21] * Disconnected
- # Session Close: Wed Jan 27 00:00:00 2010
The end :)