Options:
- # Session Start: Sun Sep 09 00:00:00 2007
- # Session Ident: #whatwg
- # [00:05] * Joins: dev0 (i=Tobias@dslb-088-077-227-142.pools.arcor-ip.net)
- # [00:06] <Philip`> Can an HTML5 document ever have more than one head element?
- # [00:07] <zcorpan> not by just parsing (otherwise there's a bug in the spec)
- # [00:11] <zcorpan> hmm. using c14n might be problematic anyway for HTMLDocument.innerHTML, since c14n requires a validating xml processor
- # [00:15] <Philip`> zcorpan: Okay, thanks
- # [00:23] * Quits: dev0_ (i=Tobias@unaffiliated/icefox0) (Read error: 110 (Connection timed out))
- # [00:40] * Joins: Ducki (n=Ducki@nrdh-d9b980d4.pool.mediaWays.net)
- # [00:45] <Hixie> Philip`: it can via DOM and via XML, but then it can have almost anything that way
- # [00:59] * Quits: grimeboy (n=grimboy@85-211-251-122.dsl.pipex.com) (Read error: 110 (Connection timed out))
- # [00:59] * Joins: grimeboy (n=grimboy@85-211-243-152.dsl.pipex.com)
- # [01:00] * Quits: webben (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [01:08] * Quits: tndH (i=Rob@adsl-87-102-114-117.karoo.KCOM.COM) ("ChatZilla 0.9.78.1-rdmsoft [XULRunner 1.8.0.9/2006120508]")
- # [01:37] * Joins: briansuda (n=briansud@81-5-138-228.dsl.eclipse.net.uk)
- # [01:37] * Joins: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [01:48] * Quits: Ducki (n=Ducki@nrdh-d9b980d4.pool.mediaWays.net) ("Weq")
- # [02:03] * Quits: zcorpan (n=zcorpan@c-d391e355.022-154-6c6b7013.cust.bredbandsbolaget.se) (Read error: 110 (Connection timed out))
- # [02:04] * Quits: briansuda (n=briansud@81-5-138-228.dsl.eclipse.net.uk)
- # [02:15] * Quits: annevk (n=annevk@86.90.70.28) (Read error: 110 (Connection timed out))
- # [02:25] * Quits: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [02:28] * Joins: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [02:29] * Joins: doublec (n=doublec@202-74-218-249.ue.woosh.co.nz)
- # [02:52] * Quits: weinig (i=weinig@nat/apple/x-245e611ec55f1093)
- # [03:25] * Joins: doublec_ (n=doublec@202-74-218-249.ue.woosh.co.nz)
- # [03:26] * Quits: doublec (n=doublec@202-74-218-249.ue.woosh.co.nz) (Read error: 104 (Connection reset by peer))
- # [03:29] * Joins: aaronlev (n=chatzill@209-6-168-245.c3-0.arl-ubr2.sbo-arl.ma.cable.rcn.com)
- # [03:44] * Quits: aaronlev (n=chatzill@209-6-168-245.c3-0.arl-ubr2.sbo-arl.ma.cable.rcn.com) ("ChatZilla 0.9.78.1 [Firefox 3.0a8pre/2007090604]")
- # [03:57] * Quits: doublec_ (n=doublec@202-74-218-249.ue.woosh.co.nz)
- # [04:05] * Joins: weinig (n=weinig@c-67-188-122-206.hsd1.ca.comcast.net)
- # [04:05] * Quits: weinig (n=weinig@c-67-188-122-206.hsd1.ca.comcast.net) (Remote closed the connection)
- # [04:06] * Joins: weinig (n=weinig@c-67-188-122-206.hsd1.ca.comcast.net)
- # [04:09] * Quits: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [04:18] * Quits: Hixie (i=ianh@trivini.no) ("Lost terminal")
- # [04:19] * Joins: Hixie (i=ianh@trivini.no)
- # [04:22] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [04:26] <Hixie> hm, rfc4329 doesn't actually define text/javascript1.2, it just says people use it
- # [04:26] <Hixie> guess i'll have to add rfc4329's list to html5
- # [04:29] <Philip`> I only saw it on 7 out of 16K pages, and at least the first 2 of those are the same user-tracking code
- # [04:29] <Philip`> At least the first 3
- # [04:30] <Philip`> At least the first 4
- # [04:30] <Philip`> I guess they're probably all exactly the same code
- # [04:30] <Philip`> (See http://www.allesjagd.com/start/index.php etc)
- # [04:36] <Philip`> Why does rfc4329 mention text/javascript1.(4|5)? I can't find any browser that supports them
- # [04:40] <Philip`> Oh, Konqueror supports them
- # [04:49] * Joins: doublec (n=doublec@202-74-220-181.ue.woosh.co.nz)
- # [04:49] * Quits: mpt (n=mpt@121-72-130-17.dsl.telstraclear.net) ("Leaving")
- # [04:51] <Hixie> supporting them the way the spec says to seems cheap and harmless
- # [04:51] <Hixie> (since it makes the language="" attribute a non-issue basically, a couple of lines of code)
- # [04:53] <Hixie> so in http://lists.w3.org/Archives/Public/www-archive/2007Sep/0019.html john asked that i reply to that e-mail i said i wouldn't reply to
- # [04:54] <Hixie> i sent a reply shortly after http://lists.w3.org/Archives/Public/www-archive/2007Sep/0020.html
- # [04:54] <Hixie> i haven't heard from them since
- # [04:57] * Joins: ginger_ (n=silvia@124-171-37-162.dyn.iinet.net.au)
- # [04:57] <Hixie> so one thing that's weird about the argument that we should require alt text because that will force authors of sites like flickr to get the users to include alt text is that it's so obviously false... since html4 already requires alt="", and has for a decade
- # [04:57] <Hixie> yet flickr doesn't ask the user for alt=""
- # [04:58] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [04:59] * Quits: ginger (n=silvia@203-158-53-62.dyn.iinet.net.au) (Read error: 101 (Network is unreachable))
- # [04:59] * Joins: mpt (n=mpt@121-72-130-17.dsl.telstraclear.net)
- # [05:05] * Joins: Thezilch (i=fuz007@c-68-52-119-203.hsd1.tn.comcast.net)
- # [05:07] <Hixie> incidentally, http://html4all.org/wiki/index.php/Mission_Statement is quite a good statement, except for the last paragraph
- # [05:10] <Hixie> (the last paragraph makes a somewhat unjustified leap from their problem statement to a solution that is more extreme than required to solve the problem they put forward)
- # [05:10] <Hixie> but it might be a good start for text for the design principles
- # [05:24] <Lachy> Hixie, the problem I have with the alt="" debate is that I'm yet to get a clear answer to the question that: if omitting alt isn't the answer to the problem of what to do when the user doesn't provide alt text, then what is? alt="" or alt="some placeholder text"?
- # [05:25] <Lachy> And, if the latter, then what placeholder text?
- # [05:25] <Hixie> yeah
- # [05:26] <Hixie> the spec uses an example from flickr... i spoke to the person who put up that image, telling them that all these accessibility people were saying she should have included alt text (not that flickr lets her)
- # [05:26] <Lachy> although, as Steve Faulkner pointed out, omitting alt and letting the screen reader read out the file name isn't the best user experience
- # [05:26] <Hixie> she was like "uh, i don't care, i don't know any blind people, this photo isn't going to be looked at by any blind people"
- # [05:26] <Philip`> alt="the best metadata that the application can provide"?
- # [05:26] <Hixie> and i think a lot of people agree with that
- # [05:26] <Hixie> (though not accessibility experts, typically)
- # [05:27] <Hixie> well if the alt is omitted, the AT should do something better. we're at the early stages of image analysis, but things are getting better.
- # [05:28] <Lachy> indeed, like in cases like this: <figure><img src=...> <legend>Caption</legned></figure>, the UA should probably not read the file name by default and just use the caption (if no alt or title attrs have been given)
- # [05:28] <Philip`> Web browsers don't seem like the place to put technology that is an active research topic and still in its early stages
- # [05:29] <Lachy> that would fix the reading out long meaningless numeric filename problem
- # [05:29] <Hixie> yeah
- # [05:30] * Quits: dolphinling (n=chatzill@132.198.252.57) ("I need more memory")
- # [05:30] <Philip`> (I can't actually think of anything even vaguely like modern research areas that web browsers are doing...)
- # [05:32] <Lachy> http://www.mail-archive.com/wsg@webstandardsgroup.org/msg30517.html
- # [05:33] <Lachy> that points to http://www.w3.org/TR/WAI-AUTOOLS/#check-no-default-alt
- # [05:33] <Hixie> Philip`: sure, today, but by the time html5 is finished...
- # [05:33] <Lachy> .. which says what not to do, without saying what should be done
- # [05:33] <Hixie> and before html6...
- # [05:36] <Hixie> (the other funny thing is that actually, lack or inclusion of alt text is the least of flickr's accessibility problems)
- # [05:37] <Lachy> this response seem to be the bury-your-head-in-the-sand-and-hope-the-problem-goes-away approach http://www.mail-archive.com/wsg@webstandardsgroup.org/msg30511.html
- # [05:38] <Philip`> Around ten years from now? If useful image analysis libraries begin to become practical then, it's still ten years of people writing content based on the HTML5 draft/CR which will work badly in UAs during that time
- # [05:41] <othermaciej> flickr uses layout tables!
- # [05:42] <othermaciej> in a way that splits related content in different table cells!
- # [05:44] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [05:49] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [05:55] <Hixie> more examples of poor alt text: http://www.w3.org/2006/03/TP-minutes.html
- # [06:09] * Quits: ginger_ (n=silvia@124-171-37-162.dyn.iinet.net.au) (Remote closed the connection)
- # [06:41] * Quits: csarven (n=nevrasc@modemcable130.251-202-24.mc.videotron.ca) ("http:/www.csarven.ca")
- # [07:13] * Quits: doublec (n=doublec@202-74-220-181.ue.woosh.co.nz)
- # [08:42] * Quits: KevinMarks (n=KevinMar@c-76-102-254-252.hsd1.ca.comcast.net) ("The computer fell asleep")
- # [09:41] * weinig is now known as weinig|zZz
- # [10:27] * Joins: ROBOd (n=robod@86.34.246.154)
- # [10:42] * Joins: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [10:50] * Quits: Hixie (i=ianh@trivini.no) (Read error: 104 (Connection reset by peer))
- # [10:50] * Joins: Hixie (i=ianh@trivini.no)
- # [10:50] * Quits: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [11:04] * Joins: maikmerten (n=maikmert@T61b0.t.pppool.de)
- # [11:19] * Joins: peepo (n=Jay@host86-153-137-94.range86-153.btcentralplus.com)
- # [11:37] * Joins: tndH_ (i=Rob@adsl-87-102-114-117.karoo.KCOM.COM)
- # [11:37] * tndH_ is now known as tndH
- # [11:44] * Joins: Ducki (n=Ducki@1Cust230.tnt6.ber2.deu.da.uu.net)
- # [11:45] * Joins: zcorpan (n=zcorpan@c-d391e355.022-154-6c6b7013.cust.bredbandsbolaget.se)
- # [11:58] * Joins: annevk (n=annevk@86.90.70.28)
- # [12:09] * Joins: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [12:17] <zcorpan> btw, i've seen "download this video" links alongside the video on several sites
- # [12:20] <zcorpan> e.g. http://catpages.nwmissouri.edu/m/lgmf/video-clips/slide1.html
- # [12:21] <zcorpan> (that page could make use of <video><source>)
- # [12:22] * Parts: annevk (n=annevk@86.90.70.28)
- # [12:22] * Joins: annevk (n=annevk@86.90.70.28)
- # [12:26] * Quits: tantek (n=tantek@host217-34-42-151.in-addr.btopenworld.com)
- # [12:28] <jgraham> Alt text from an email I got recently: Oxford Playhouse Logo
- # [12:28] <jgraham> Floating Kate Rusby Jeremy Hardy Floating Kate Rusby Jeremy Hardy Floating Kate Rusby Jeremy Hardy
- # [12:28] <jgraham> Floating
- # [12:37] <zcorpan> jgraham: Brillant!!
- # [12:41] <annevk> For some reason I always get two commit e-mails
- # [12:44] <annevk> (from the html5 project)
- # [12:45] <annevk> jgraham, you should probably also update the comment that says that only "axis" makes it a heading
- # [12:47] <jgraham> Done
- # [12:50] <annevk> I think I might be on the commit list twice or something
- # [12:51] <annevk> jgraham, how about ensuring that a given header cell spans the same or more columns than the data cell?
- # [12:52] <annevk> this would help with Henri's thesis and my tmb table
- # [12:52] <annevk> and I can't directly think of any data cell that would have two headings and not be empty
- # [12:55] <jgraham> annevk: I'll try that
- # [12:55] * jgraham is going out now
- # [12:56] <jgraham> I also really need to write some proper tests but #algorithms * #options =a large number
- # [12:56] * Joins: webben (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [12:59] * Quits: Ducki (n=Ducki@1Cust230.tnt6.ber2.deu.da.uu.net) (Read error: 110 (Connection timed out))
- # [13:00] <annevk> HTML5 also doesn't really take rowgroup into account
- # [13:00] <annevk> HTML5 algorithm seems a bit simplistic although at least it seems accurate
- # [13:06] <zcorpan> as far as associating header cells with header cells goes, it would make sense to associate a cell that spans fewer columns but not more columns, with a header cell higher up in the table
- # [13:07] <annevk> I think that's my suggestion, although I'd say fewer or equal amount of columns
- # [13:08] <zcorpan> yeah
- # [13:08] <annevk> probably analogously for rows
- # [13:08] <zcorpan> yes
- # [13:09] <zcorpan> ignoring <thead>, it should be possible to flip or rotate a table and still have the same associations
- # [13:10] <annevk> well, cells can span columns, but can't span rowgroups
- # [13:10] <annevk> iirc
- # [13:10] * Joins: Ducki (i=Ducki@nrdh-d9b980dc.pool.mediaWays.net)
- # [13:12] <zcorpan> right
- # [13:13] <zcorpan> ok, ignoring <thead>, multiple <tbody> and <tfoot>
- # [13:14] <webben> zcorpan: Why would it make sense to associate...?
- # [13:14] <webben> aren't related header cells likely to span the same number of columns?
- # [13:15] <zcorpan> webben: yes (what anne said)
- # [13:15] <zcorpan> though only if they are adjacent
- # [13:16] <zcorpan> http://html5.lachy.id.au/output?data=%3Ctable+border%3E%0D%0A%3Ctr%3E%3Cth%3Efoo%3Cth%3Ebar%0D%0A%3Ctr%3E%3Ctd%3E1%3Ctd%3E2%0D%0A%3Ctr%3E%3Cth%3Ebaz%3Cth%3Equux%0D%0A%3Ctr%3E%3Ctd%3E3%3Ctd%3E4%0D%0A%3C%2Ftable%3E&type=text%2Fhtml%3B+charset%3DUTF-8
- # [13:16] <zcorpan> there, foo and baz probably shouldn't be associated together
- # [13:17] <zcorpan> but should be with http://html5.lachy.id.au/output?data=%3Ctable+border%3E%0D%0A%3Ctr%3E%3Cth%3Efoo%3Cth%3Ebar%0D%0A%3Ctr%3E%3Cth%3Ebaz%3Cth%3Equux%0D%0A%3Ctr%3E%3Ctd%3E1%3Ctd%3E2%0D%0A%3Ctr%3E%3Ctd%3E3%3Ctd%3E4%0D%0A%3C%2Ftable%3E&type=text%2Fhtml%3B+charset%3DUTF-8
- # [13:17] <Lachy> zcorpan, note the new tinyURL button http://html5.lachy.id.au/
- # [13:18] <peepo> ~:" just about to send something similar....
- # [13:18] <webben> zcorpan: When you say associated, what do you mean in this case?
- # [13:18] <Lachy> it generates that link and then gets a tinyurl.com/ address for it
- # [13:18] <webben> zcorpan: If you mean foo should be a header for baz, I'm not sure.
- # [13:18] * Parts: toolskyn (i=toolskyn@amy.bdick.de)
- # [13:19] <zcorpan> webben: yes
- # [13:19] <webben> zcorpan: If foo had two or more sub-th's that would certainly make sense.
- # [13:19] <zcorpan> why not?
- # [13:19] <zcorpan> yeah
- # [13:19] <webben> zcorpan: Or at least if at least one other th at the same level as foo had two or more sub-th's
- # [13:20] <webben> zcorpan: Because then it's likely that the first row of th's is being used to carve up the second row.
- # [13:21] * Joins: doublec (n=doublec@203-211-83-19.ue.woosh.co.nz)
- # [13:21] <zcorpan> hmm
- # [13:21] <webben> if each top th has only one "child" th, I'd have thought something else is going on
- # [13:21] * annevk wonders what http://html5.lachy.id.au/ does
- # [13:21] <annevk> Lachy, was today the day you were going to put that redirect in place?
- # [13:22] <webben> (I'm sure there could be instances where the same thing is going on; perhaps the subheadings are time related or something, and the table is automatically generated and there will be more subheadings as time progresses.)
- # [13:22] <Lachy> annevk, yes, I'm working on that. I just need to port the /faq/pl/ page across to the wiki
- # [13:22] <annevk> oh, missed that
- # [13:22] <webben> But it would be nice to see some live examples of th pairs to see if they do often differ.
- # [13:22] <Lachy> annevk, http://html5.lachy.id.au/ is what http://html5.lachy.id.au/output
- # [13:22] <Lachy> ... used to be
- # [13:22] <annevk> but the purpose is?
- # [13:22] <webben> Do we have any?
- # [13:23] <annevk> well, my table would benefit from that additional rule
- # [13:23] <Lachy> for generating simple test pages, without having to create and upload a file
- # [13:23] <annevk> Henri's thesis would
- # [13:23] * Joins: hasather (n=hasather@90-227-221-48-no62.tbcn.telia.com)
- # [13:23] <Lachy> annevk, just like zcorpan did above
- # [13:24] <webben> annevk: Your table?
- # [13:24] <zcorpan> annevk: we're discussing what should be done in this case specifically http://tinyurl.com/2gtf6a
- # [13:24] <annevk> webben, http://annevankesteren.nl/2007/09/tmb-overview
- # [13:24] <zcorpan> if foo a heading for baz or not?
- # [13:25] <annevk> it is
- # [13:25] <zcorpan> why?
- # [13:25] <annevk> http://lists.w3.org/Archives/Public/www-archive/2007Aug/att-0003/offset-mess.htm
- # [13:26] <zcorpan> that's not the same case (they don't span the same number of columns)
- # [13:26] <annevk> oh, hmm
- # [13:27] <annevk> i guess it doesn't really matter
- # [13:27] <webben> it might be equally reasonable (for example) to assume the th pairs are equivalents.
- # [13:27] <webben> I don't think we can make any conclusions about whether it matters without finding some examples that are actually like that.
- # [13:28] <webben> I wonder if Philip could find us some tables with those specific characteristics.
- # [13:31] <webben> Alternatively one could just follow the html4 algorithm and assume people have assumed that.
- # [13:31] <webben> (I /guess/ that would make foo a heading for baz.)
- # [13:32] <annevk> yeah, I believe HTML4 does that
- # [13:32] <annevk> I don't think many people have read HTML4 table association though
- # [13:33] <zcorpan> since <th> is used in layout tables... :)
- # [13:33] <webben> zcorpan: How often is that?
- # [13:34] <webben> (used in layout tables, I mean)
- # [13:34] <zcorpan> not very common but i've seen it
- # [13:37] * Quits: doublec (n=doublec@203-211-83-19.ue.woosh.co.nz)
- # [13:40] <Philip`> I can parse lots of pages now (whereas before I was just tokenising), so I should be able to find things with certain characteristics (assuming those characteristics aren't too hard to determine) if it'd be helpful
- # [13:40] <webben> zcorpan: When you have seen it, was th still being used for headers?
- # [13:42] <webben> Philip`: would looking for <tr><th>+</tr> followed immediately by another <tr> with an equal number of <th> be easy?
- # [13:42] <annevk> Philip`, you finished your tree builder?
- # [13:42] * Joins: tantek (n=tantek@212.42.170.220)
- # [13:43] <Philip`> annevk: No, I used hsivonen's one since that's much easier and probably better :-)
- # [13:44] <zcorpan> webben: just recently when debugging a parsing problem in opera... can't find the bug again though
- # [13:44] <zcorpan> webben: the page didn't have data tables
- # [13:45] <webben> zcorpan: No I meant structural headers (where say <hX> or <dt> or something might have been vaguely appropriate), rather than for data headers.
- # [13:45] <webben> Or whether people just get th and td confused.
- # [13:45] <webben> (they're not the most intuitive of names!)
- # [13:46] <zcorpan> it was for the page logo at least
- # [13:46] <zcorpan> but that table didn't cover the whole page, just the top part
- # [13:47] <Philip`> webben: That sounds feasible, though I'm not sure exactly how to write the code to detect it (or whether it'd be easier with the DOM parser rather than the SAX one)
- # [13:47] <annevk> Philip`, HTML5 has an algorithm on how to construct a table
- # [13:48] <annevk> although maybe implementing that is overkill, dunno
- # [13:50] <Philip`> annevk: That sounds like it might be hard work, particularly since writing Java is no fun
- # [13:50] <zcorpan> webben: found it, it only had one <th> for the page logo http://www.itquestionbank.com/
- # [13:51] <webben> Well at least it makes a certain amount of logical sense.
- # [13:52] <zcorpan> yeah, but it's still a layout table... :)
- # [13:52] <webben> okay, so twisted logic ;)
- # [13:53] * Joins: grimboy_uk (n=grimboy@85.211.237.72)
- # [13:53] <Philip`> I saw some pages a while ago that had only <th> and no <td>s
- # [13:54] <Philip`> http://krijnhoetmer.nl/irc-logs/html-wg/20070717#l-11
- # [13:54] * Quits: grimeboy (n=grimboy@85-211-243-152.dsl.pipex.com) (Read error: 104 (Connection reset by peer))
- # [13:55] * Joins: grimeboy (n=grimboy@85.211.239.211)
- # [13:57] * Quits: Ducki (i=Ducki@nrdh-d9b980dc.pool.mediaWays.net) (Read error: 110 (Connection timed out))
- # [14:00] * Quits: gsnedders (n=gsnedder@host86-139-120-102.range86-139.btcentralplus.com) ("Don't touch /dev/null…")
- # [14:02] <Philip`> http://www.gbk-unternehmensberatung.de/ | 8
- # [14:02] <Philip`> http://www.new-video.de/film-lolita/ | 173
- # [14:02] <Philip`> http://www.chalupa24.cz/ | 2
- # [14:02] <Philip`> http://ccel.org/cceh/ | 1
- # [14:02] <Philip`> http://www.akatalent.com | 1
- # [14:02] <Philip`> http://www.spiderrobinson.com/ | 1
- # [14:02] <Philip`> http://www.soundmedical.com/home.html | 8
- # [14:02] <Philip`> are pages with the given number of <th>s, and no <td>s
- # [14:03] <Philip`> (Fun game: guess how many are layout tables!)
- # [14:03] <zcorpan> 7? :)
- # [14:06] <annevk> you're in on the next round in Markup Stats!
- # [14:06] * Philip` guesses that those people are just pressing the wrong button in their WYSIWYG editors
- # [14:08] * Quits: tantek (n=tantek@212.42.170.220)
- # [14:10] * Quits: grimboy_uk (n=grimboy@85.211.237.72) (Connection timed out)
- # [14:14] * Quits: peepo (n=Jay@host86-153-137-94.range86-153.btcentralplus.com) ("later")
- # [14:18] <Philip`> krijnh: I think you might need something like white-space:pre in the IRC logs else it messes up my aligned columns :-)
- # [14:29] <zcorpan> pre-wrap ?
- # [14:39] <Lachy> is there a function in python that reads a file and outputs it, sort of like the include() function in PHP?
- # [14:40] <Philip`> print(open("filename").read()) ?
- # [14:41] <Lachy> yeah, something like that, but won't I need to close the file afterwards? Or does it do that automatically?
- # [14:42] <Philip`> I think it closes when the file object gets garbage-collected, which is at some unknown point in the future but before the program terminates
- # [14:42] <Philip`> so it only matters if you've got a long-running process and don't want to run out of file handles
- # [14:43] <annevk> there's .close() iirc
- # [14:43] <annevk> but i never needed it so far
- # [14:45] <Philip`> You can also do
- # [14:46] <Philip`> from __future__ import with_statement;
- # [14:46] <Philip`> with open("filename") as f: print(f.read())
- # [14:46] <Philip`> Uh, without the semicolon
- # [14:46] * Joins: gsnedders (n=gsnedder@host86-139-120-102.range86-139.btcentralplus.com)
- # [14:46] <Philip`> (but only in Python 2.5)
- # [14:47] <Philip`> which will close it immediately
- # [14:48] <Philip`> (The explicit close seems quite inelegant compared to Perl)
- # [15:02] <webben> Hixie: Ignoring the Hofstader-Clark antagonism, you may find the recent posts at http://blindconfidential.blogspot.com/ (about your blogpost re Jaws and Isolani's response) interesting. Chris Hofstader used to run the JAWS development team.
- # [15:03] * Quits: annevk (n=annevk@86.90.70.28)
- # [15:18] <Philip`> '"For the best results using a screen reader we suggest you read this site with <some screen reader or another>."' - hmm, that sounds familiar, and I thought most people now agreed it's a bad idea (hence http://www.anybrowser.org/campaign/ )
- # [15:18] * Joins: tantek (n=tantek@212.42.170.220)
- # [15:19] * Quits: Dashiva (i=Dashiva@15.84-48-60.nextgentel.com)
- # [15:23] * Joins: Dashiva (i=Dashiva@15.84-48-60.nextgentel.com)
- # [15:34] * Quits: tantek (n=tantek@212.42.170.220)
- # [15:38] <webben> Philip`: I don't think most people agree with the Any Browser principle. Most people paid to do webdev work (from what I've seen) seem to care only about IE + Firefox + maybe Safari.
- # [15:38] <webben> Philip`: It's quite hard to persuade people they need to worry about ELinks or Konqueror.
- # [15:40] <Philip`> webben: At least that's somewhat better than "Best viewed in Netscape 4, 800x600 resolution, 16-bit color"
- # [15:42] <webben> Philip`: Hmm. I dunno. I see a lot of notices saying things only work in Firefox.
- # [15:42] <webben> Once Netscape 4 was the biggest and best.
- # [15:42] <webben> what really dooms such notices is the inexorable march of time.
- # [15:49] <webben> Philip`: See also things like: http://minghong.f2g.net/products/infobar/
- # [15:54] <hsivonen> hmm. contrary to what anne assumed, the cabal acknowledgment has been in the spec since at least May 24 2006 (likely longer, but I have a snapshot from May 24 2006).
- # [15:54] * Joins: tantek (n=tantek@212.42.170.220)
- # [15:55] * Joins: annevk (n=annevk@86.90.70.28)
- # [16:02] * Quits: gsnedders (n=gsnedder@host86-139-120-102.range86-139.btcentralplus.com)
- # [16:05] <Philip`> Hmm, looking at my old sites, the only browser suggestion is that users should use one with Java such as Netscape Navigator
- # [16:07] <hsivonen> Philip`: what did you use applets for?
- # [16:07] <Philip`> Wobbly text and marquee-like scrolling banners
- # [16:07] <Philip`> It was great!
- # [16:08] <hsivonen> ok. my previous statements about applet use cases hold, then :-)
- # [16:11] <Lachy> I just migrated this from the blog http://wiki.whatwg.org/wiki/FAQ/pl
- # [16:11] <Lachy> now I will set up the redirects
- # [16:11] * Philip` finds his ancient Theme Hospital site, and uses it to solve a mystery on a Wikipedia talk page about who first patched the "pregnancy" disease into the game
- # [16:12] <Lachy> Theme Hospital was an awesome game! :-)
- # [16:13] <annevk> indeed
- # [16:14] * hsivonen has no idea what Theme Hospital is
- # [16:15] <Philip`> http://web.archive.org/web/19991008150009/http://www.geocities.com/SiliconValley/Park/7676/pregnant.html - hooray, layout tables
- # [16:16] <annevk> so much for cool URIs don't change
- # [16:18] <Lachy> annevk, http://blog.whatwg.org/faq/ and http://blog.whatwg.org/faq/pl/ now redirect to the wiki
- # [16:19] <annevk> cool, now hopefully people will update :)
- # [16:20] <Lachy> I wish I knew of an HTML to wiki markup script. I had to write a simple one myself, but didn't cover everything
- # [16:21] <Lachy> would have made migrating the pl version easier
- # [16:21] <Philip`> http://www.uni-bonn.de/~manfear/html2wiki-tables.php ?
- # [16:22] * Joins: gsnedders (n=gsnedder@host86-139-120-102.range86-139.btcentralplus.com)
- # [16:22] <Lachy> that looks like it only handles tables, not headings, links, etc.
- # [16:22] * annevk wonders why people don't ask the question: "why would it be non-conforming to include those characters"
- # [16:22] <Philip`> http://diberri.dyndns.org/wikipedia/html2wiki/ ?
- # [16:23] * Lachy should have googled for one!
- # [16:24] <Philip`> Do we have use cases for making the character "q" conforming? Could they be satisfied by only making "q" conforming if it is followed by a "u"?
- # [16:24] * Quits: tantek (n=tantek@212.42.170.220)
- # [16:24] <gsnedders> Philip`: there are some exceptions to that
- # [16:25] <Philip`> gsnedders: Sure, but there's exceptions to everything, and we only need to handle 80% of cases
- # [16:25] <annevk> :)
- # [16:26] <gsnedders> Philip`: that's true.
- # [16:27] <annevk> however, apart from how to construct a DOM with them characters are more or less out of scope
- # [16:28] <Lachy> Philip`, there are plenty of cases for a Q not followed by a u. e.g. QANTAS, FAQ. Q&A, etc.
- # [16:29] <Philip`> Lachy: Those are all "Q", not "q"
- # [16:29] <Lachy> :-)
- # [16:30] <Lachy> http://en.wikipedia.org/wiki/List_of_English_words_containing_Q_not_followed_by_U
- # [16:33] <hsivonen> http://lists.w3.org/Archives/Public/public-html/2007Aug/1255.html
- # [16:33] <hsivonen> hmm. I understood T.V. Raman's point as an indictment of designing specs for current JAWS.
- # [16:34] <hsivonen> I wonder if I understood his points right.
- # [16:35] <Philip`> Lachy: A few dozen examples, out of half a million words in the English language? The statistics aren't very convincing
- # [16:37] <Lachy> Philip`, sure, but qwerty is a very common word these days, and so it makes it into the 80% mark
- # [16:45] <gsnedders> Lachy: you look very qwerty today
- # [16:46] <Lachy> are you saying I look like a keyboard?
- # [16:46] <Lachy> :-)
- # [16:46] <gsnedders> I dunno. I'm just wondering what the usage is :)
- # [16:46] <gsnedders> Philip`: why don't we only handle 0.0014% of web content (i.e., XML)
- # [16:48] * Joins: hendry (n=hendry@nox.vm.bytemark.co.uk)
- # [16:54] <Philip`> http://www.google.com/search?q=qwerty suggests that "QWERTY" and "Qwerty" are much more common than "qwerty"
- # [16:55] <Philip`> so I've still not seen any great arguments for why characters should be conforming :-)
- # [16:56] <Philip`> (Switching the question from "why should it be conforming?" to "why should it be non-conforming?" isn't very helpful since it's not giving answers to either question)
- # [16:57] <annevk> there's a good reason for some characters, such as NULL, to be non-conforming, there's not really a good reason for the other characters to be non-conforming afaict; they're not causing interoperability concerns and it's out of scope of HTML to say what a conforming string of text is
- # [16:58] <Philip`> It would be easy if there was a design principle that said "things that don't cause interoperability problems should be conforming"
- # [17:01] <Philip`> The null character seems special since it's always(?) converted into U+FFFD, which is not what you'd ever want to happen, so it indicates an authoring error and conformance checkers should complain about it
- # [17:02] <Philip`> whereas any(?) other character is passed straight through, regardless of whether it's conforming, unless people want to convert control characters into spaces or something
- # [17:02] * Philip` isn't sure what happens in HTML5 if you try adding U+0000 through the DOM
- # [17:03] * Joins: tantek (n=tantek@212.42.170.220)
- # [17:04] <annevk> I think U+0000 doesn't reach the DOM APIs in some browsers and others remove it...
- # [17:04] <annevk> I mentioned U+0000 because it's special
- # [17:08] <Philip`> It seems IE7/Opera9.5 cut off the string after the \0, Safari3/Firefox3 keep the \0 (and Safari doesn't render it, while FF renders a little [00/00] box)
- # [17:29] <annevk> what is the Unicode character that lowercases to "i" again?
- # [17:29] * Joins: Ducki (n=Ducki@c-180-171-10.l.dial.de.ignite.net)
- # [17:30] * annevk needs it to make sure comparisons are done based on ASCII
- # [17:33] <zcorpan> İ
- # [17:36] <zcorpan> ı might be uppercased to I
- # [17:38] <annevk> seems that IE7 does ASCII case-insensitive here: http://tc.labs.opera.com/html/global-attributes/contenteditable/014.htm
- # [17:40] * annevk adds a test for ı
- # [17:40] <zcorpan> annevk: ie also says PASS if you change the value to "blurb"
- # [17:41] <annevk> correct
- # [17:41] <annevk> which is why it's a good test :)
- # [17:41] <zcorpan> aha
- # [17:42] * zcorpan didn't read carefully
- # [17:42] <annevk> although they would fail again if I'm going to test for the specific error...
- # [17:43] <annevk> guess I'll do that in another test for now
- # [17:43] <annevk> tests are cheap
- # [17:43] * Quits: tantek (n=tantek@212.42.170.220)
- # [17:46] <zcorpan> <!html html>? :)
- # [17:51] <annevk> way ahead of you
- # [18:00] * Joins: hasather_ (n=hasather@90-227-221-48-no62.tbcn.telia.com)
- # [18:00] * Quits: hasather_ (n=hasather@90-227-221-48-no62.tbcn.telia.com) (Client Quit)
- # [18:01] * Joins: Ducki_ (i=Ducki@nrdh-d9b98070.pool.mediaWays.net)
- # [18:02] * Quits: Lachy (n=Lachy@124-170-134-71.dyn.iinet.net.au) ("ChatZilla 0.9.78.1 [Firefox 2.0.0.6/2007072518]")
- # [18:10] <annevk> btw, I wonder if the RFC for script types needs to be updated, after all, server MIME types are ignored and we could just say that the type= attribute takes certain magical values
- # [18:10] <annevk> such as text/javascript1.1, etc.
- # [18:19] <Philip`> Is the server type ignored if you send text/javascript vs text/vbscript to IE?
- # [18:19] * Quits: Ducki (n=Ducki@c-180-171-10.l.dial.de.ignite.net) (Read error: 110 (Connection timed out))
- # [18:22] <annevk> dunno
- # [18:22] <annevk> (read as: please tell me if you find out :) )
- # [18:24] <Philip`> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cscript%20src%3Dhttp%3A%2F%2Fhtml5.lachy.id.au%2Foutput%3Fdata%3D%2527%2B%2527%253B%2Balert%2528%2522JavaScript%2522%2529%253B%2Bif%2B%25280%2529%250D%250Aalert%2528%2522VBScript%2522%2529%26type%3Dtext%252Fvbscript%3E%3C%2Fscript%3E%20
- # [18:24] <Philip`> It is ignored
- # [18:25] <Philip`> (IE assumes JavaScript regardless of the Content-Type)
- # [18:25] <Philip`> (unless you do <script type=text/vbscript> etc)
- # [18:25] * Joins: csarven (n=nevrasc@modemcable130.251-202-24.mc.videotron.ca)
- # [18:25] <Philip`> (IE7, at least)
- # [18:26] <Philip`> It's odd how few people use VBScript
- # [18:31] <annevk> the spec doesn't seem to consider script elements without either type or language attributes...
- # [18:33] * Joins: Ducki (n=Ducki@nrdh-d9b98073.pool.mediaWays.net)
- # [18:41] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net) (Read error: 110 (Connection timed out))
- # [18:52] <annevk> made some script tests: http://tc.labs.opera.com/html/script/
- # [18:57] * Quits: Ducki_ (i=Ducki@nrdh-d9b98070.pool.mediaWays.net) (Connection timed out)
- # [19:09] * Quits: maikmerten (n=maikmert@T61b0.t.pppool.de) (Read error: 110 (Connection timed out))
- # [19:09] <Philip`> http://canvex.lazyilluminati.com/misc/stats/scripttypes.html
- # [19:09] * Joins: maikmerten (n=maikmert@T7879.t.pppool.de)
- # [19:10] <Philip`> More text/html than text/javascript? That's quite odd
- # [19:10] * Joins: PHPechowiec (n=Adrian@aaot24.neoplus.adsl.tpnet.pl)
- # [19:12] <Philip`> http://www.artesea.co.uk/cnps/blogs/artesea.js - I wish there was a programming language where you could put images in the source code like that
- # [19:13] * Joins: Lachy (n=Lachy@124-170-134-71.dyn.iinet.net.au)
- # [19:16] <PHPechowiec> Is there someone from poland?
- # [19:20] <annevk> Philip`, not really, application/x-javascript is the default
- # [19:21] <annevk> although I suppose it's weird :)
- # [19:21] <annevk> I updated my two tests btw to make them slightly more useful
- # [19:23] <annevk> seems that IE also executes: "javascript 1.3" and "text/javascript " etc.
- # [19:23] <Philip`> http://www.assoc-amazon.co.uk/s/ads.js - that's odd - it sends a 404 with Content-Type: image/gif if you do a HEAD request, but a 200 text/javascript if you do GET
- # [19:25] <gsnedders> Philip`: oh, that's nothing that odd
- # [19:26] * Philip` wonders if he should just do GET and try to abort the connection before it's downloaded the body
- # [19:27] <annevk> that's prolly better if you want accurate results
- # [19:28] <annevk> btw, it seems for type= and language= parsing some browsers simply use startswith("text/javascript") ...
- # [19:28] <PHPechowiec> where I can find about HTML5 inpolish
- # [19:28] <PHPechowiec> **in polish
- # [19:29] <Philip`> annevk: I didn't see that behaviour for type= in any browser
- # [19:30] <annevk> I only see it when I construct my tests wrong
- # [19:30] <annevk> I made a small python script to generate the tests and then I managed to turn some stuff around
- # [19:30] <annevk> so, oops
- # [19:32] * Quits: PHPechowiec (n=Adrian@aaot24.neoplus.adsl.tpnet.pl) ("Lost terminal")
- # [19:32] * gsnedders is going to fail Computing having missed the last two lessons — not knowing what the (wrong) answers are sucks :P
- # [19:34] <Philip`> http://canvex.lazyilluminati.com/misc/stats/scripttypes2.html - hmm, it's a bit better when I use GET and when I correctly stop processing 404s
- # [19:35] <Philip`> http://ads49.bpath.com/gif.cfm?ID=266432&Page=0&Ver=40 - that one really is an image
- # [19:36] <Philip`> but http://alissathechihuahua.freeservers.com/index.html includes it via <script src>
- # [19:36] <Philip`> Hmm, Alissa looks rather ugly
- # [19:38] <Philip`> http://environmentalchemistry.com/JavaScripts/Primary.js - how does that end up as text/css?
- # [19:42] <annevk> seems that there are almost no parameters around looking at your stats for <script type> and <script language>
- # [19:44] <Philip`> The few users of language=javascript1.5 that I looked at were browser-JS-version-detection user-stats-tracking scripts, so it seems those aren't used for anything important either
- # [19:47] <annevk> it's quite a big mess
- # [19:47] <annevk> and such a tiny feature... :(
- # [19:49] <Philip`> Can we just say that <script> means JavaScript and UAs can ignore everything else? :-)
- # [19:50] <Philip`> It's not like anybody really uses any other language
- # [19:51] <annevk> some people use <script type=text/xml> or something
- # [19:53] <Philip`> That wouldn't work too terribly if you parsed it as JS into an E4X object and then, er, hacked in a compatible API somewhere
- # [19:55] <Philip`> http://www.americasalfalfa.com/ - I can't quite tell what they're using text/xml for
- # [19:55] <Philip`> http://www.kinderklinik-buch.de/Neonatologie/Richtlinien.html - they're using it for exactly the same
- # [19:56] <Philip`> (Those are the only two sites I saw)
- # [19:57] <Philip`> (Still, it'd be nasty to prevent other languages or language versions, even if they're not used very commonly)
- # [19:58] <zcorpan> how do you allow other langauges for onclick=""? do we need to?
- # [19:59] <zcorpan> html4 says content-script-type, but i think browsers ignore it
- # [20:03] * Joins: Ducki_ (n=Ducki@nrdh-d9b9805e.pool.mediaWays.net)
- # [20:22] * Quits: Ducki (n=Ducki@nrdh-d9b98073.pool.mediaWays.net) (Read error: 110 (Connection timed out))
- # [20:53] * Quits: maikmerten (n=maikmert@T7879.t.pppool.de) (Remote closed the connection)
- # [21:18] * Joins: grimboy_uk (n=grimboy@85.211.238.12)
- # [21:18] * Quits: grimeboy (n=grimboy@85.211.239.211) (Read error: 110 (Connection timed out))
- # [21:43] * Quits: weinig|zZz (n=weinig@c-67-188-122-206.hsd1.ca.comcast.net)
- # [21:48] <Hixie> anything interesting happening in the world?
- # [21:49] <annevk> http://news.google.com/ ?
- # [22:02] <Hixie> i meant in our screwed up corner of it :-)
- # [22:03] <annevk> oh, people played with tables and <script type language>
- # [22:04] <annevk> i pinged the guy on the forms TF who hasn't introduced himself yet as you suggested
- # [22:14] <Hixie> i guess i better do some work on datatemplates tonight
- # [22:14] <Hixie> bbiab
- # [22:22] * Quits: Ducki_ (n=Ducki@nrdh-d9b9805e.pool.mediaWays.net) (Read error: 110 (Connection timed out))
- # [22:28] * Quits: ROBOd (n=robod@86.34.246.154) ("http://www.robodesign.ro")
- # [22:49] * Joins: grimeboy (n=grimboy@85-211-247-60.dsl.pipex.com)
- # [22:49] * Quits: hendry (n=hendry@nox.vm.bytemark.co.uk) ("bedtime")
- # [23:06] * Quits: grimboy_uk (n=grimboy@85.211.238.12) (Read error: 110 (Connection timed out))
- # [23:11] * hsivonen wonders how to force apache to respond with 503 with apache config only without having to resort to scripting
- # [23:18] <Dashiva> On what condition?
- # [23:20] <Dashiva> I know you can use mod_rewrite, but it's kinda hacky
- # [23:20] <hsivonen> hmm. RedirectMatch 503 ^/ might do the trick
- # [23:20] <hsivonen> Dashiva: on the condition that required modules did not load
- # [23:21] <hsivonen> e.g. mod_jk did not load
- # [23:21] <hsivonen> use case: admin updates Apache, forgets to reinstall mod_jk
- # [23:22] <Dashiva> Redirect 503 / should work too
- # [23:35] * Joins: weinig|zZz (i=weinig@nat/apple/x-a81ae52b31b50c5e)
- # [23:45] * Joins: doublec (n=doublec@202.180.114.137)
- # [23:50] * Joins: tantek (n=tantek@77-99-141-250.cable.ubr03.hari.blueyonder.co.uk)
- # Session Close: Mon Sep 10 00:00:00 2007
The end :)