/irc-logs / freenode / #whatwg / 2008-04-20 / end

Options:

  1. # Session Start: Sun Apr 20 00:00:00 2008
  2. # Session Ident: #whatwg
  3. # [00:01] <takkaria> too big
  4. # [00:02] <gsnedders> "By default each page has a 90pt margin on the left and right and a 72pt margin on the top and bottom." — http://www.princexml.com/bb/viewtopic.php?p=226
  5. # [00:05] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
  6. # [00:29] <Philip`> Star rating widgets are often interactive, so you can click on the nth star to submit a rating of n
  7. # [00:29] <Philip`> so <progress> won't work there - what's a good alternative?
  8. # [00:31] <annevk> <meter> without initial value?
  9. # [00:31] * annevk wonders if that's possible
  10. # [00:32] <Philip`> Er, I meant <meter> not <progress>
  11. # [00:32] <Philip`> Rating: <a href=vote?1><img src=onstar alt='Current rating: 2 out of 3. Submit your vote: 1' title='Vote 1/3'></a><a href=vote?2><img src=onstar alt=2 title='Vote 2/3'></a><a href=vote?3><img src=offstar alt=3 title='Vote 3/3'></a>
  12. # [00:32] <webben> logically speaking it's a input type="range"
  13. # [00:32] <webben> perhaps
  14. # [00:33] <annevk> yeah and once submitted it's converted into <meter>
  15. # [00:33] <annevk> could work
  16. # [00:33] <annevk> once the CSS/XBL story actually works for form controls
  17. # [00:33] <webben> yep
  18. # [00:33] <webben> if it ever does
  19. # [00:34] * Philip` still doesn't like depending on technologies that don't exist yet
  20. # [00:35] <othermaciej> best current way would probably be to put a click event handler on every star
  21. # [00:36] <othermaciej> (since you probably want to submit the rating in some ajaxy way)
  22. # [00:36] <othermaciej> or you could make them <input type="image"> and have an onsubmit handler on the form do the async submission
  23. # [00:37] <Philip`> If it's done with multiple images, I'm wondering what suitable alt text should be, since it needs to convey the value of each star and the current rating, and there are ~5 separate alt attributes to spread the text across
  24. # [00:39] <webben> it's certainly fiddly
  25. # [00:40] <othermaciej> logically, it's an <input type="range" min="1" max="5">
  26. # [00:40] <othermaciej> but XBL binding that to look right - good luck
  27. # [00:41] <othermaciej> I guess input type="number" might be more appropriate
  28. # [00:41] <othermaciej> (same min and max)
  29. # [00:41] <othermaciej> anyway
  30. # [00:41] <othermaciej> you could use alt to represent the state and "title" on each star to indicate what clicking it will do
  31. # [00:41] <Philip`> It should be possible to write conforming HTML5 that works in legacy browsers
  32. # [00:41] <Philip`> in which case you can't use new <input> types or XBL
  33. # [00:41] <othermaciej> assuming you use input type="image
  34. # [00:43] <Philip`> othermaciej: The issue (or at least the one I'm pretending to care about) is that you then have multiple images conveying a single piece of information (the current rating), and alt is defined to only be about the information conveyed by a single image
  35. # [00:43] <webben> could also be a fieldset of radio buttons
  36. # [00:43] <othermaciej> <form onsubmit="changeRating(event)"><input type="image" alt="" title="set rating to 1/5"><input type="image" alt="2/5"....>
  37. # [00:43] <othermaciej> where 2/5 is the current rating
  38. # [00:43] <othermaciej> that might not give good results in a screen reader though
  39. # [00:44] <Philip`> You should be able to vote for the current rating too (where 'current rating' is determined by other voters)
  40. # [00:45] <webben> <fieldset><legend>Rating: 2 out of 5</legend><input type="image" alt="Set rating to 1 out of 5"><img alt=""><input type="image" alt="Set rating to 3 out of 5">...</fieldset>
  41. # [00:45] <webben> maybe
  42. # [00:46] <gsnedders> Problem with developing print style sheets in Prince: you forget how bad actual browsers are at all the page CSS (i.e., css3-page, css3-gcpm).
  43. # [00:49] <othermaciej> would using ARIA to pretend the star control is a spinbox work?
  44. # [00:50] <othermaciej> this is really a case where you can easily build the UI you want for non-disabled users, but you want a low-level accessibility API to make things great for the visually or motor impaired
  45. # [00:51] <webben> i'm sure you could do /something/ with ARIA.
  46. # [00:52] <webben> that sounds reasonable.
  47. # [00:53] <webben> "This functionality should be accomplished programmatically through the use of up and down arrows on the keyboard." (http://www.w3.org/TR/wai-aria/#spinbutton) ... would be better if they didn't specify particular keys though!
  48. # [00:54] <Philip`> Seems like there's a danger that for any accessibility-related problem, I could just say that ARIA can probably solve it, so that's okay, and then I don't actually know how to use ARIA and haven't got a clue how to test it even if I did use it, so I'll just leave it until later (i.e. never implement it)
  49. # [00:54] <webben> yep
  50. # [00:54] <Philip`> I can cope with understanding accessibility at the level of "if all images are replaced by their alt text, the page should still be usable", but that's about it
  51. # [00:56] <webben> easiest way to test these things is to ask some real users to test them (e.g. jaws-users mailing list, discuss@macvisionaries.com etc.)
  52. # [00:57] <webben> VO/FireVox/Orca/NVDA are also relatively easy to learn, though hard to use the same as someone who needs to use them in anger.
  53. # [00:57] <Philip`> Hmm, I think I consider other people's time too valuable to ask them to review my rubbish web apps :-)
  54. # [00:57] <webben> Opera Voice is another interesting one
  55. # [00:58] <webben> Philip`: It's a mailing list, they can always ignore you :) ... they're often keen to help webdevs in passing though.
  56. # [00:58] <webben> Philip`: Also, if you can generalize the technique at all, then you can publish it and save someone else the testing.
  57. # [00:59] <Philip`> If they ignored me and didn't waste their time, that'd be wasting my time instead, so it'd be better to just not ask :-)
  58. # [00:59] <webben> Only with the advantage of hindsight.
  59. # [01:00] <Philip`> Seems like it would be a useful resource if I was doing anything that actually had users, though
  60. # [01:00] <webben> with this theoretical spinboxy thing, I wonder whether Opera Voice would use the ARIA role or the non-ARIA markup or what
  61. # [01:01] <Philip`> Does Opera Voice understand ARIA?
  62. # [01:01] <Philip`> (Is there a test somewhere to find out?)
  63. # [01:01] <webben> annevk: Do you know whether Opera Voice is using the ARIA stuff being implemented in Kestrel?
  64. # [01:02] <webben> Philip`: Problem is knowing what one's testing. First you'd need to find a nice ARIA test, then check Opera is exposing it to MSAA, the check what OV does.
  65. # [01:02] <webben> and even though it's a bit hard to know
  66. # [01:02] <webben> OV's a bit buggy.
  67. # [01:02] <webben> (e.g. in 9.x, you can't open links in the content area)
  68. # [01:02] * Philip` wishes Opera Voice worked on Linux
  69. # [01:02] <othermaciej> we really want it to be possible for the platform to let you build an accessible rating control
  70. # [01:02] <othermaciej> whatever the mechanism
  71. # [01:03] <webben> another option might be to using aria tristate checkboxes
  72. # [01:04] <webben> for those stars where you click once for a half-start
  73. # [01:04] <webben> *half-star
  74. # [01:04] * gsnedders sings, "Happy birthday to me!"
  75. # [01:04] <webben> happy birthday gsnedders
  76. # [01:05] <Philip`> gsnedders: One more year closer to old age
  77. # [01:07] <webben> Philip`: there's basically no speech recognition for the Linux platform, unfortunately.
  78. # [01:07] <webben> Nobody's even licencing the Nuance engine AFAIK.
  79. # [01:11] * Quits: weinig (n=weinig@17.203.15.172)
  80. # [01:12] <Hixie> might be a good idea to consider what the ideal ui for this rating control would be, for the non-visual user
  81. # [01:13] <othermaciej> webben: I don't think tristate is the right model for that
  82. # [01:13] <othermaciej> the mixed state of tristate checkboxes is supposed to be for when they represent state of a group of things that is currently mixed
  83. # [01:14] <Philip`> "Please say your rating of this image. [wait for voice input]"
  84. # [01:14] * Quits: tndH (i=Rob@adsl-87-102-85-189.karoo.KCOM.COM) ("ChatZilla 0.9.81-rdmsoft [XULRunner 1.8.0.9/2006120508]")
  85. # [01:14] <Philip`> Uh
  86. # [01:14] <Philip`> s/image/movie/
  87. # [01:15] <jruderman> does it know how to map "lame" and "awesome" to 1-5?
  88. # [01:15] <Philip`> It could be done like the old text adventure games, where you can define synonyms for all the inputs
  89. # [01:16] <jruderman> "Sorry, 'gay' is not a rating."
  90. # [01:27] <webben> jruderman: well, if aria resolved the widget to a select you could have that
  91. # [01:31] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  92. # [01:35] * Quits: webben (n=benh@dip5-fw.corp.ukl.yahoo.com)
  93. # [01:48] * Joins: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com)
  94. # [01:50] * Parts: hasather_ (n=hasather@90-231-107-133-no62.tbcn.telia.com)
  95. # [01:56] * Joins: tantek (n=tantek@static-68-236-184-75.ny325.east.verizon.net)
  96. # [02:17] * Joins: anders (n=anders@unaffiliated/anders)
  97. # [02:27] * Joins: Mook (n=mook@adsl-71-138-136-24.dsl.pltn13.pacbell.net)
  98. # [02:43] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  99. # [03:05] * Quits: anders (n=anders@unaffiliated/anders) ("Leaving")
  100. # [03:17] * Quits: qwert666_ (n=qwert666@etr45.neoplus.adsl.tpnet.pl) ("Leaving")
  101. # [03:19] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  102. # [03:23] <Hixie> Philip`: voice output doesn't mean voice input
  103. # [03:25] <Philip`> Hixie: It also doesn't mean not voice input, so voice input is still an option for the UI
  104. # [03:26] <Philip`> and I never meant to imply that that was the only option
  105. # [03:30] * Quits: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com) (Read error: 104 (Connection reset by peer))
  106. # [03:31] <Hixie> typically non-video users don't use voice input, at least as far as i've seen, any more than video users
  107. # [03:32] * Joins: MacDome (n=eric@68-240-189-152.area5.spcsdns.net)
  108. # [03:39] <Mook> hmm, how do I figure out if a <video> is actively playing? specifically, I can't figure out the last two constraints in http://www.whatwg.org/specs/web-apps/current-work/#actively
  109. # [03:39] * Quits: Camaban (n=alee@85-211-106-28.dyn.gotadsl.co.uk) ("Ex-Chat")
  110. # [03:41] * Quits: MacDome (n=eric@68-240-189-152.area5.spcsdns.net)
  111. # [03:41] <Hixie> Mook: looking...
  112. # [03:41] <Mook> thanks :)
  113. # [03:43] <Mook> hmm, I suppose I could keep the error thing using a complicated system of listeners and hope I don't get out of sync (since HTMLMediaElement.error is the _last_ error, regardless if the video is now playing fine)
  114. # [03:43] <Hixie> Mook: what's the use case?
  115. # [03:43] <Hixie> i.e. why do you want to know?
  116. # [03:44] <Mook> Hixie: oh, just wrapping <video> to a different interface as a playback engine for something else
  117. # [03:44] <Mook> so, http://hq.songbirdnest.com:8080/source/xref/components/playlistplayback/public/sbICoreWrapper.idl#57 :)
  118. # [03:44] <Hixie> sure but what part of that interface needs to know if the video is actively playing?
  119. # [03:44] <Hixie> (as opposed to anything else in particular)
  120. # [03:45] <Mook> I think it's being used for some sort of UI thing or something. I don't have to care, that's what IDLs are for :p
  121. # [03:45] <Hixie> oh, you're trying to port one API to another
  122. # [03:45] <Hixie> i usee
  123. # [03:45] <Hixie> see even
  124. # [03:45] <Hixie> i don't think there's any easy to way to determine whether you're playing or not
  125. # [03:46] <Hixie> it's not clear to me what "playing" really means in the API you mention above though
  126. # [03:46] <Mook> even though it's defined as one of the terms to be used in the spec. fun! :)
  127. # [03:46] <Hixie> i.e. if you're playing when you're paused, are you also playing when you're stalled?
  128. # [03:47] <Mook> I believe in this API, yes
  129. # [03:47] <Mook> I think it's playing = !stopped. hmm, I suppose I can try that instead...
  130. # [03:48] <Hixie> yeah it's not clear to me that "playing" in your API is the same as "actively playing" in the HTML5 API
  131. # [03:49] <Hixie> actively playing in the HTML5 API is really just defined so that there's a way for me to say when the playback position should change
  132. # [03:49] <Hixie> you shouldn't really need to ever ask whether it's actively playing or not in theory
  133. # [03:49] <Hixie> you'll get timeupdate events at regular intervals, and other events when other interesting things happen
  134. # [03:52] <Mook> right. so I was just dumb in reading the non-whatwg API, and I really wanted to know currentSrc != "" && !ended && played.length > 0. thanks again :)
  135. # [03:59] * Joins: MacDome (n=eric@70-2-113-112.area5.spcsdns.net)
  136. # [04:05] <Hixie> Mook: :-)
  137. # [04:17] * Quits: tantek (n=tantek@static-68-236-184-75.ny325.east.verizon.net)
  138. # [04:36] * Joins: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com)
  139. # [04:40] * Joins: weinig (n=weinig@adsl-75-61-95-80.dsl.pltn13.sbcglobal.net)
  140. # [04:50] * Joins: weinig_ (n=weinig@adsl-75-37-27-1.dsl.pltn13.sbcglobal.net)
  141. # [04:51] * Quits: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com) (Read error: 104 (Connection reset by peer))
  142. # [04:57] * Quits: MacDome (n=eric@70-2-113-112.area5.spcsdns.net) (Read error: 104 (Connection reset by peer))
  143. # [05:08] * Quits: weinig (n=weinig@adsl-75-61-95-80.dsl.pltn13.sbcglobal.net) (Read error: 110 (Connection timed out))
  144. # [05:12] * Joins: myakura (n=myakura@p1215-ipbf3008marunouchi.tokyo.ocn.ne.jp)
  145. # [05:27] * Joins: h3h (n=w3rd@c-76-103-254-118.hsd1.ca.comcast.net)
  146. # [05:27] <h3h> would comments on an <article> belong in an <aside>?
  147. # [05:29] <Hixie> no
  148. # [05:29] <Hixie> <article>
  149. # [05:29] <Hixie> the spec mentions this case iirc
  150. # [05:29] <h3h> ah indeed. I see now
  151. # [05:29] <h3h> interesting
  152. # [05:32] <h3h> has anyone written an article along the lines of "How to mark up a blog in HTML5?"
  153. # [05:32] <h3h> if not, I might
  154. # [05:33] <h3h> s/?"/"?/
  155. # [05:35] <Hixie> nobody has to my knowledge
  156. # [05:37] <h3h> hmm ok. I'll make an attempt at marking it up, then you guys can critique before I publish anything
  157. # [05:37] <Hixie> :-)
  158. # [05:48] * Joins: eseidel (n=eseidel@adsl-75-37-27-1.dsl.pltn13.sbcglobal.net)
  159. # [06:02] * Joins: sverrej (n=sverrej@89.10.27.86)
  160. # [06:08] * weinig_ is now known as weinig
  161. # [06:11] * Quits: eseidel (n=eseidel@adsl-75-37-27-1.dsl.pltn13.sbcglobal.net)
  162. # [06:11] * Quits: weinig (n=weinig@adsl-75-37-27-1.dsl.pltn13.sbcglobal.net)
  163. # [06:16] * Joins: Facedown (n=HELLO@c-68-48-58-38.hsd1.md.comcast.net)
  164. # [06:20] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  165. # [06:54] <h3h> my first crack: http://pastie.caboo.se/183701
  166. # [06:54] <h3h> it validates with Henri's validator, but I'm not convinced it's at all optimal
  167. # [07:20] <myakura> h3h: <span datetime ...> should be marked up with <time datetime ...>
  168. # [07:20] <h3h> ah good call
  169. # [07:22] <myakura> and charset, we now write it as <meta charset="UTF-8">
  170. # [07:22] <h3h> got it
  171. # [07:23] <h3h> wasn't sure if there was a place for <section> anywhere
  172. # [07:23] <myakura> yeah, that's what i'm been wondering
  173. # [07:23] <myakura> and the same goes to <nav>
  174. # [07:23] <h3h> right.
  175. # [07:24] <myakura> oops s/span datetime/span class=datetime/
  176. # [07:25] <h3h> yep :)
  177. # [07:25] <h3h> http://pastie.caboo.se/183712
  178. # [07:26] * Joins: wakaba_ (n=w@168.162.210.220.dy.bbexcite.jp)
  179. # [07:28] <myakura> re sectioning, http://www.whatwg.org/specs/web-apps/current-work/multipage/section-sections.html#headings0 might help
  180. # [07:30] <h3h> yeah, that seems to indicate that using <body> as an implicit global section is fine
  181. # [07:36] <h3h> yeah: http://www.whatwg.org/specs/web-apps/current-work/multipage/section-sections.html#distinguishing
  182. # [07:36] <h3h> spells out exactly what I implemented, I think
  183. # [07:44] * Quits: wakaba (n=w@174.165.210.220.dy.bbexcite.jp) (Read error: 110 (Connection timed out))
  184. # [07:48] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 110 (Connection timed out))
  185. # [07:49] * Joins: sverrej (n=sverrej@89.10.27.86)
  186. # [07:50] * Joins: shepazu (n=schepers@218.246.74.90)
  187. # [08:02] * Quits: h3h (n=w3rd@c-76-103-254-118.hsd1.ca.comcast.net)
  188. # [08:14] * Joins: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com)
  189. # [08:17] * Quits: csarven (n=nevrasc@modemcable130.251-202-24.mc.videotron.ca) ("http://www.csarven.ca/")
  190. # [08:19] * Quits: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com) (Client Quit)
  191. # [08:24] * Joins: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com)
  192. # [08:25] * Quits: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com) (Client Quit)
  193. # [08:26] <hsivonen> it might be prudent to avoid an article about marking up a blog in HTML5 until there are UAs that support the semantics of the new elements
  194. # [08:27] <hsivonen> otherwise a zillion bloggers create a legacy of a bunch of new divs
  195. # [08:31] <othermaciej> which new elements?
  196. # [08:31] <othermaciej> I don't expect to be doing much with, say, "section" other than making it display as a block and maybe giving it a special accessibility role
  197. # [08:31] <othermaciej> it might actually end up with the same role as div though, at least on mac
  198. # [08:35] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
  199. # [08:39] <hsivonen> othermaciej: section participates in the outline algorithm
  200. # [08:40] <hsivonen> and article should presumably affect the start-of-content marker in Opera Mobile
  201. # [08:44] <othermaciej> I don't really understand what the outline algorithm is supposed to do
  202. # [08:44] <othermaciej> it's spec'd in great detail but there's no requirement for what the UA is supposed to do with it
  203. # [08:44] <othermaciej> I don't think Safari presents a document outline to VoiceOver
  204. # [08:44] * Quits: tommorris_ (n=tommorri@i-83-67-98-32.freedom2surf.net)
  205. # [08:51] * Joins: Thezilch (n=fuz007@cpe-76-170-22-23.socal.res.rr.com)
  206. # [08:52] <hsivonen> othermaciej: isn't it a bug if it doesn't?
  207. # [08:53] <othermaciej> is it?
  208. # [08:53] <hsivonen> wouldn't you want to be able to browse the outline and navigate directly to headings from the outline?
  209. # [08:53] <othermaciej> I don't know that much about the VoiceOver UI
  210. # [08:55] <othermaciej> I can't figure out how to get it to read me a document
  211. # [08:57] <hsivonen> I think it doesn't have a "read onwards from here until I press a key".
  212. # [08:57] <hsivonen> that's really annoying
  213. # [08:58] <othermaciej> clearly it has some notion of navigation, but I don't know how to move the "voiceover cursor" the docs mention
  214. # [08:59] <hsivonen> othermaciej: if you focus the entire HTML content area and press VO-a, it'll read the whole document
  215. # [08:59] <hsivonen> where VO is ctrl-option
  216. # [08:59] <hsivonen> the cursor moves with VO-arrow keys
  217. # [09:00] <hsivonen> VO-shift-up/down navigates on the third axis
  218. # [09:00] <hsivonen> it appears that Safari+VO doesn't tell the user about tables
  219. # [09:01] <hsivonen> (I'd have non-blind use cases for "read onwards from here until I press a key")
  220. # [09:03] <othermaciej> where are the voiceover key commands documented?
  221. # [09:03] <othermaciej> do you know?
  222. # [09:03] <othermaciej> is it in help somewhere?
  223. # [09:03] <othermaciej> yeah, I don't think we expose tables properly (yet)
  224. # [09:03] <hsivonen> so of them are in a PDF from apple.com
  225. # [09:03] <hsivonen> s/so/some/
  226. # [09:03] <othermaciej> unfortunately I think the AX API's table model may be based on RTF tables instead of HTML tables
  227. # [09:04] <hsivonen> some are in the voiceover tutorial utility which runs at installation and is available for later download from apple.
  228. # [09:04] <hsivonen> and then there's the help menu in the voiceover utility
  229. # [09:04] <hsivonen> I guess that's meant as the primary reference that comes with the software
  230. # [09:05] <hsivonen> and then webben gave pointers to third-party guides a couple of days ago
  231. # [09:05] * Parts: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
  232. # [09:05] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
  233. # [09:06] * hsivonen has too many browser tabs
  234. # [09:07] <hsivonen> othermaciej: http://krijnhoetmer.nl/irc-logs/whatwg/20080413#l-152
  235. # [09:09] <hsivonen> Opera exposes tables to VO
  236. # [09:11] <hsivonen> the VO cursor's visual presentation breaks in Opera when in table
  237. # [09:11] * Quits: shepazu (n=schepers@218.246.74.90)
  238. # [09:17] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  239. # [09:20] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  240. # [09:28] * Joins: MikeSmith (n=MikeSmit@123.127.99.86)
  241. # [09:31] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
  242. # [09:35] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  243. # [09:39] * Joins: shepazu (n=schepers@123.127.99.92)
  244. # [09:47] * Joins: roc (n=roc@121-72-168-16.dsl.telstraclear.net)
  245. # [09:48] * Quits: roc (n=roc@121-72-168-16.dsl.telstraclear.net) (Client Quit)
  246. # [09:53] * Joins: ROBOd (n=robod@89.122.216.38)
  247. # [10:07] <MikeSmith> I'm wondering if it should be considered an authoring conformance or abuse to put into a data-* attribute some content that is intentionally meant to be user visible (that ends up getting rendered in the main text flow of the page)
  248. # [10:07] * Joins: qwert666 (n=qwert666@etr45.neoplus.adsl.tpnet.pl)
  249. # [10:08] <othermaciej> things in a data-* attribtue won't end up user visible, will they?
  250. # [10:09] <othermaciej> or do you mean put things in there that get extracted by script and then are made visible?
  251. # [10:11] * Quits: myakura (n=myakura@p1215-ipbf3008marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
  252. # [10:21] <annevk> they won't (unless you use script / css / xbl )
  253. # [10:24] <MikeSmith> othermaciej, anne: I meant the latter (extraction by a script)
  254. # [10:25] <MikeSmith> I can imagine people dropping content into data-* attributes because they want their source to validate but can't find anywhere appropriate to put it
  255. # [10:25] <othermaciej> it's no worse than retrieving content using XHR and dynamically inserting it into the page
  256. # [10:26] <othermaciej> people do use script for validation "workarounds" now
  257. # [10:26] <othermaciej> HTML5 imposes conformance requirements on the DOM tree, not just the markup
  258. # [10:26] <MikeSmith> OK
  259. # [10:26] <othermaciej> I'm not sure if any HTML5 validator will also act as a live DOM validator
  260. # [10:26] <othermaciej> but it would be cool
  261. # [10:27] <annevk> you could have plugins for browsers I suppose
  262. # [10:28] <hsivonen> othermaciej: I think it would be feasible to make a browser plug-in serialize the DOM and send it to a Validator.nu instance
  263. # [10:28] <hsivonen> (assuming that people don't want to build an in-process validator from scratch)
  264. # [10:28] <othermaciej> how does validator.nu get the source of a page in the first place?
  265. # [10:28] <othermaciej> in theory it could use a browser engine on the back end to build a DOM and validate that
  266. # [10:28] <othermaciej> though that would be a little silly
  267. # [10:29] <hsivonen> othermaciej: there are four ways to get the source: 1) get a URI and dereference, 2) textarea, 3) form-based file upload and 4) POST as entity body
  268. # [10:30] <annevk> it would be cooler if validation was live
  269. # [10:30] <hsivonen> #4 could work with XHR
  270. # [10:30] <annevk> so you interact with the page and you get errors logged to your developer tools
  271. # [10:30] <othermaciej> yeah, validation built into dev tools is cool of course
  272. # [10:30] <hsivonen> also, if you put V.nu in the browser process via JNI, you could traverse the DOM in C++ and fire SAX events to Java
  273. # [10:31] <othermaciej> but tying it to browsers means you might get wrong results based on the bugs of your particular browser
  274. # [10:31] <othermaciej> you'd want your browser to at least have HTML5-compatible parsing for starters
  275. # [10:32] <othermaciej> (or at least one good enough to correctly parse conforming HTML5)
  276. # [10:33] * Joins: maikmerten (n=maikmert@La0f9.l.pppool.de)
  277. # [10:34] <hsivonen> and since the validation step doesn't need more than one thread per document, cutting out JNI and given C++ a GCC ABI should be doable with gcj
  278. # [10:34] <hsivonen> but with XHR, you can sidestep all the JNI and gcj trouble
  279. # [10:34] <hsivonen> s/given/giving/
  280. # [10:36] <annevk> othermaciej, yeah, browsers would need to be fixed :)
  281. # [10:36] * Joins: tndH__ (i=Rob@adsl-87-102-85-189.karoo.KCOM.COM)
  282. # [10:36] * tndH__ is now known as tndH
  283. # [10:36] <othermaciej> I think if we integrated validator.nu into WebKit's dev tools it would probably be IPC to a separate process, or integration with the public server
  284. # [10:36] <othermaciej> (and integrating it certainly isn't out of the question)
  285. # [10:38] <annevk> yeah, since it's just a bunch of API calls maybe it isn't too bad
  286. # [10:38] <hsivonen> I been considering an idea of transporting line/col location data in XML comments over the process boundary
  287. # [10:39] <hsivonen> since you'd want to correlate errors with the data you started with somehow
  288. # [10:40] <othermaciej> that is true
  289. # [10:48] <hsivonen> For correlating with DOM nodes, you'd fire one event per node, set line to 1 and give the column a unique node-ID
  290. # [10:53] <othermaciej> you could just give each node a unique start line
  291. # [10:53] <othermaciej> (would have to account for newlines in text nodes or the like though)
  292. # [10:54] <hsivonen> I think a comment-based locator override would be more reliable
  293. # [10:55] <hsivonen> that way you could associate any numbers you want with an event
  294. # [10:55] <hsivonen> the problem with the apporoach I have in mind is that it uses XML to transport a DOM snapshot and XML can't transport all HTML DOMs
  295. # [10:56] <hsivonen> for vtab and ff, it isn't a problem for validation to send spaces instead
  296. # [10:56] <hsivonen> for crazy non-conforming element/attribute names, letting early failure to happen in the browser's serializer would be acceptable
  297. # [10:57] <hsivonen> I haven't yet investigated what happens if one tries to send an HTML DOM with XHR
  298. # [10:57] <hsivonen> it would be convenient if an XHTML serialization came out
  299. # [10:57] <othermaciej> HTML can't represent all HTML DOMs either
  300. # [10:58] <othermaciej> though maybe all those cases are also non-conforming
  301. # [10:58] <annevk> I hope not
  302. # [10:59] <hsivonen> annevk: I think they are since late December
  303. # [10:59] <hsivonen> annevk: except WF2 stuff, but WF2 hasn't been revised since December
  304. # [10:59] <annevk> I think SVG is still allowed DOM-wise for instance by the specification. But you can't serialize it...
  305. # [11:00] <hsivonen> I'm pretending that SVG is still in the spec :-)
  306. # [11:00] <hsivonen> but anyway, I think for IPC, XML would work better than text/html
  307. # [11:01] <othermaciej> would an SVG DOM that wasn't a possible output of the algorithm be conforming DOM-wise?
  308. # [11:01] <hsivonen> having an XML5 parser would fix the remaining issues
  309. # [11:01] <othermaciej> I would hope yes, but I'm not sure if the spec says/said that
  310. # [11:01] <hsivonen> I think it would be conforming. but I haven't look what the spec says
  311. # [11:05] * Quits: shepazu (n=schepers@123.127.99.92)
  312. # [11:10] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net) (Read error: 104 (Connection reset by peer))
  313. # [11:11] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
  314. # [11:11] * Quits: MikeSmith (n=MikeSmit@123.127.99.86) ("Less talk, more pimp walk.")
  315. # [11:14] * Joins: othermaciej_ (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
  316. # [11:14] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net) (Read error: 104 (Connection reset by peer))
  317. # [11:16] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
  318. # [11:17] * othermaciej_ is now known as othermaciej
  319. # [12:29] <annevk> what might be useful for the alt= debate is finding sites that validate as HTML 4 or XHTML 1 something and have <img alt> somewhere
  320. # [12:30] <annevk> then do a content study on the values
  321. # [12:30] <annevk> given that 95% is invalid per some measure this may be hard, but maybe the W3C validator should be used as baseline
  322. # [12:34] <Lachy> annevk, do you mean like finding poor quality values like these alt="Wheel Chair Icon: Universal Icon Symbol of Accessibility" or alt="Magnifying Glass: Universal Icon Symbol for Search" http://www.webnauts.net/
  323. # [12:35] <Lachy> or like these "howlers" http://web.archive.org/web/20060101014208/http://ppewww.ph.gla.ac.uk/~flavell/alt/alt-text.html#howlers
  324. # [12:40] <annevk> yes
  325. # [12:42] <Lachy> though, it is difficult to say whether any given poor quality alt text was supplied to address validity, SEO or just a poor, though honest attempt at addressing accessibility. Though it's clear that all of those reasons do occur
  326. # [12:43] <Lachy> I'm pretty sure that webanauts example was a misguided attempt to address accessibility
  327. # [12:43] <Lachy> but alt="spacer" would clearly be for validity
  328. # [12:44] <Lachy> or perhaps not. I don't know.
  329. # [12:52] <hsivonen> annevk: are you referencing HTML5 in your XTech paper? if you are, which version are you referring to?
  330. # [12:58] * Quits: maikmerten (n=maikmert@La0f9.l.pppool.de) ("bbl")
  331. # [12:59] <annevk> i probably will, yes
  332. # [13:00] <annevk> i guess the w3c editor's draft and the whatwg multipage or something, dunno really
  333. # [13:00] <annevk> i'm writing my paper at the moment
  334. # [13:01] <annevk> are you giving an update on the validator?
  335. # [13:03] <annevk> the only problem is that nobody is giving an update on HTML5...
  336. # [13:05] * Joins: webben (n=benh@91.84.239.85)
  337. # [13:06] <hsivonen> annevk: yes, I'll give an update on the validator
  338. # [13:07] <annevk> maybe i should submit a lightning talk on html5
  339. # [13:07] <hsivonen> annevk: that would be a good idea
  340. # [13:07] <annevk> 20 slides on 20 new features since last year :D
  341. # [13:08] <hsivonen> hmm. looks like my last year's paper never got to the XTech 2007 site.
  342. # [13:16] <annevk> e-mailed a proposal for a lightning talk
  343. # [13:23] * hsivonen doesn't like reference styles that obscure given names
  344. # [13:23] <hsivonen> is it E. R. Harold or E. Rusty Harold? that is, is Rusty a middle name or a part of the surname?
  345. # [13:24] * hsivonen doesn't know what to do about Norwegian or Danish three-part names, either
  346. # [13:25] <hsivonen> hmm. he sometimes uses "Elliotte Harold", so I'm guessing Rusty is not an essential part of surname
  347. # [13:27] <Philip`> hsivonen: Rather than using text/html or XML for IPC, would it be reasonable to use some kind of serialised-SAX format (or make up one if it doesn't exist yet) to avoid all the limitations of HTML and XML parsers?
  348. # [13:27] <annevk> hsivonen, it could be part of the given name too
  349. # [13:28] * Quits: Mook (n=mook@adsl-71-138-136-24.dsl.pltn13.pacbell.net) ("ChatZilla 0.9.81-rdmsoft [XULRunner 1.8.1.4pre/0000000000]")
  350. # [13:29] <hsivonen> Philip`: well, given that XML parsers exist and an XML5 parser might exist, inventing yet another infoset serialization seems silly
  351. # [13:33] <Philip`> hsivonen: But XML parsers won't work, since they'll turn most pages into a single "fatal error: XML is not well-formed because of this thing here" message when the validator should instead try to identify as many errors as possible
  352. # [13:34] <hsivonen> Philip`: wouldn't XML5 fix that?
  353. # [13:34] <Philip`> XML5 doesn't exist
  354. # [13:34] <annevk> some kind of serialised-SAX format doesn't either
  355. # [13:35] <hsivonen> Philip`: yeah but the options are making XML5 exist or making yet another SAX serialization exist
  356. # [13:35] <annevk> XML5 is arguably more defined than the "some kind of serialised-SAX format
  357. # [13:35] <annevk> "
  358. # [13:36] <Philip`> XML5 is harder to bring into existence than some other totally-new unconstrained format, because it has to work within the limitations of being compatible with XML 1.0
  359. # [13:38] <Philip`> and it's not that hard to define and parse some format like <element loc="1:1-2:20"><name>html</name><attribute><name>oops<char code="0c"/></name><value>that wasn't XML</value></attribute></element>
  360. # [13:43] <jgraham__> Couldn't you use something like the sdl thing that zcorpan developed?
  361. # [13:45] <Philip`> (http://simon.html5.org/specs/sdf )
  362. # [13:48] <Philip`> That doesn't really exist either :-)
  363. # [13:49] * Joins: maikmerten (n=maikmert@La0f9.l.pppool.de)
  364. # [13:54] * Quits: starjive (i=beos@213-66-217-32-no30.tbcn.telia.com)
  365. # [13:59] <hsivonen> Philip`: from a parsing point of view, the easiest format would be a binary format which had an opcode for each event followed by known fields
  366. # [13:59] <hsivonen> Philip`: string would be 32-bit lenth followed by UTF-16BE data
  367. # [14:04] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 110 (Connection timed out))
  368. # [14:07] <annevk> It's more likely we see XML5 getting adoption than any of the named alternatives...
  369. # [14:07] <annevk> (Though for testcase purposes SDF is obviously preferable.)
  370. # [14:08] <Philip`> Adoption doesn't matter, since this is private communication between two programs written by the same people
  371. # [14:09] <Philip`> (and since widespread adoption in the future is not helpful when you want an implementation now)
  372. # [14:09] * Joins: sverrej (n=sverrej@89.10.27.86)
  373. # [14:12] * Quits: jgraham__ (n=jgraham@81-86-208-88.dsl.pipex.com) (Remote closed the connection)
  374. # [14:17] <Philip`> SDF is unsuitable for serialising arbitrary DOMs, since worst-case behaviour is that the minimal SDF representation has size O(n^2) in the size of the DOM
  375. # [14:17] <Philip`> (for a document like <x><x><x><x><x>....</x>...)
  376. # [14:20] * Quits: maikmerten (n=maikmert@La0f9.l.pppool.de) ("power outage in 3, 2, 1 <ping timeout>")
  377. # [14:26] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 104 (Connection reset by peer))
  378. # [14:27] * Joins: sverrej (n=sverrej@89.10.27.86)
  379. # [14:29] * Joins: maikmerten (n=maikmert@L9734.l.pppool.de)
  380. # [14:31] * Joins: jgraham (n=jgraham@81-86-208-88.dsl.pipex.com)
  381. # [14:42] * Joins: shepazu (n=schepers@218.246.74.90)
  382. # [14:59] <annevk> is Safari already cross-document messaging enabled?
  383. # [14:59] * hsivonen experiences a horribly Feissian moment. Congratulates self about recent backup.
  384. # [15:04] <Philip`> hsivonen: It was, like, beep, beep, beep, beep, beep?
  385. # [15:05] <hsivonen> Philip`: It devoured my paper!
  386. # [15:11] <annevk> is it backed up entirely?
  387. # [15:13] <hsivonen> annevk: I lost about three paragraphs
  388. # [15:14] <hsivonen> I then discovered that my new NeoOffice setup didn't have automatic backups on by default...
  389. # [15:30] <Philip`> Sounds like a regression bug introduced during the move from typewriters to word processors
  390. # [15:37] <annevk> oh fun, Doug Crockford will be at XTech
  391. # [15:37] <annevk> guess i better address JSONRequest in my presentation
  392. # [15:43] <hsivonen> Philip`: I have more than one device producing keystrokes and I held the command key on one while another went crazy and produced a lot of keystrokes including a to select all, something to replace all with and s to save.
  393. # [15:44] <Philip`> Does 'save' clear the undo stack?
  394. # [15:44] * Quits: maikmerten (n=maikmert@L9734.l.pppool.de) (Remote closed the connection)
  395. # [15:44] <hsivonen> Philip`: no, but I didn't realize it had saved on top of all damage, so when Undo didn't look right, I reverted to saved...
  396. # [15:45] <Philip`> annevk: Safari 3.1.1 has window.postMessage === undefined, so I guess that means it's not present and enabled
  397. # [15:48] <Philip`> Hmm, recursive postMessage makes Opera unhappy
  398. # [15:48] * Philip` kills it once it reaches 1.5GB of RAM
  399. # [15:48] <annevk> thanks
  400. # [15:53] <Philip`> http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0D%0A%3Cscript%3E%0D%0Afunction%20f()%20%7B%20window.postMessage('hello')%20%7D%0D%0Awindow.addEventListener('message'%2C%20f%2C%20false)%3B%0D%0Af()%3B%0D%0A%3C%2Fscript%3E
  401. # [15:53] <Philip`> Opera does seem pretty fast at using up all my memory
  402. # [16:01] * Joins: mpt (n=mpt@canonical/launchpad/mpt)
  403. # [16:18] <gsnedders> Browsers suck.
  404. # [16:19] <Philip`> 90% do, but there are few enough relevant browsers that that's equivalent to 100%
  405. # [16:21] <gsnedders> Philip`: my new print styles on my blog only properly work in Prince. Nothing else.
  406. # [16:21] <gsnedders> Philip`: Opera is the only browser anywhere close.
  407. # [16:23] <Philip`> Just use <link rel=alternate title=Print href=page.pdf>
  408. # [16:24] <Philip`> Also, who ever prints blogs? :-p
  409. # [16:26] <gsnedders> Hey, I have interesting stuff on my blog :P
  410. # [16:27] <Philip`> Being interesting doesn't mean anyone will want to print it
  411. # [16:29] * Joins: maikmerten (n=maikmert@L9734.l.pppool.de)
  412. # [16:33] * Joins: virtuelv (n=virtuelv@pat-tdc.opera.com)
  413. # [16:38] <gsnedders> Philip`: I do… occasionally.
  414. # [16:39] <gsnedders> Philip`: And on grounds that nobody apart from me prints it out ever, I can use a stylesheet only supported fully by Prince :P
  415. # [16:41] <annevk> printing is bad for the trees
  416. # [16:42] <annevk> yet everytime i carefully not print my e-tickets they give me a paper one at the airport anyway...
  417. # [16:43] <gsnedders> annevk: sadly, I can't memorise entire essays that need to be handed in on paper
  418. # [16:43] <annevk> give them a floppy :)
  419. # [16:44] * Joins: myakura (n=myakura@p1215-ipbf3008marunouchi.tokyo.ocn.ne.jp)
  420. # [16:44] <Philip`> Hand in a small fragment of paper with a URL printed on it, and say it's semantically equivalent to the entire essay
  421. # [16:44] <annevk> gsnedders, congrats btw
  422. # [16:45] * Philip` doesn't actually have a way to read floppy disks
  423. # [16:45] <annevk> cheap usb stick is prolly better these days
  424. # [16:45] <gsnedders> annevk: thx
  425. # [16:45] <gsnedders> Philip`: hah.
  426. # [16:46] * gsnedders blames the SQA's requirements
  427. # [16:46] <annevk> Philip`, I like that idea
  428. # [16:46] <gsnedders> annevk: then what do I do about the exams on paper?
  429. # [16:47] <annevk> gsnedders, you're not the primary person responsible for using that paper
  430. # [16:47] <annevk> so either you try to fight the system or leave it alone I guess :)
  431. # [16:47] <gsnedders> annevk: The same applies for all the other things that needed to be handed in on paper, though :(
  432. # [16:47] <annevk> in those cases it's way more trivial to do something else
  433. # [16:47] <annevk> and see what happens
  434. # [16:48] <Philip`> gsnedders: You could print on vellum instead
  435. # [16:48] <gsnedders> annevk: half those things need to be sent off to the exam board, though, so I wouldn't know until it was to late, really
  436. # [16:50] * Joins: qwert666_ (n=qwert666@acaq38.neoplus.adsl.tpnet.pl)
  437. # [16:50] * gsnedders finds horrid photo of himself on bebo
  438. # [16:51] <annevk> geez, more hasFeature proposals
  439. # [16:51] <gsnedders> what do you expect? :P
  440. # [16:52] * gsnedders wonders whether to go out with new lens on camera
  441. # [16:52] * jgraham suggests gsnedders etches his essays onto vinyl and them records himself reading the essay as the sound track on the vinyl for accessibility purposes
  442. # [16:53] <jgraham> s/track//
  443. # [16:53] <gsnedders> jgraham: awesome.
  444. # [16:53] <jgraham> gsnedders: Which lens
  445. # [16:53] <jgraham> ?
  446. # [16:53] <gsnedders> jgraham: 10–22mm EF-S
  447. # [16:53] <Philip`> hasFeature only has problems because the feature support claims are made by the same people who implemented the feature, so they have a vested interest in claiming it is supported, and the return value is fixed at the same time as the feature is released, which may be before significant bugs are found
  448. # [16:54] <jgraham> gsnedders: Yes.
  449. # [16:54] <gsnedders> jgraham: I spent far too long discussing with cwilso whether to get that or the 70–300mm EF lens
  450. # [16:54] <Philip`> so the solution is a decentralised RDF-based model for specifying which browsers support which features
  451. # [16:54] <jgraham> gsnedders: He was right :)
  452. # [16:55] <gsnedders> jgraham: :)
  453. # [16:55] <gsnedders> jgraham: I know what I'm asking for my 17th birthday now :P
  454. # [16:57] <annevk> Philip`, your logic is getting more sloppy lately
  455. # [16:57] <jgraham> gsnedders: I have a theory that the Canon 70-300mm might not be worthwhile (although it depends what you are doing I guess). At least I hardly ever use my equivalent sigma lens because the range of apertures and lack of IS means that it requires really bright light, besides which it's just not that sharp
  456. # [16:57] <annevk> Philip`, though I suppose you could blame the channel :p
  457. # [16:58] <Philip`> annevk: What's wrong with my logic? :-(
  458. # [16:58] <jgraham> And I think that Canon falls into the same bracket
  459. # [16:58] <jgraham> unless it's not the one I'm thinking of
  460. # [16:58] <annevk> Philip`, your premise seems to be that hasFeature is actually needed
  461. # [16:58] <annevk> which is not necessarily true
  462. # [16:59] <Philip`> annevk: Some way of detecting that a feature is present and usable is actually needed
  463. # [17:00] * jgraham suggests replacing hasFeature with featureHasSignificantBugs which would be defined to always return true
  464. # [17:01] <Philip`> and simply detecting the existence of the API is insufficient when you want to know whether the feature is usable
  465. # [17:01] <annevk> Philip`, also, with RDF you have two problems, so that doesn't help :)
  466. # [17:01] <Philip`> annevk: Two small problems are better than one large problem
  467. # [17:02] <jgraham> Philip`: RDF is a large problem :)
  468. # [17:02] * annevk has difficulty verifying all Philip`'s axioms
  469. # [17:03] <Philip`> annevk: Axioms are by definition unverifiable - if you could verify them using a different set of axioms, then they wouldn't be axioms any more :-p
  470. # [17:03] <annevk> for instance, I typically assume support for a feature is present, when writing HTML, CSS, or JavaScript
  471. # [17:03] <annevk> Philip`, oops, your statements
  472. # [17:04] <annevk> and most often that is perfectly fine
  473. # [17:04] <jgraham> gsnedders: (to finish my thought from before if I were buying a telephoto lens today I would look seriously at the Canon 70-200 f/4 IS which should be sharp and work reasonably in more lighting conditions than the 70-300mm)
  474. # [17:05] <jgraham> Oh, wait the 70-300mm is one of the ones with IS, I was thinking of the 75-300mm
  475. # [17:05] <jgraham> Ignore me
  476. # [17:05] * jgraham stops talking about cameras now
  477. # [17:06] <Philip`> annevk: Sometimes it's not perfectly fine, and you really do want to know whether it's safe (better performing, less buggy, etc) to use a browser's feature rather than emulating that feature with some other mechanism, particularly if you're writing cross-browser libraries
  478. # [17:07] <annevk> in those cases resorting to browser sniffing seems better as that's more reliable
  479. # [17:07] * Quits: qwert666 (n=qwert666@etr45.neoplus.adsl.tpnet.pl) (Connection timed out)
  480. # [17:07] <annevk> and also gives more accurate information about perf etc. because of impl differences, etc.
  481. # [17:07] <Philip`> The problem with browser sniffing is that the sniffing code will be obsolete once a new browser is released
  482. # [17:07] * qwert666_ is now known as qwert666
  483. # [17:08] <Philip`> and that problem can be avoided by using a fixed piece of code that never needs updating, and an external source of frequently-updated data that will ensure your code handles all browsers
  484. # [17:08] <annevk> if the new browser has bugs in its feature sniffing code you'll have issues too
  485. # [17:09] <annevk> it's not exactly black-white and since I think you actually agree with me and just love to argue i'll stop now
  486. # [17:10] <Philip`> I might agree but be wrong, so it's useful to consider alternatives :-)
  487. # [17:12] <jgraham> Philip`: It seems like you could collate, and update the data you want yourself and load it via XMLHttpRequest
  488. # [17:13] <jgraham> (You would need a way of determining a unique browser fingerprint that would deal with new versions well)
  489. # [17:17] * Quits: jgraham (n=jgraham@81-86-208-88.dsl.pipex.com) (Connection reset by peer)
  490. # [17:17] <Philip`> jgraham: You'd probably also want to share the effort of updating the data between many people, rather than making everyone do the work individually
  491. # [17:17] * Joins: jgraham (n=jgraham@81-86-208-88.dsl.pipex.com)
  492. # [17:19] <Philip`> (...kind of like WURFL, I guess)
  493. # [17:23] * Joins: ROBOd (n=robod@89.122.216.38)
  494. # [17:34] * Quits: shepazu (n=schepers@218.246.74.90)
  495. # [18:00] * Joins: csarven (n=nevrasc@modemcable130.251-202-24.mc.videotron.ca)
  496. # [18:17] * Joins: h3h (n=w3rd@c-76-103-254-118.hsd1.ca.comcast.net)
  497. # [18:23] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
  498. # [18:26] * Quits: virtuelv (n=virtuelv@pat-tdc.opera.com) ("Ex-Chat")
  499. # [18:33] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  500. # [18:34] * Quits: myakura (n=myakura@p1215-ipbf3008marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
  501. # [18:42] * gavin__ is now known as gavin_
  502. # [18:47] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  503. # [18:50] <mpt> hasFlavor()
  504. # [18:50] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 104 (Connection reset by peer))
  505. # [18:50] <h3h> you.hasAFlavor()?
  506. # [18:51] * Joins: sverrej (n=sverrej@89.10.27.86)
  507. # [18:51] <mpt> true
  508. # [18:52] <mpt> if you.hasAFlavor() {return 'nom nom nom'}
  509. # [18:56] <gsnedders> jgraham: yeah, the 70–300mm has been written up _really_ well, as being as good if not better than a lot of L lenses
  510. # [19:16] <jgraham> gsnedders: It is very inconsiderate of Canon to make a crappy 75-300mm and a good 70-300mm and to expect me to remember the difference :)
  511. # [19:16] <gsnedders> jgraham: :)
  512. # [19:16] <gsnedders> Time for me to look at the photos he took in town
  513. # [19:17] <gsnedders> Advantage of living in a touristic town: you can easily try out cameras with photogenic stuff :P
  514. # [19:18] <jgraham> gsnedders: I guess I have no excuse in Cambridge
  515. # [19:19] <gsnedders> jgraham: no excuse at all
  516. # [19:19] <gsnedders> 112 photos
  517. # [19:20] <gsnedders> the sheer size of the field of view never stopped amazing me
  518. # [19:22] * jgraham expects to see some on flickr :)
  519. # [19:22] <takkaria> it is a law that wherever there are geeks, there are cameras
  520. # [19:23] <gsnedders> jgraham: yeah, once I've cut most of them down to a far smaller number
  521. # [19:23] <gsnedders> (i.e., deleting the duplicates)
  522. # [19:24] <jgraham> gsnedders: Good. There was no way I was going to look through 112 photos
  523. # [19:24] <jgraham> :)
  524. # [19:24] <gsnedders> jgraham: There are c. 460 photos by me from Paris on Flickr :P
  525. # [19:24] <gsnedders> (from one week)
  526. # [19:24] <gsnedders> On one day on that week, I took over 1.1k
  527. # [19:24] <gsnedders> Actually, no
  528. # [19:25] <gsnedders> I wasn't anywhere near that high
  529. # [19:25] <gsnedders> Maybe 600 on one day
  530. # [19:25] <gsnedders> But normally around 500 a day
  531. # [19:26] <jgraham> People have different attitudes to their flickr stream. I would never consider putting 400+ photos up in one go; instead I'd probably try (often in vain) to select 4 that I didn't *hate* and put those up...
  532. # [19:26] <gsnedders> Ergh. I've got a shadow of me in one.
  533. # [19:27] <h3h> anyone up for an HTML5 markup usage critique? http://pastie.caboo.se/183712
  534. # [19:27] <gsnedders> jgraham: I just wait until I've edited all the photos I've taken from a specific event, and labelled them, then upload all but the really bad ones
  535. # [19:29] <takkaria> h3h: you probably want <nav> instead of <ul id="navigation">
  536. # [19:29] <jgraham> h3h: You're using <header> incorrectly
  537. # [19:29] <jgraham> I think
  538. # [19:29] * gsnedders looks then realises he can't be bothered on his birthday
  539. # [19:30] <h3h> <nav> can't go inside of <header>
  540. # [19:31] <h3h> so unless <header> is wrong, I'm unsure
  541. # [19:31] <jgraham> h3h: Yeah, I think the header should just contain the title and subtitle (which you don't have)
  542. # [19:31] <annevk> h3h, make <nav> and <header> siblings?
  543. # [19:31] <jgraham> So I don't think you need <header> at all
  544. # [19:31] <h3h> just the h1 inside body is implicit header, right?
  545. # [19:32] <jgraham> h3h: It heads the body
  546. # [19:32] <h3h> right, which is the desire
  547. # [19:32] <jgraham> h3h: <div id="comments"> should probably be <section>
  548. # [19:33] <gsnedders> jgraham: 22 photos are good, and one bad one (so 22 get uploaded)
  549. # [19:33] <h3h> got it
  550. # [19:34] <h3h> does <b class="author"> seem reasonable?
  551. # [19:34] <h3h> it feels weird
  552. # [19:34] <h3h> also the <div class="content"> feels weird for the post and the comments
  553. # [19:34] <jgraham> I was going to say <div class="content"> seems unnecessary
  554. # [19:34] <gsnedders> h3h: <div class="content"> -> <section>?
  555. # [19:35] <h3h> then I have <section><article><section>
  556. # [19:35] <h3h> I guess that works
  557. # [19:35] <gsnedders> But I think they are probably useless
  558. # [19:35] <gsnedders> I'd probably just scrap them
  559. # [19:35] <h3h> I just need a container for style hooks
  560. # [19:35] <jgraham> h3h: I think <section><article><section> is OK
  561. # [19:35] <gsnedders> I'd lean towards <section>
  562. # [19:35] <h3h> to separate the data portion (typed text) from the UI portion
  563. # [19:36] <h3h> then I have headerless sections too
  564. # [19:36] <h3h> the spec says sections "typically [have] a header"
  565. # [19:37] <jgraham> The content area could (in principle) have a subheading like "Post" which is actually unneeded because it's implicitly obvious
  566. # [19:37] <h3h> yeah
  567. # [19:47] <h3h> Henri's validator is now failing to parse my datetime strings, though it worked last night and they adhere to the spec
  568. # [19:49] <h3h> http://pastie.caboo.se/183875
  569. # [19:49] <h3h> now div-free
  570. # [19:50] <h3h> which feels eerily similar to being "table-free" several years ago
  571. # [19:53] <hsivonen> h3h: which dates?
  572. # [19:53] <hsivonen> h3h: if on ins/del, it's possible that Hixie changed a spec very recently
  573. # [19:54] <Dashiva> h3h: I don't see <header> there :)
  574. # [19:55] <hsivonen> h3h: oh, <time>
  575. # [19:55] <hsivonen> the spec before Z is the likely culprit
  576. # [19:56] <hsivonen> weird the spec indeed allows space there
  577. # [19:58] <hsivonen> Hixie: has "in attribute variant" of vaguer moments in time always allowed space characters
  578. # [19:59] * gsnedders realises he can't be bothered to properly tag all his photos
  579. # [19:59] <hsivonen> Hixie: starting vaguer moments in attributes with skipping whitespace and letting that be valid is inconsistent with everything else
  580. # [19:59] <Dashiva> gsnedders: why do you hate accessibility :(
  581. # [20:00] <gsnedders> Dashiva: Because I'm lazy?
  582. # [20:00] <gsnedders> Dashiva: the new print styles for my blog break badly in most browsers :P
  583. # [20:00] <gsnedders> Prince ftw.
  584. # [20:01] <Dashiva> but that's equal-opportuntity breakage ;)
  585. # [20:01] <gsnedders> jgraham: http://flickr.com/photos/gsnedders/2427932055/ — that's the first one up
  586. # [20:02] <takkaria> Dashiva: even if gsnedders hates a11y, then flickr hates it more, so his hate is largely irrelevant
  587. # [20:03] <gsnedders> takkaria: No, I don't hate it. I'm just lazy when it comes to making purely visual content accessible to those who can't see/
  588. # [20:03] * Quits: mpt (n=mpt@canonical/launchpad/mpt) (Read error: 113 (No route to host))
  589. # [20:03] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 104 (Connection reset by peer))
  590. # [20:03] <takkaria> gsnedders: I should have included <irony> tags
  591. # [20:03] <Dashiva> I too, probably
  592. # [20:03] <gsnedders> takkaria: Ah. My adult ones aren't tuned yet.
  593. # [20:03] <hsivonen> h3h: Hixie hasn't changed the spec lately, so I'm pretty sure I have outstanding feedback and I've implemented my opinion optimistically
  594. # [20:03] <gsnedders> takkaria: They've only been in use for just over 15 hours
  595. # [20:04] <takkaria> heh, just turned 18?
  596. # [20:04] <gsnedders> takkaria: 16
  597. # [20:04] <takkaria> ah, nice. :) happy birthday
  598. # [20:04] <hsivonen> gsnedders: happy birthday
  599. # [20:04] <gsnedders> thx, both.
  600. # [20:04] * Joins: sverrej (n=sverrej@89.10.27.86)
  601. # [20:04] * gsnedders goes to get supper before heading off the cinema
  602. # [20:06] <hsivonen> h3h: yeah, I have outstanding feedback in Hixie's microsyntaxes-dates folder
  603. # [20:13] <hsivonen> I need to keep better track in my source comments about things that aren't per current spec but are per feedback
  604. # [20:15] * Quits: jacobolus (n=jacobolu@dhcp-0000036913-b5-5e.client.fas.harvard.edu)
  605. # [20:22] <h3h> heh, cool
  606. # [20:22] * Quits: tndH (i=Rob@adsl-87-102-85-189.karoo.KCOM.COM) (Read error: 104 (Connection reset by peer))
  607. # [20:23] * Joins: tndH__ (i=Rob@adsl-77-86-9-123.karoo.KCOM.COM)
  608. # [20:23] * tndH__ is now known as tndH
  609. # [20:24] <h3h> Dashiva: jgraham convinced me to take the <header> out :)
  610. # [20:27] * Joins: zcorpan_ (n=zcorpan@c-cb21e353.1451-1-64736c12.cust.bredbandsbolaget.se)
  611. # [20:28] <gsnedders> jgraham: http://www.flickr.com/photos/gsnedders/sets/72157604643134411/
  612. # [20:28] <gsnedders> (It's now finished uploading)
  613. # [20:29] <Philip`> gsnedders: I think you need to add some starburst lens flare effects to make the photos more exciting
  614. # [20:29] <gsnedders> heh.
  615. # [20:29] <takkaria> gsnedders: do you have a polariser?
  616. # [20:30] <gsnedders> takkaria: no
  617. # [20:30] <jgraham> gsnedders: I think http://www.flickr.com/photos/gsnedders/2428004105/in/set is probably my fav.
  618. # [20:30] <annevk> gsnedders, try moving the horizon line a bit next time
  619. # [20:30] * jgraham needs to get a polariser for his 10-22mm
  620. # [20:31] <gsnedders> jgraham: heh. Done on tip-toes (when I'm already 180cm tall) over wall :)
  621. # [20:31] <gsnedders> annevk: on any photo in particular, or not?
  622. # [20:31] <takkaria> gsnedders: I'd recommend one for photos with plenty of sky
  623. # [20:32] <jgraham> gsnedders: The standard advice is to put the horizon at ~1/3 from the top or bottom of the frame
  624. # [20:32] * jgraham is rubbish at composition and art in general
  625. # [20:32] * gsnedders ignores standard advice normally :P
  626. # [20:33] <jgraham> But photography is at least better than things that require fine motor skills
  627. # [20:33] <jgraham> :)
  628. # [20:33] <gsnedders> jgraham: Well, seeming I have dyspraxia and dysgraphia, that is a good reason for me to do to it :)
  629. # [20:34] <takkaria> gsnedders: I actually really like the first one
  630. # [20:35] <takkaria> though I'd be interested to see a similar photo taken lower down
  631. # [20:35] <gsnedders> takkaria: of the kitchen?
  632. # [20:35] <takkaria> yeah
  633. # [20:35] <takkaria> not sure why. :)
  634. # [20:35] <gsnedders> takkaria: That was just me making sure it all properly worked more than anything else ;)
  635. # [20:35] <gsnedders> That's my eye-level :P
  636. # [20:36] <jgraham> takkaria: It has that kind-of gritty real life quality about it, maybe?
  637. # [20:36] * gsnedders should take photos of some really messy rooms in this house if you want real-life
  638. # [20:36] <gsnedders> actually, that's hard. some of them have so much it'd be hard to photograph.
  639. # [20:37] * gsnedders thinks someone has forgotten that posts on walls show up on the homepage of friends on Facebook
  640. # [20:37] <gsnedders> "I love how geoffrey is in your top friends :) i see you staring at him in maths babes ;) xxx"
  641. # [20:37] <gsnedders> Why do I think I wasn't meant to see that?
  642. # [20:37] <h3h> heh
  643. # [20:37] <takkaria> gsnedders: even better when people write on their own walls by accident and the conversation ends there
  644. # [20:38] <gsnedders> takkaria: heh.
  645. # [20:38] * Philip` wonders what a maths babe is
  646. # [20:38] <gsnedders> :P
  647. # [20:38] <takkaria> jgraham: I think it's because there's someone right in the middle of it all and seems rather set apart from the surrounding clutter
  648. # [20:38] <gsnedders> I probably shouldn't be quoting it in a logged channel, but hey.
  649. # [20:39] <gsnedders> (I actually know damned well the girl in question likes me in that way)
  650. # [20:39] * jgraham suggests it's maybe a farmyard creature with a particular prowess for algebra
  651. # [20:40] <gsnedders> So many girls at my school are odd :)
  652. # [20:40] <gsnedders> Annoyingly, the girl that is to goes around claiming we're a couple.
  653. # [20:41] <jgraham> takkaria: Yeah, that is nice about it. gsnedders: I am jealous of your Aga.
  654. # [20:41] <takkaria> such a terrible thing, I'm sure. :)
  655. # [20:41] * h3h doesn't miss the drama of school
  656. # [20:41] <gsnedders> Agas are fucking awesome.
  657. # [20:42] <gsnedders> Except in the summer.
  658. # [20:42] <gsnedders> Then they are fucking annoying.
  659. # [20:42] * jgraham doesn't foresee ever being able to afford one
  660. # [20:42] <gsnedders> jgraham: Advantage of my parents buying it in the 1980s :)
  661. # [20:42] <gsnedders> (They've lived in this house since '84)
  662. # [20:43] <Philip`> Are the plates in the top left non-circular, or is that some kind of perspective distortion?
  663. # [20:43] <gsnedders> non-circular.
  664. # [20:44] <gsnedders> And covered in dust, actually.
  665. # [20:44] <jgraham> Philip`: There is also perspective distortion, I think
  666. # [20:45] <gsnedders> There is, but it doesn't affect the plates particually, I think
  667. # [20:46] <gsnedders> he left most one is the only one I think that is distorted
  668. # [20:47] <gsnedders> *the
  669. # [20:47] <gsnedders> the rest look reasonable
  670. # [20:49] * Joins: weinig (n=weinig@17.203.15.172)
  671. # [20:50] * gsnedders notes almost all his contacts on Flickr are geeks
  672. # [20:50] <takkaria> hello! :)
  673. # [20:51] <gsnedders> Actually, all of them are.
  674. # [20:52] <takkaria> that's because the set of geeks includes the set of people on flickr, I guess
  675. # [20:52] <gsnedders> I ought to finish writing what MikeSmith described as pornographic :P
  676. # [20:52] <gsnedders> (quoting stuff from it out of context does make it seem like that)
  677. # [20:53] <gsnedders> e.g., "Laying her hand on my right shoulder, she gently swung her body round on to mine, her delicate breasts digging into my chest, as she eagerly looked up at me."
  678. # [20:53] <jgraham> takkaria: Presumably you are http://flickr.com/photos/takkaria/
  679. # [20:53] <jgraham> ?
  680. # [20:53] <takkaria> yup
  681. # [20:54] <takkaria> as far as I know, I'm the only takkaria on the web, and it's the only alias I use
  682. # [20:54] <jgraham> I thoroughly approve of any photostream that has holga stuff in
  683. # [20:54] <takkaria> :)
  684. # [20:54] <takkaria> I have a roll of 120 I need to process sometime soon
  685. # [20:55] <gsnedders> as far as I can see, I'm the only gsnedders online
  686. # [20:56] <gsnedders> And one of only two "Geoffrey Sneddon"s
  687. # [20:56] <takkaria> jgraham: my favourite Holga pic is http://flickr.com/photos/takkaria/500176177/in/set-72157600003720359/
  688. # [20:56] * gsnedders comes across http://quotes.burntelectrons.org/2972 looking for me
  689. # [20:56] <takkaria> though I have more I've not uploaded yet
  690. # [20:57] <jgraham> takkaria: I particularly liked that one and http://flickr.com/photos/takkaria/500176615/in/set-72157600003720359/
  691. # [20:57] * Joins: jacobolus (n=jacobolu@140.247.156.41)
  692. # [20:58] <takkaria> I like Holgas, they make uninteresting things interesting
  693. # [20:58] <takkaria> overlapping exposures ftw
  694. # [21:00] <takkaria> jgraham: what lens were you using for http://www.flickr.com/photos/jgraham/2374665153/?
  695. # [21:01] <jgraham> takkaria: Canon EFS-60mm Macro
  696. # [21:01] <takkaria> ah, nice
  697. # [21:03] <annevk> those quotes are funny
  698. # [21:03] * annevk finds http://quotes.burntelectrons.org/2413
  699. # [21:05] * Quits: maikmerten (n=maikmert@L9734.l.pppool.de) ("Leaving")
  700. # [21:24] * Quits: zcorpan_ (n=zcorpan@c-cb21e353.1451-1-64736c12.cust.bredbandsbolaget.se) (Read error: 110 (Connection timed out))
  701. # [21:34] <hsivonen> Philip`: fixed http://validator.nu/?doc=http%3A%2F%2Fwww.coalitionforjustice.net%2F&showimagereport=yes thanks
  702. # [21:45] <Philip`> hsivonen: I can't remember what the problem was, but thanks for fixing it anyway
  703. # [22:02] <hsivonen> annevk: I added the onabort handler you requested. please let me know if it fixes whatever needed fixing
  704. # [22:10] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
  705. # [22:14] <annevk> hmm, doesn't appear to be it
  706. # [22:15] <annevk> the specific problem is pressing "Esc" once you press validate
  707. # [22:18] <Dashiva> hsivonen: Maybe you could link the full image from the thumbnail. The coalition image is quite hard to make any kind of judgement about, seems most large images would have the same issue unless you know your images by heart
  708. # [22:19] <Hixie> hsivonen: i know you were just talking hypothetically, but if you were to make a binary format with strings, i'd recommend against have an explicit length marker for a field
  709. # [22:20] <Hixie> hsivonen: those are frequently misimplemented and end up being attack vectors
  710. # [22:21] <takkaria> bad string copying also frequently ends up as an attack vector, too, though
  711. # [22:21] <takkaria> I suppose it doesn't so much anymore
  712. # [22:21] <takkaria> (I mean with NULL terminators)
  713. # [22:22] <Hixie> i think i've seen problems with pre-announced buffer lengths more than with buffers that you have to search for the length of
  714. # [22:22] <Hixie> but i could be wrong i guess
  715. # [22:23] <takkaria> I think you're probably right but I thought it was worth saying anyway. :)
  716. # [22:24] <hsivonen> Dashiva: bug filed. I need to do *something* about large images at some point. thanks
  717. # [22:24] <hsivonen> Hixie: yeah, preannounced length could be used to trick the app to allocate insanely large buffers
  718. # [22:25] <hsivonen> annevk: in Opera?
  719. # [22:25] <Hixie> hsivonen: not to mention people getting confused with signed/unsigned and allocating a tiny buffer and reading a big buffer and all kinds of things like that
  720. # [22:25] <hsivonen> annevk: what page is large enough to show the problem? the spec?
  721. # [22:26] <hsivonen> annevk: did you reload to make sure you browser has the latest script, btw?
  722. # [22:31] * Joins: shepazu (n=schepers@218.246.74.90)
  723. # [22:34] * Quits: h3h (n=w3rd@c-76-103-254-118.hsd1.ca.comcast.net) (Read error: 110 (Connection timed out))
  724. # [22:41] <annevk> hsivonen, type in a url, hit enter, then hit Esc
  725. # [22:41] <annevk> hsivonen, any page will do as far as I can tell
  726. # [22:41] <annevk> tested in Opera and Firefox
  727. # [22:49] <hsivonen> annevk: yeah, I'm seeing the problem.
  728. # [22:49] <hsivonen> annevk: last lines of http://about.validator.nu/script.js
  729. # [22:49] <hsivonen> annevk: I set window.onabort
  730. # [22:49] <hsivonen> what am I doing wrong?
  731. # [22:50] * Joins: roc (n=roc@121-72-168-16.dsl.telstraclear.net)
  732. # [22:50] <annevk> maybe onabort doesn't work the way I thought it did
  733. # [22:53] <hsivonen> is - forbidden in URI fragment, HTML4 ID or CSS ID or class selector?
  734. # [22:53] <annevk> no
  735. # [22:54] <hsivonen> yet, for some weird reason, the # target highligting breaks when - gets involved in ids, classes and selectors
  736. # [22:56] <annevk> if you start with - it might break stuff
  737. # [22:56] <hsivonen> I don't
  738. # [22:56] <hsivonen> still breaks
  739. # [22:56] * Joins: h3h (n=w3rd@c-76-103-254-118.hsd1.ca.comcast.net)
  740. # [22:57] <hsivonen> in Firefox 3b5, Safari 3.1.1 and Opera 9.5 beta something
  741. # [22:57] <hsivonen> aargh. Hixie's line offset request is more complex than it appears on surface
  742. # [22:57] <Hixie> really?
  743. # [22:57] <Hixie> wow
  744. # [22:58] <hsivonen> I'll deploy the broken state so you can try it out
  745. # [22:58] <Hixie> don't delay real improvements on my account :-)
  746. # [22:58] <Hixie> i figured it was just a matter of offsetting your parser's line count
  747. # [22:59] <hsivonen> Hixie: that would lead to badness, because -1 is magic in SAX
  748. # [22:59] <hsivonen> Hixie: it needs to happen much closer to output
  749. # [22:59] <hsivonen> so that all the internal calculation work without the offset
  750. # [22:59] <Hixie> wow that sucks
  751. # [23:02] <annevk> XMLHttpRequest spec in Korean (I guess): http://beyondweb.egloos.com/4304755
  752. # [23:02] <hsivonen> Hixie: there's now &lineoffset=
  753. # [23:02] <hsivonen> Hixie: but CSS effects break when the offset is negative
  754. # [23:03] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  755. # [23:03] <Hixie> hsivonen: CSS effects?
  756. # [23:03] <Hixie> i'm using the text mode
  757. # [23:03] <hsivonen> Hixie: sure it should work in all modes
  758. # [23:03] <hsivonen> Hixie: consider http://validator.nu/?doc=http%3A%2F%2Fcafe.elharo.com%2Fweb%2Fmokka%2F&showsource=yes&lineoffset=-10#l-9c121
  759. # [23:04] <hsivonen> and http://validator.nu/?doc=http%3A%2F%2Fcafe.elharo.com%2Fweb%2Fmokka%2F&showsource=yes&lineoffset=10#l11c121
  760. # [23:04] <hsivonen> the only different is the sign of the offset
  761. # [23:04] <hsivonen> selectors match differently
  762. # [23:04] <hsivonen> sucks
  763. # [23:05] <hsivonen> hmm. or perhaps my regexp is wrong
  764. # [23:06] <hsivonen> that's it!
  765. # [23:06] * gsnedders notes the guy that annevk said is the guy to ask for crazy regular expressions is around
  766. # [23:06] <hsivonen> ok. fixed
  767. # [23:08] <hsivonen> my grammar is getting bad. bed time
  768. # [23:10] * Quits: jacobolus (n=jacobolu@140.247.156.41)
  769. # [23:14] <Hixie> is "non-document-error io: HTTP resource not retrievable" a validator.nu error, or a curl error?
  770. # [23:17] <hsivonen> Hixie: validator.nu error
  771. # [23:17] <Hixie> k
  772. # [23:17] <Hixie> i'm sending the wrong url it seems
  773. # [23:17] <Hixie> i don't suppose there's any chance of this being done via a <!--line 0 --> type pragma :-)
  774. # [23:18] <Hixie> i mean, really there are two files
  775. # [23:18] <Hixie> and it would be cool if it would give the right line numbers and file names for errors in each part
  776. # [23:18] <hsivonen> Hixie: not at the moment. I think I might do something like that in the future for IPC
  777. # [23:18] <Hixie> like a preprocessor
  778. # [23:19] <Hixie> k
  779. # [23:19] <Hixie> #file foo, #line 2
  780. # [23:19] <Hixie> etc
  781. # [23:19] <hsivonen> Hixie: that'll confuse the Show Source thingy
  782. # [23:19] <gsnedders> poor little Show Source thingy
  783. # [23:19] <gsnedders> better give it a hug.
  784. # [23:20] <Hixie> hsivonen: yeah i figure it'd require pretty big changes if you have made assumptions throughout that that info isn't opaque
  785. # [23:20] <hsivonen> Hixie: there are two major assumptions:
  786. # [23:21] <hsivonen> #1: valid line numbers are >= 1
  787. # [23:22] <hsivonen> #2: the first line of the resource whose source is shown is 1 and the lines progress by LF/CR/CRLF from there
  788. # [23:22] <Hixie> progress monotonically without reducing?
  789. # [23:23] <hsivonen> I comment-based pragmas with positive line number would work if I turned off source extracts and Show Source
  790. # [23:23] <hsivonen> Hixie: yes. The source code manager counts the line numbers on its own and the parser counts them on its own
  791. # [23:24] <Hixie> ah
  792. # [23:24] <hsivonen> but they are assumed to do it the same way
  793. # [23:24] <hsivonen> the source manager is fed raw UTF-16 before the parser gets to decide where the line breaks are
  794. # [23:25] <hsivonen> s/I comment-based/I think comment-based/
  795. # [23:26] <hsivonen> also, the line number management inside the parsers is *hard* (surprisingly so)
  796. # [23:26] <hsivonen> so if I did pragmas, I'd fake the numbers immediately after the parser
  797. # [23:30] <Hixie> why not just carry two sets of file/line metadata throughout?
  798. # [23:30] <Hixie> one for internal use and one for presentation
  799. # [23:30] <Hixie> or just have a set of mappings which you invoke whenever outputting a line number
  800. # [23:31] <Hixie> that is, whenever you output a ui line number, you pass it through this one conversion function
  801. # [23:31] <hsivonen> (in order to make the source highlight nice and *correct*, the naïve standard SAX line location management doesn't work)
  802. # [23:32] <hsivonen> Hixie: that would be a lot of work for a use case that so far has only one user
  803. # [23:32] <Hixie> :-D
  804. # [23:32] <Hixie> yeah
  805. # [23:32] <Hixie> like i said, don't worry about it
  806. # [23:32] <Hixie> i didn't mean to slow down progress :-)
  807. # [23:32] <Hixie> i'm using hte offset you have now
  808. # [23:33] <hsivonen> and for the IPC case, show source would even make sense, so only location round trip would matter
  809. # [23:33] <hsivonen> s/would/wouldn't/
  810. # [23:34] <hsivonen> so I think the pragma thing is likely to happen one day but it'll likely be mutually exclusive with source extracts and full show source
  811. # [23:34] <Hixie> makes sense
  812. # [23:34] <Hixie> my own use case doesn't care about the view source and source extracts either
  813. # [23:38] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net) (Read error: 104 (Connection reset by peer))
  814. # [23:38] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
  815. # [23:40] * Quits: gsnedders (n=gsnedder@host217-44-37-113.range217-44.btcentralplus.com) ("Partying in teh intarwebs")
  816. # [23:42] * Joins: jacobolus (n=jacobolu@dhcp-0000036913-b5-5e.client.fas.harvard.edu)
  817. # [23:43] * Quits: jacobolus (n=jacobolu@dhcp-0000036913-b5-5e.client.fas.harvard.edu) (Client Quit)
  818. # [23:43] * Joins: jacobolus (n=jacobolu@dhcp-0000036913-b5-5e.client.fas.harvard.edu)
  819. # [23:44] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
  820. # [23:51] * Joins: Camaban (n=alee@85-211-222-116.dyn.gotadsl.co.uk)
  821. # [23:52] * Quits: jacobolus (n=jacobolu@dhcp-0000036913-b5-5e.client.fas.harvard.edu)
  822. # [23:52] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
  823. # Session Close: Mon Apr 21 00:00:00 2008

The end :)