2008-12-01 [16:00:00.0000] LOL [20:02:00.0000] i wonder if this troll is the same one we have: http://www.amazon.com/review/R26708FG38OUJA/ref=cm_cr_rev_detmd_pl?%5Fencoding=UTF8&cdMsgNo=6&cdPage=1&cdSort=oldest&cdMsgID=MxJUKSB9JZMAUQ#MxJUKSB9JZMAUQ [20:09:00.0000] Hixie: no clue, but poking around there, it's interesting to see that Amazon is asserting a trademark on the term "Real Name" [22:50:00.0000] Hixie: not being allowed to use width/height on img for dimentionless svg is not nice [22:55:00.0000] Hixie: consider :) [22:56:00.0000] maybe i could make my smileys have dimentions but dimensionless svg is nice in general, imho [23:02:00.0000] is it known that some links from attributes (in the green boxes) to their definitions are broken in the multipage version of the spec? [23:03:00.0000] e.g. i notice that clicking on 'width' from http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded-content-0.html#the-img-element takes me to something unrelated [23:04:00.0000] heycam: how is it unrelated? [23:05:00.0000] oh, i see it isn't unrelated [23:05:01.0000] sorry for the noise [23:05:02.0000] i just got confused that it didn't go to the closest mentions of width/height from that point [23:06:00.0000] and noticed it jumped to the-canvas-element.html [23:06:01.0000] (but i guess it is known that those filenames aren't the best) [23:07:00.0000] zcorpan, where is the text that would disallow your width/height on dimensionless svg? [23:08:00.0000] zcorpan: img { height: 1em; } [23:08:01.0000] zcorpan: height=15 is wrong. [23:09:00.0000] heycam: http://html5.org/tools/web-apps-tracker?from=2473&to=2474 [23:09:01.0000] Hixie: it would look weird when stylesheets are disabled [23:09:02.0000] ok [23:10:00.0000] Hixie: but i digress [23:10:01.0000] zcorpan: and height=15 would look weird when i zoomed the text in, so what? [23:10:02.0000] what's the purpose of "The two attributes must be omitted if the resource in question does not have both an intrinsic width and an intrinsic height"? [23:10:03.0000] Hixie: browsers have full zoom these days :) [23:11:00.0000] why not word it in terms of an intrinsic aspect ratio instead? [23:11:01.0000] heycam: i guess we could, send feedback [23:12:00.0000] /me goes to add width="15" height="15" to his smileys [23:13:00.0000] zcorpan: that's the wrong solution. it won't work when you change the font size. [23:14:00.0000] Hixie: i mean in the svg [23:14:01.0000] right, me too [23:14:02.0000] Hixie: so what's the right solution? [23:15:00.0000] having a viewBox="" coordinate space defined, and giving the dimensions in css [23:15:01.0000] (in the svg and the html respectively) [23:15:02.0000] that was not my most eloquent answer ever [23:16:00.0000] you could still specify dimensions in css, i just want a reasonable default [23:16:01.0000] i don't know that there's a solution to that. what does '1em' mean in the attribute? i guess the font-size doesn't inherit through the , huh [23:17:00.0000] not sure [23:17:01.0000] i think it *should* result in the same as height:1em in the html [23:18:00.0000] since width/height on are hints to the container on how it wants to be sized [23:18:01.0000] (not that it's defined properly, but that's the intent i believe) [23:18:02.0000] in opera it doesn't inherit [23:19:00.0000] there's no way it inherits [23:19:01.0000] 1em means 16px [00:03:00.0000] BenMillard: "For each token, both algorithms scan the document (via getElementById) for the first element with matching id." -- html5 doesn't scan the document, it scans the table [00:16:00.0000] Hixie: the code in Gecko seems to associate legends with forms, but I have no idea if the association is used for anything [00:18:00.0000] exposing to AT maybe? [00:26:00.0000] hsivonen: generally i recommend black-box testing your assertions, as apparently the code is quite misleading :-) [00:32:00.0000] Hixie: I didn't mean to assert that legend behaves as like HTML5 form-associated elements. I meant to assert that it is associated with a form. Wondering about the consequences was about not knowing why. [00:33:00.0000] I suppose I should ask in a Mozilla newsgroup [00:33:01.0000] zcorpan: it might be that it gets exposed to AT that way [00:39:00.0000] hsivonen: ah [00:40:00.0000] the legend doesn't appear in form.elements, but you can get legend.form [00:41:00.0000] because that's how it was defined at http://www.w3.org/TR/DOM-Level-2-HTML/idl-definitions.html , apparently [00:41:01.0000] that explains it. thanks [01:28:00.0000] huh [01:35:00.0000] well i guess we can form-associate them easily enough [01:37:00.0000] now I've got a Minefield build with a leaky HTML5 parser, but there are issues with getting the layout started, so it's no good for demo yet [01:45:00.0000] /me wonders if Apache 1.3 and 2.0 are still supported, since links to documentation are shown prominently on http://httpd.apache.org/ [02:18:00.0000] /me sees http://code.google.com/p/flot/http://code.google.com/p/flot/ - seems quite popular for drawing graphs [02:18:01.0000] Uh [02:18:02.0000] http://code.google.com/p/flot/ [02:20:00.0000] on a related note: do the dojo graphics part use canvas or SVG in Safari? [02:20:01.0000] s/do/does/ [02:43:00.0000] /me learns that the W3C has 50 WGs http://www.w3.org/2004/01/pp-impl/ [02:43:01.0000] Philip`: that is pretty cool [02:50:00.0000] i thought we established it was 70 [02:50:01.0000] or was that members of staff [02:51:00.0000] Hixie: are there still WGs that don't operate under the Patent Policy? [02:51:01.0000] dunno [02:51:02.0000] Hixie: or does 70 include Incubators and Interest Groups? [02:51:03.0000] maybe [02:52:00.0000] http-wg isn't in that list, but i guess it's covered by ietf patent policy? [02:52:01.0000] /me wonders how many groups are focusing on things pertaining to "the Web" [02:52:02.0000] 50, apparently [02:57:00.0000] /me thinks "humanity connected" is too vague to be a useful definition for "the Web" [02:58:00.0000] The postal system already connects humanity [03:04:00.0000] so does e-mail [03:05:00.0000] and that's not the Web either [03:05:01.0000] (though it is The Internet) [03:07:00.0000] also, the name Semantic Web implicitly concedes that it's a different web (a semantic one) [03:13:00.0000] /me signs up to lecture about HTML5 for 1.5 hours in the spring [03:16:00.0000] how do you define what exactly is part of the web and what isn't? [03:17:00.0000] and I thought the Semantic Web was supposed to be a subset of the whole web, not a completely different web [03:18:00.0000] Lachy: I think "the Web" is the system what people access using a Web browser [03:19:00.0000] Lachy: so the Semantic Web could technically become a part of it more easily than e.g. Web Services [03:19:01.0000] hsivonen: or "whichever services are accessed over http(s) using any software" [03:19:02.0000] which makes both the «browser web» and the «semantic web» a subset of the web [03:19:03.0000] virtuelv: I don't think any HTTP service is part of "the Web" [03:20:00.0000] virtuelv: also, I think files served by FTP can be part of the Web [03:21:00.0000] The web is anything with "www." at the start of its domain name [03:21:01.0000] I don't believe that from a user perspective, "the Web" has expanded to be more than the browsable Web it was in the beginning [03:22:00.0000] by that definition, does web based email become part of the web, or do you draw a line between the web interface and the email system? [03:22:01.0000] hsivonen: I thought the user perspective was that "web" and "internet" meant the same thing, so the more useful perspective is that of developers who are providing useful services to users [03:23:00.0000] Lachy: I think email and Usenet aren't part of the Web, but you can build Web UIs for both [03:23:01.0000] Philip`: would you consider an SVN repo whose authentication method precludes browsing to be part of "the Web" if it's on HTTP? [03:24:00.0000] Philip`: is Google Earth part of "the Web" if it requires a special client but downloads stuff over HTTP? [03:24:01.0000] Is the Flickr API part of the Web even though you need an API-specific client? [03:27:00.0000] note that I'm not suggesting that there's anything wrong with not being part of "the Web". I'm just suggesting that it's not very useful to have an all-encompassing definition that doesn't match perception outside the W3C. [03:27:01.0000] hsivonen: I don't have a sufficiently well-developed perspective to have any confident answers to those questions :-) [03:32:00.0000] I think it's much easier to draw the line between Google Earth and the Web than to draw the line between an intranet and the Web or to draw the line between an operator-specific "mobile web" and the Web [03:32:01.0000] i disagree that ftp is part of the web [03:32:02.0000] similarly, nor is my local filesystem [03:33:00.0000] /me wonders if hsivonen has seen microsoft's virtual earth [03:33:01.0000] Hixie: I haven't [03:33:02.0000] it's an activex implementation of something like google earth [03:33:03.0000] where's your line now? :-) [03:34:00.0000] Hixie: so if I follow a link from the unicode.org HTTP site to the definition files on ftp.unicode.org, and your browser Just Works, did you browse off the Web? [03:34:01.0000] yes [03:34:02.0000] imho [03:35:00.0000] Hixie: I'm inclined to draw the line at browser built-in feature set plus Flash [03:35:01.0000] so my local file system and my mail client are part of the web? [03:35:02.0000] as is my text editor? [03:35:03.0000] and my shell? [03:35:04.0000] Hixie: no, your local mail client isn't [03:36:00.0000] "browser" is highly ill-defined [03:36:01.0000] Hixie: coming up for a reason why your local file system isn't but Gmail is is harder [03:36:02.0000] if i load seamonkey and open mozilla mail in a tab, it sure looks like mail in my browser [03:36:03.0000] Intuitively, your file system isn't but Gmail is [03:36:04.0000] Hixie: it's not a browsing context [03:37:00.0000] hsivonen, someone's local file system generally isn't available over the internet, so there seems to be a clear line there [03:37:01.0000] it has a Window object :-) [03:37:02.0000] Hixie: so how do *you* define the Web? [03:37:03.0000] Lachy: ok, so should some version of IP be involved? [03:37:04.0000] i engineer my life around not having to answer that question [03:37:05.0000] e.g. by not making mistakes like putting the word "web" into my mission statements [03:37:06.0000] Hixie: but you ofter say that something isn't part of the Web [03:38:00.0000] s/ofter/often/ [03:38:01.0000] if pressed, i would define the web as anything accessible via HTTP over TCP/IP from the majority of nodes on the internet [03:39:00.0000] and would define the internet as the largest collection of publicly accessible tcp/ip nodes [03:39:01.0000] Hixie: even if you need a service-specific client like Google Earth? [03:39:02.0000] yes [03:39:03.0000] interesting [03:39:04.0000] but my definition isn't intended to be useful [03:41:00.0000] it's possible that you might be able to exclude google earth from my definition by defining "accessible via HTTP" as meaning accessible in a manner that doesn't involve any proprietary extensions [03:41:01.0000] though if google earth doesn't use any, then yeah, it's definitely part of the web [03:41:02.0000] I'm interested in a definition for the reason why I tried to define the Web somewhat unsuccessfully on a panel at TPAC [03:42:00.0000] which is? [03:42:01.0000] there are various things that purport to be quasi-normative about efforts that pertain to "the Web" but that clearly are talking about something else [03:43:00.0000] e.g. AWWW doesn't read like it's describing "the Web" [03:44:00.0000] can you give an example? [03:44:01.0000] there are things in AWWW that i think are wrong, but i wouldn't have said it was clearly inapplicable to the web [03:44:02.0000] Hixie: http://www.w3.org/TR/webarch/#xml-qnames [03:44:03.0000] Hixie: it has a whole section on XML issues [03:45:00.0000] so? xml is used on the web [03:45:01.0000] quite a lot, though nothing resembling the amount that, say, ms word is used on the web [03:46:00.0000] e.g. Atom is on the Web [03:46:01.0000] it's used on the Web, but a document that has such a focus on XML and is mostly silent about HTML, JS and CSS doesn't look like a document whose focus is on what I understand the Web to be [03:46:02.0000] it's more like a document on W3C activities at the time of writing [03:47:00.0000] well don't forget that at the time of writing, html had been declared dead for 6 years [03:47:01.0000] and the people who were involved in its creation are not well-versed in JS or CSS issues [03:48:00.0000] Hixie: is Word used "on the Web" because it can load stuff over HTTP? [03:48:01.0000] i think you are mistaking a natural bias caused by the environment in which it was written and the knowledge space and opinions of its authors, for an error in the intended scope of the document [03:49:00.0000] Hixie: is your local drive on the Web if you access it over WebDAV on localhost but no one else is allowed to do that? [03:49:01.0000] Word is used on the Web because people can upload files and download files to and from the web [03:49:02.0000] i would define the web as anything accessible via HTTP over TCP/IP from the majority of nodes on the internet. so no. [03:49:03.0000] Word files can even contain HTTP hyperlinks [03:49:04.0000] correct [03:50:00.0000] (i would probably clarify my definition of "HTTP" to exclude all extensions to HTTP, not just proprietary ones.) [03:50:01.0000] (thus excluding uPnP, WebDAV, and the like) [03:50:02.0000] Hixie: should the W3C work on getting a public RF spec for .doc in /TR/ ? [03:51:00.0000] based on what principle? [03:51:01.0000] Hixie: so are intranets on the Web if they are reachable from anywhere on the Internet but require login? [03:52:00.0000] is the member-only space of the W3C on the Web? [03:53:00.0000] if you can get to an intranet from a random internet node using nothing but HTTP, then it's an extranet, not an internet. [03:53:01.0000] Hixie: if Word docs are part of the Web and we need the Web to be openly specified so that client can be implemented [03:53:02.0000] extranet, not intranet, rather [03:53:03.0000] and if it's an extranet, i don't know how to distinguish it from a private section of what is definitely on the web [03:53:04.0000] so i'd say yes [03:53:05.0000] Hixie: I thought an extranet is open to one's business partners but an intranet to empoyees [03:54:00.0000] clients can already implement all they need to do to handle Word documents, that's just downloading a file [03:54:01.0000] I think Gmail isn't very different from an extranet [03:54:02.0000] and the difference between an extranet and an intranet is who has logic credentials [03:55:00.0000] hm, yes, seems my definition of extranet was wrong [03:55:01.0000] anyway. i think the whole discussion is a rathole [03:55:02.0000] just rephrase whatever it is that makes you need a definition for "web" to avoid the concept altogether. [03:55:03.0000] btw, I think the biggest bug in my definition at TPAC pertained to excluding intranets [03:57:00.0000] clearly, it's a rathole, but not knowing what the Web is seems to cause a whole bunch of ratholes [03:58:00.0000] how does one know if a particular activity is leading the Web to its full potential without a definition for the Web? [03:59:00.0000] I'm still not convinced that HTTP reachability from the largest set of IP nodes is a sufficient criterion, because intuitively, SOAP systems aren't on the Web [04:00:00.0000] the problem is not the lack of definition of the web. the problem is with the mission "leading the Web to its full potential". [04:00:01.0000] can anything that isn't resource-oriented be *on* the Web? [04:00:02.0000] HTTP only works with resources, so, by my definition, no [04:02:00.0000] Hixie: so what's the Open Web? :-) [04:02:01.0000] Leading the Rathole to Its Full Potential [04:03:00.0000] Hixie: if you could be the Decider, how would you bound the scope of the W3C activities? [04:04:00.0000] if i was the decider, i'd close the w3c altogether and spin off smaller groups like the whatwg for each core technology, covered by a patent policy from an umbrella group like the open web foundation [04:05:00.0000] the idea of a standards organisation having paid staff and a budget is ridiculous, imho, since it leads to the organisation focusing on what makes money to perpetuate the organisation and keep the people employed, rather than on making the technology better [04:05:01.0000] I still think that navigability with a browser is a key characteristic of the Web even though saying so leaves the boundaries fuzzy [04:05:02.0000] i think that saying so is flat out wrong [04:05:03.0000] RSS/Atom are a key part of the web [04:06:00.0000] and it just leads to an even bigger problem, namely, defining "browser" [04:08:00.0000] indeed, defining a browser in general is harder, but the browsers actually define what can be authored are few and well-known [04:09:00.0000] not really [04:09:01.0000] e.g. googlers were using chrome for months before anyone outside google new about it [04:10:00.0000] at that time, Chrome clearly wasn't setting bounds of possibility to Web authoring [04:10:01.0000] it was for people at google :-) [04:11:00.0000] perhaps browsers need to be reachable from a large set of nodes, too :-) [04:11:01.0000] then you need to define browser again [04:11:02.0000] Walled garden browser :) [04:11:03.0000] so you can determine what the market you're going to be comparing to is [04:12:00.0000] Hixie: I guess browsers could be defined like SCOTUS defines porn :-) [04:13:00.0000] well then you might as well just define the Web that way [04:13:01.0000] true [04:14:00.0000] however, I still think people are in more agreement of recognizing a browser when they see one than in recognizing a part of the Web when they see one [04:15:00.0000] (The bad thing with going on a panel with short notice is not having time for this kind of review in advance...) [04:15:01.0000] s/with/on/ [04:15:02.0000] (the latter with) [04:25:00.0000] the panel was a waste of time -- the premise of the panel was flawed [04:26:00.0000] (namely, that there was clear disagreement on whether AWWW should exist, and that that disagreement was on philosophical lines rather than strictly technical liens) [04:26:01.0000] but then, i said that before the panel, that's why i refused to go on it :-) [04:27:00.0000] Hixie: I'm not philosophically opposed to a document that describes the architecture of the Web if it read like a description of the architecture of the Web [04:28:00.0000] right, so your feedback is just "awww is fine, but could you focus more on [list of topics]" [04:28:01.0000] which isn't something you can have a useful panel about [04:28:02.0000] it's the kind of thing that belongs in simple e-mail [04:28:03.0000] where someone can then just go ahead and do what you ask for [04:30:00.0000] hsivonen: If your use case is that you want to argue against things that talk about the web but ignore HTML/JS/CSS, then you don't need a complete definition of the web, you just need a sufficient fragment of definition that says it includes HTML/JS/CSS and doesn't say anything about what is excluded [04:30:01.0000] Hixie: well, practically, I'm not convinced that allocating resources to writing a document that describes the architecture is a priority [04:31:00.0000] Philip`: I also feel I should exclude e.g. my cactus pot which isn't on the Web [04:32:00.0000] hsivonen: since everyone working on it is a volunteer, that doesn't seem like a problem. [04:32:01.0000] Philip`: although I agree that in order to make a point, my cactus pot's being on the Web can be undefined [04:33:00.0000] /me suddenly sees a whole new meaning in the phrase "awww isn't that cute", just like that thing with the faces/candlestick [04:33:01.0000] hm, happy mailman mailing list memberships reminder day everyone [04:34:00.0000] How many did you get? [04:34:01.0000] three so far [04:34:02.0000] and it's only 4:40am here! [04:34:03.0000] I've only got two [04:35:00.0000] gotta remember to browse to different URIs for W3C list archives, too [04:35:01.0000] just use /latest [04:35:02.0000] Yeah, it would be far too easy if the "next message" link actually went to the next month [04:35:03.0000] Hixie: that's not what my browsers pick up and remember automatically [04:35:04.0000] yeah i hate how they don't support linking threads cross-month [04:35:05.0000] that loses me so much time [04:36:00.0000] especially since i'm always replying years later [04:36:01.0000] hsivonen: damomow.com/portal :-) [04:36:02.0000] according to my script, whatwg-bounces⊙lwo is the second-most prolific author on the whatwg list. that seems wrong. [04:36:03.0000] /me tests if domowmow is mobile ok [04:36:04.0000] i wonder why i'm getting that. [04:36:05.0000] works on my ipod [04:37:00.0000] my phone OS doesn't have any recent browser releases available :-( [04:38:00.0000] except Mini [04:38:01.0000] damowmow portal works better on my phone than in IE8 :-) [04:38:02.0000] that's not hard [04:38:03.0000] /me recently totally redesigned the portal's look [04:39:00.0000] i like the new look [04:39:01.0000] especially in safari [04:39:02.0000] a couple of days ago, Opera.com gave me false hope by telling me that Opera 9.62 for Symbian is available [04:39:03.0000] I think the opera.com update announcer script is broken [04:39:04.0000] i wish opera would just autoupdate [04:39:05.0000] anyway [04:39:06.0000] bed time [04:39:07.0000] nn [04:39:08.0000] because they offered me a Windows version when following the link [04:40:00.0000] nn [04:51:00.0000] What? http://www.w3.org/Bugs/Public/show_bug.cgi?id=5822#c16 [04:53:00.0000] Dashiva: Spam - see #html-wg ten hours ago [04:54:00.0000] And still there... [04:55:00.0000] Does Bugzilla make it possible to delete comments? [04:58:00.0000] Philip`: I looked for a way that I could delete it myself, but couldn't find any [04:58:01.0000] let's hope bugzilla doesn't get the same amount of spam as the forums... [04:58:02.0000] back when it was spammed i.e. [04:58:03.0000] I've got some level of admin perms on it, but apparently not enough to do things like delete users or comments [04:59:00.0000] http://trac.edgewall.org/prefs/pygments - the HTML5 doctype seems to be growing in popularity [05:24:00.0000] BenMillard: If you're reading logs: s/thier/their/ in your comparison document [05:28:00.0000] I thought the smart headers algorithm interpreted ... and ... as being equivalent to [05:29:00.0000] at least, that's the impression I got from jgraham's table inspector UI [05:30:00.0000] hmm, testing it shows that it doesn't. Only the Experimental option uses that logic. jgraham why is that? [05:50:00.0000] Lachy: That was jsut bad UI [05:51:00.0000] but why doesn't smart headers use that logic anyway? [05:51:01.0000] Because it doesn't work very well in practice [05:51:02.0000] oh, ok. I thought it was relatively common for people to fake headers using [05:52:00.0000] are there more false positives though? [05:52:01.0000] The false positives are an issue (according to Ben) [05:52:02.0000] s/an/a serious/ [05:54:00.0000] i've seen a number of tables that use as if it were a caption for the table and then for table headers [06:24:00.0000] I wonder if I should revise my doctype advice to suggest the HTML5 doctype as sooner than I've previously indicated [06:26:00.0000] I think I will be out of gloom scenarios regarding the doctype once IE8 has shipped [06:27:00.0000] that is, I'd be more inclined to hit the brakes with stuff like than with the doctype [06:27:01.0000] /me wonders if is already beyond the point where it could change to mean an app dialog box [06:30:00.0000] hsivonen, it depends of there's any content out there using it [06:31:00.0000] that's the thing. HTML5 has already been hyped [06:31:01.0000] and I suspect there's very little of it, except possibly on sites of early adopters like Sam Ruby [06:31:02.0000] /me wonders if it's too late to fix the XML 1.1, xml:id and Namespaces usage of DFXP [06:32:00.0000] hsivonen: maybe v.nu should give warnings on features authors shouldn't use yet [06:32:01.0000] zcorpan: warning about stuff that hasn't shipped could be good, yes [06:33:00.0000] hsivonen, do you mean this? http://www.w3.org/TR/ttaf1-dfxp/ [06:33:01.0000] I'd never heard of that before but it was the first result for DFXP [06:33:02.0000] Lachy: yes [06:34:00.0000] so I guess you mean "usage in" instead of "usage of" [06:34:01.0000] Lachy: yes [06:36:00.0000] Doesn't look like the "valid html5" badge has taken hold [06:36:01.0000] Dashiva, that's a good thing [06:37:00.0000] but what are you basing your assertion on? [06:37:01.0000] Google image search for "valid html5" [06:38:00.0000] the reason is probably that v.nu doesn't issue such badges of honour, like the w3c validator does [06:39:00.0000] and maybe that the badge that exists has a disclaimer next to it saying you shouldn't use it [06:40:00.0000] Which badge is that? [06:41:00.0000] where is that badge located? [06:41:01.0000] ah, on simon.html5.org [06:41:02.0000] zcorpan: The majority of places don't include the disclaimer :) [06:43:00.0000] Dashiva: where are the other places? [06:44:00.0000] http://datadriven.com.au/2007/03/08/the-new-html-working-group/ and http://dashiva.net/ [06:48:00.0000] well if there are only 3 pages to find it then it's not so bad [07:15:00.0000] The W3C validator doesn't give badges for HTML5 pages - is that an intentional following of the philosophy that badges are bad, or is it just because they haven't got around to building a badge image yet? [07:17:00.0000] it's probably because they haven't made a badge for it yet, or because the spec isn't finalised and the validator is still unstable [07:17:01.0000] it does issue a warning when you validate HTML5, that it's still experimental [07:18:00.0000] It says "Passed, 1 warning(s)" but the list of potential issues has an "Info" and not a warning [07:34:00.0000] Lachy: get what you want working? [07:35:00.0000] gsnedders, no, I can't figure out what type of object is returned by the outliner. [07:35:01.0000] Lachy: section(list) [07:35:02.0000] wtf? [07:35:03.0000] /me notes he is now in a good mood and may be kind enough to write what Lachy wants [07:36:00.0000] Lachy: a subclass of the builtin list object called section [07:36:01.0000] this is what I have, mostly copied from toc.py: [07:36:02.0000] class adjustheadings: [07:36:03.0000] """Change the heading elements to use the backwards compatible, numbered headings""" [07:36:04.0000] def __init__(self, ElementTree, **kwargs): [07:36:05.0000] # Build the outline of the document [07:36:06.0000] outline_creator = outliner.Outliner(ElementTree, **kwargs) [07:36:07.0000] outline = outline_creator.build(**kwargs) [07:36:08.0000] # Get a list of all the top level sections, and their depth (0) [07:36:09.0000] sections = [(section, 0) for section in reversed(outline)] [07:36:10.0000] Lachy: pastebin! [07:36:11.0000] section, depth = sections.pop() [07:36:12.0000] too much effort [07:37:00.0000] I don't understand what this syntax means: [(section, 0) for section in reversed(outline)] [07:38:00.0000] Lachy: it creates a list of items (section, 0) for each section in outline, backwards [07:39:00.0000] Lachy: It's like "r = []; for section in reversed(outline): r.append( (section, 0) ); return r" [07:39:01.0000] oh, that makes more sense. why wasn't it just written like that? [07:40:00.0000] /me shrugs [07:40:01.0000] too verbose [07:40:02.0000] Because that's three lines, which is horribly verbose when you can write it in one [07:41:00.0000] gsnedders, I think I may have spotted a bug in your code too, from line 66 in toc.py: [07:41:01.0000] while i <= 6: [07:41:02.0000] header_text = section.header.find(u"h" + unicode(i)) [07:41:03.0000] if header_text is not None: [07:41:04.0000] break [07:41:05.0000] Lachy: where's the bug? [07:41:06.0000] that seems to be an infinite loop, since i isn't incremented anywhere? [07:42:00.0000] and it should be .//h [07:44:00.0000] what's ".//h" mean? [07:44:01.0000] Lachy: Also, what you want in complicated by the header element [07:45:00.0000] also, what do I do with headers within blockquote and tds? [07:45:01.0000] (i.e., in other sectioning roots) [07:46:00.0000] I think in
, the heading would have to be left unchanged [07:46:01.0000] not sure what the problem is with TDs [07:46:02.0000] http://www.whatwg.org/specs/web-apps/current-work/#sectioning-root [07:46:03.0000] /me blames Hixie [07:48:00.0000] at least for the first version, you could leave them unchanged in too, since for what it's being designed for, headings in is unlikely to occur anyway [07:49:00.0000]
is a bit of a problem too, especially if there are subheadings [07:52:00.0000] for now, I think the important features to handle for the initial version are
,
and