Options:
- # Session Start: Fri Nov 14 00:00:00 2008
- # Session Ident: #html-wg
- # [00:01] <Hixie> document.getElementById("rfc").contentDocument is fine, but .length is undefined in Document objects, so it won't give you anything useful
- # [00:01] <Hixie> if you want the length of the document, there's no good way of getting it, because DOM Core doesn't guarantee that all adjacent text will be in one text node anyway
- # [00:02] <DanC> I tried .contentType ; same error
- # [00:02] * DanC switches to http://0.0.0.0:8000/tinker.html ...
- # [00:03] * DanC is winning with .contentType now...
- # [00:04] <DanC> so what I want is the text of this text/plain document in the iframe
- # [00:04] <Hixie> if you're lucky, it'll be in ...body.firstChild.firstChild.data
- # [00:04] <Hixie> but there's no guarentee that it'll all be there
- # [00:04] <Hixie> it might be split into multiple text nodes
- # [00:05] * Quits: Lachy_ (Lachlan@24.234.142.17) (Ping timeout)
- # [00:05] <Philip> Can't you just use textContent or whatever it's called?
- # [00:05] <Hixie> oh yeah ...contentDocument.textContent will work (except in IE)
- # [00:06] <DanC> "document.textContent Returns null (returns other values for other nodes)." -- https://developer.mozilla.org/en/DOM/document
- # [00:06] <pimpbot> Title: document - MDC (at developer.mozilla.org)
- # [00:06] <Hixie> oh, then ...contentDocument.body.textContent
- # [00:07] <Hixie> i suppose that makes sense; setting it would fail on document, so getting it non-null would be asymmetric
- # [00:07] <DanC> ok... .contentDocument.body.textContent sorta works... but .length() on the end doesn't.
- # [00:08] <Hixie> .length
- # [00:08] <Hixie> no ()
- # [00:08] <Hixie> it's an attribute not a method
- # [00:08] <DanC> and this isn't ruby.
- # [00:08] <DanC> aha! winning now.
- # [00:10] * Joins: adele_ (adele@17.203.15.224)
- # [00:12] * Quits: adele (adele@17.203.15.250) (Ping timeout)
- # [00:12] <DanC> lines[i].startswith is not a function... too much python on the head...
- # [00:15] * DanC puzzles over slice vs substr...
- # [00:16] * Joins: adele (adele@17.203.15.224)
- # [00:17] * Quits: adele_ (adele@17.203.15.224) (Connection reset by peer)
- # [00:17] <Hixie> at this point you're beyond my knowledge, i just always have the JS spec open when I'm doing string stuff in JS
- # [00:21] <Dashiva> DanC: slice supports negative values for start and stop
- # [00:22] * Quits: adele (adele@17.203.15.224) (Connection reset by peer)
- # [00:23] <DanC> "the JS spec"? i.e. ECMA-262?
- # [00:23] * Joins: adele (adele@17.203.15.224)
- # [00:24] <Hixie> yes
- # [00:24] <Dashiva> (substring vs substr is more fun)
- # [00:25] <DanC> I should probably use Mochikit; it seems to be the standard javascript-for-python-heads gimmick
- # [00:43] * DanC goes a few rounds with jslint
- # [00:48] * Philip tends to find jslint is slightly more pedantic than he wants
- # [00:49] <Philip> Also I tend to find the JS spec is unreadable, so I use Mozilla's documentation instead
- # [00:53] <DanC> ok, well, most of that wasn't directly relevant to the task at hand, but the code now works. http://homer.w3.org/~connolly/projects/urlp/file/622b1a5ec9f9
- # [00:53] <pimpbot> Title: urlp: manifest for changeset 622b1a5ec9f9 (at homer.w3.org)
- # [00:54] <DanC> ew... tabs... why, emacs, why?
- # [00:57] * Quits: billmason (bmason@69.30.57.41) (Quit: Leaving.)
- # [00:57] <DanC> better. http://homer.w3.org/~connolly/projects/urlp/file/8b2185b29198
- # [00:57] <pimpbot> Title: urlp: manifest for changeset 8b2185b29198 (at homer.w3.org)
- # [00:59] * Quits: maddiin (mc@87.185.230.42) (Quit: maddiin)
- # [01:08] * Quits: adrianba (adrianba@131.107.0.80) (Quit: leaving)
- # [01:13] * Quits: MichaelC (Michael@128.30.52.30) (Quit: ChatZilla 0.9.83 [Firefox 3.0.3/2008092417])
- # [01:24] <hober> DanC: which javascript major mode do you use? (setq-default indent-tabs-mode nil) from its mode hook and you should be good to go.
- # [01:27] <MikeSmith> hsivonen: yeh, most of those datatype regexps come straight from comments in the schema
- # [01:33] * Joins: shepazu (schepers@128.30.52.30)
- # [01:36] * Quits: heycam (cam@130.194.72.84) (Quit: bye)
- # [01:39] * Quits: adele (adele@17.203.15.224) (Quit: adele)
- # [01:40] * Joins: adele (adele@17.244.16.252)
- # [01:46] * Joins: adele_ (adele@17.203.15.224)
- # [01:47] * Quits: adele (adele@17.244.16.252) (Ping timeout)
- # [01:59] <MikeSmith> hsivonen: I just updated my v.nu local install and am getting errors "package org.relaxng.datatype does not exist" etc.
- # [01:59] * Quits: shepazu (schepers@128.30.52.30) (Ping timeout)
- # [02:00] <MikeSmith> this is on a debian system, so maybe the same classpath problem that Olivier describes
- # [02:03] * Quits: adele_ (adele@17.203.15.224) (Quit: adele_)
- # [02:22] * Quits: tH (Rob@129.11.83.58) (Quit: ChatZilla 0.9.83-rdmsoft [XULRunner 1.9.0.1/2008072406])
- # [02:33] * Quits: DanC (connolly@128.30.52.30) (Client exited)
- # [02:42] * Quits: Sander (svl@86.87.68.167) (Quit: And back he spurred like a madman, shrieking a curse to the sky.)
- # [02:45] <MikeSmith> hsivonen: sorry, build problem I mentioned was caused by pilot error
- # [02:46] <MikeSmith> but I'm getting a fatal error now when I try to run it after building
- # [02:46] <MikeSmith> NullPointerException in nu.validator.localentities.LocalCacheEntityResolver.<clinit>(LocalCacheEntityResolver.java:30)
- # [03:56] * Quits: dbaron (dbaron@63.245.220.241) (Ping timeout)
- # [04:37] <MikeSmith> hsivonen: hmm, getting "Reading schema failed. Terminating." prior to that
- # [04:38] <MikeSmith> I'll send you a full log
- # [04:53] <pimpbot> planet: HTML 5, the markup <http://www.w3.org/QA/2008/11/html_5_the_markup.html>
- # [04:57] * Joins: Thezilch (fuz007@76.171.111.7)
- # [04:57] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: sex break)
- # [05:53] <pimpbot> planet: So When Is Microsoft Going to Start Drinking the HTML5 Juice? <http://stackoverflow.com/questions/289225/so-when-is-microsoft-going-to-start-drinking-the-html5-juice>
- # [05:55] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [06:34] <MikeSmith> @time
- # [06:34] <pimpbot> MikeSmith: 14:28 PM JST, November 14
- # [06:34] * Joins: dbaron (dbaron@71.204.144.136)
- # [06:53] <pimpbot> planet: Does IE 8 support HTML 5? <http://stackoverflow.com/questions/289225/does-ie-8-support-html-5>
- # [07:12] * Quits: dbaron (dbaron@71.204.144.136) (Ping timeout)
- # [07:14] * Joins: dbaron (dbaron@71.204.144.136)
- # [07:27] * Quits: dbaron (dbaron@71.204.144.136) (Quit: g'night)
- # [07:27] * Quits: gavin_ (gavin@99.253.193.147) (Ping timeout)
- # [07:31] * Joins: gavin_ (gavin@99.253.193.147)
- # [07:46] * Joins: adele (adele@24.7.125.179)
- # [07:50] <Hixie> http://www.webdirections.org/blog/html5-markup-language-first-draft-published/#more-1243
- # [07:50] <pimpbot> Title: HTML5 Markup Language first draft published | Web Directions (at www.webdirections.org)
- # [07:50] <Hixie> "In essence, it’s a web authors guide to HTML."
- # [07:50] <Hixie> poor lachy
- # [07:59] * Quits: aroben (aroben@71.58.97.175) (Quit: Leaving)
- # [08:35] * Joins: heycam (cam@210.84.56.87)
- # [08:52] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: sex break)
- # [09:29] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [09:50] * Quits: Yudai (Yudai@115.163.209.140) (Ping timeout)
- # [09:51] * Joins: Yudai (Yudai@115.163.209.140)
- # [10:00] * Joins: tH (Rob@129.11.83.58)
- # [10:31] * Joins: ROBOd (robod@89.122.216.38)
- # [11:09] * Quits: Thezilch (fuz007@76.171.111.7) (Connection reset by peer)
- # [11:14] * Joins: myakura (myakura@122.17.190.200)
- # [12:01] * Joins: Sander (svl@86.87.68.167)
- # [13:05] * Joins: maddiin (mc@87.185.255.107)
- # [13:07] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: sex break)
- # [13:08] * Joins: MikeSmith (MikeSmith@mcclure.w3.org)
- # [13:12] * Quits: MikeSmith (MikeSmith@mcclure.w3.org) (Quit: sex break)
- # [15:04] * Quits: sryo (sryo@190.245.198.94) (Ping timeout)
- # [15:10] * Joins: DanC (connolly@128.30.52.30)
- # [15:29] * Joins: sryo (sryo@190.245.198.94)
- # [15:46] * Quits: sryo (sryo@190.245.198.94) (Ping timeout)
- # [15:55] * Joins: sryo (sryo@190.245.198.94)
- # [16:06] * Joins: aroben (aroben@71.58.97.175)
- # [16:33] * Joins: MichaelC (Michael@128.30.52.30)
- # [17:11] * Quits: myakura (myakura@122.17.190.200) (Quit: Leaving...)
- # [17:13] * Quits: gavin (gavin@63.245.208.169) (Ping timeout)
- # [17:18] * Joins: billmason (bmason@69.30.57.41)
- # [17:49] * Joins: gavin (gavin@63.245.208.169)
- # [18:14] * Joins: raphyque (akhenifsa@41.210.126.138)
- # [18:20] * Joins: shepazu (schepers@128.30.52.30)
- # [18:49] * Quits: shepazu (schepers@128.30.52.30) (Quit: shepazu)
- # [19:07] * Quits: raphyque (akhenifsa@41.210.126.138) (Quit: raphyque)
- # [19:25] * Quits: adele (adele@24.7.125.179) (Quit: adele)
- # [19:29] * Quits: maddiin (mc@87.185.255.107) (Quit: maddiin)
- # [19:48] * Joins: adele (adele@17.203.15.224)
- # [19:48] * Joins: dbaron (dbaron@63.245.220.241)
- # [21:06] * Joins: maddiin (mc@87.185.255.107)
- # [21:17] * Joins: sryo1 (sryo@190.245.198.94)
- # [21:17] * Quits: sryo (sryo@190.245.198.94) (Connection reset by peer)
- # [21:22] * Quits: Yudai (Yudai@115.163.209.140) (Ping timeout)
- # [21:22] * Joins: Yudai (Yudai@115.163.209.140)
- # [22:17] * Joins: aaronlev (chatzilla@84.97.227.22)
- # [22:22] * Quits: ROBOd (robod@89.122.216.38) (Quit: http://www.robodesign.ro )
- # [22:59] * Quits: aaronlev (chatzilla@84.97.227.22) (Ping timeout)
- # [23:06] * Quits: adele (adele@17.203.15.224) (Quit: adele)
- # [23:07] * Joins: adele (adele@17.203.15.224)
- # [23:19] * Quits: maddiin (mc@87.185.255.107) (Quit: maddiin)
- # [23:21] * Quits: MichaelC (Michael@128.30.52.30) (Quit: ChatZilla 0.9.83 [Firefox 3.0.3/2008092417])
- # [23:59] * Quits: adele (adele@17.203.15.224) (Quit: adele)
- # [23:59] * Joins: aaronlev (chatzilla@84.97.227.22)
- # Session Close: Sat Nov 15 00:00:00 2008
The end :)