Options:
- # Session Start: Mon Apr 06 00:00:00 2009
- # Session Ident: #whatwg
- # [00:05] * Joins: nessy (n=nessy@124-171-14-211.dyn.iinet.net.au)
- # [00:05] * Quits: heycam (n=cam@210-84-43-129.dyn.iinet.net.au) ("bye")
- # [00:15] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
- # [00:33] * Joins: doublec (n=doublec@202.0.36.64)
- # [01:25] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [01:44] * Joins: heycam (n=cam@dyn-130-194-221-53.its.monash.edu.au)
- # [01:50] * Quits: tndH (n=Rob@james-baillie-pc083-014.student-halls.leeds.ac.uk) ("ChatZilla 0.9.84-rdmsoft [XULRunner 1.9.0.1/2008072406]")
- # [02:07] * Joins: MikeSmith (n=MikeSmit@EM114-48-41-252.pool.e-mobile.ne.jp)
- # [02:13] * Joins: olliej (n=oliver@nat/apple/x-10ad6276cc243fb8)
- # [03:19] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [03:20] * Quits: mgrdcm (n=mgrdcm@c-69-246-244-191.hsd1.in.comcast.net)
- # [03:26] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [03:35] * Quits: nessy (n=nessy@124-171-14-211.dyn.iinet.net.au) ("This computer has gone to sleep")
- # [03:42] * hdh is now known as jbobot
- # [03:42] * jbobot is now known as hdh
- # [04:20] * Joins: mgrdcm (n=mgrdcm@c-69-246-244-191.hsd1.in.comcast.net)
- # [04:21] * Joins: mpilgrim_ (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
- # [04:22] * Quits: mpilgrim_ (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com) (Client Quit)
- # [04:39] * Quits: smedero (n=smedero@pia145-154.pioneernet.net)
- # [04:56] * Quits: MikeSmith (n=MikeSmit@EM114-48-41-252.pool.e-mobile.ne.jp) ("Tomorrow to fresh woods, and pastures new.")
- # [05:03] * Joins: MikeSmith (n=MikeSmit@tea12.w3.mag.keio.ac.jp)
- # [05:21] * Joins: smedero (n=smedero@pia145-154.pioneernet.net)
- # [05:40] * Joins: heyadayo2 (n=mcarter@adsl-76-204-180-24.dsl.pltn13.sbcglobal.net)
- # [05:41] * Quits: mcarter (n=mcarter@adsl-76-199-67-253.dsl.pltn13.sbcglobal.net) (Read error: 60 (Operation timed out))
- # [05:47] * heyadayo2 is now known as mcarter
- # [06:07] * Joins: dglazkov (n=dglazkov@c-98-207-88-44.hsd1.ca.comcast.net)
- # [06:08] * Quits: dglazkov (n=dglazkov@c-98-207-88-44.hsd1.ca.comcast.net) (Client Quit)
- # [06:23] * Joins: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [06:24] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net) (Client Quit)
- # [06:27] * Joins: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [06:38] * Quits: onar_ (n=onar@c-98-234-65-251.hsd1.ca.comcast.net)
- # [07:04] * Quits: shikiesos (n=shiki@220.109.219.244) ("Leaving.")
- # [07:19] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [07:24] * Joins: onar_ (n=onar@c-98-234-65-251.hsd1.ca.comcast.net)
- # [07:27] * Joins: shikiesos (n=shiki@220.109.219.244)
- # [07:29] * Quits: roc (n=roc@202.0.36.64)
- # [07:54] * Joins: nessy (n=nessy@124-171-14-211.dyn.iinet.net.au)
- # [07:59] * Joins: ap (n=ap@194.154.88.33)
- # [08:05] * Joins: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu)
- # [08:09] * Quits: heycam (n=cam@dyn-130-194-221-53.its.monash.edu.au) ("bye")
- # [08:18] * Joins: pesla (n=retep@procurios.xs4all.nl)
- # [08:21] * Joins: heycam (n=cam@zot.infotech.monash.edu.au)
- # [08:35] * Joins: pergj (n=pergj@home.kvaleberg.no)
- # [08:37] <hsivonen> Hixie: the foreign flag is a two-state separate variable that the tree builder checks for each start tag token before checking the instertion mode aka. 'secondary' insertion mode
- # [08:43] * Joins: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl)
- # [08:43] * Quits: Niictar24 (n=ritz@S010600183f550ae0.cg.shawcable.net) (Read error: 60 (Operation timed out))
- # [08:45] <Hixie> hsivonen: that seems like just an extra "if" statement per token
- # [08:45] <Hixie> hsivonen: what's the benefit?
- # [08:45] * Joins: virtuelv (n=virtuelv@pat-tdc.opera.com)
- # [08:46] <hsivonen> Hixie: the benefit depends on how insertion modes have been implemented
- # [08:47] <hsivonen> Hixie: it seems to me that this eliminates a second method / function pointer-based method call per foreign start tag token
- # [08:49] <hsivonen> Hixie: I suppose on could eliminate the extra if by rolling the foreign behavior into the main mode switch and by changing the value of the variable to switch on and re-switching when falling back onto the secondary mode
- # [08:50] <Hixie> well i don't have an opinion on how you should implement it
- # [08:51] <Hixie> but i don't see why a separate switch is better for the way the spec describes it
- # [08:51] <hsivonen> was jgraham's infinite loop his bug or a spec bug?
- # [08:52] <Hixie> his bug
- # [08:52] <Hixie> (and unrelated to the insertion mode)
- # [08:54] <hsivonen> ok
- # [08:56] * Quits: doublec (n=doublec@202.0.36.64) ("Leaving")
- # [08:59] * Joins: tndH (n=Rob@james-baillie-pc083-014.student-halls.leeds.ac.uk)
- # [09:02] * Joins: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [09:04] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [09:06] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net) (Client Quit)
- # [09:06] * Quits: mgrdcm (n=mgrdcm@c-69-246-244-191.hsd1.in.comcast.net)
- # [09:23] * Quits: onar_ (n=onar@c-98-234-65-251.hsd1.ca.comcast.net)
- # [09:38] <hsivonen> which WG should spec the behavior of XPath being matched against a DOM that is an 'HTML document' for the purposes of the flag defined in HTML 5?
- # [09:38] <Hixie> my solution would be "don't use XPath"
- # [09:38] <hsivonen> which WG should spec the behavior of the XSLT 'html' output mode in the case of in-browser DOM-to-DOM transform
- # [09:38] <Hixie> why is "use the infoset as defined for xml" not satisfactory?
- # [09:38] <hsivonen> Hixie: we still need a spec
- # [09:39] <hsivonen> Hixie: no
- # [09:39] <Hixie> "why" not "is" :-)
- # [09:40] <hsivonen> Hixie: for compatibility with existing content, when an XPath expression is used via document.evaluate, a name expression where the namespace is no namespace and local name is /local/,
- # [09:40] <Hixie> sounds like xpath would have to define this, if it needs changes to xpath semantics
- # [09:40] <hsivonen> must evaluate to true when compared against a DOM element node name whose namespace is http://www.w3.org/1999/xhtml and local name is /local/
- # [09:41] <hsivonen> Hixie: it would be nice to have an informative note about this in HTML 5
- # [09:42] <Hixie> tell me what it should say in a bug
- # [09:42] <hsivonen> Hixie: I'll file bugs on XSLT, XPath and HTML 5.
- # [09:42] <Hixie> i know only enough about xpath and xslt to know to avoid them
- # [09:42] <hsivonen> Hixie: well, that doesn't help me when just following HTML 5 would break mochitests and existing content
- # [09:43] <Hixie> just remove the relevant features :-)
- # [09:44] * Quits: gavin (n=gavin@firefox/developer/gavin) (Read error: 60 (Operation timed out))
- # [09:45] * Joins: gavin (n=gavin@firefox/developer/gavin)
- # [09:46] <hsivonen> ooh. there's an XSLT 2.1 in the works
- # [09:46] * hsivonen goes looking for public WDs
- # [09:47] <hsivonen> hrm. I can't find a public WD for XSLT 2.1.
- # [09:48] * Quits: smedero (n=smedero@pia145-154.pioneernet.net)
- # [09:53] * MikeSmith looks for XSLT 2.1 also
- # [09:57] <hsivonen> where does the XSLT 2.0 spec even define the serialization algorithms?
- # [09:59] * Joins: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl)
- # [09:59] <MikeSmith> hsivonen: seems that XSLT 2.1 draft is member-only at this point
- # [09:59] <MikeSmith> as is pretty much all their draft content
- # [10:00] <hsivonen> MikeSmith: thanks. I'll file bugs against the released specs, then.
- # [10:00] <MikeSmith> hsivonen: I find http://www.w3.org/TR/xslt-xquery-serialization/
- # [10:01] <hsivonen> If the WG wants to make it know to the general public whether their drafts have the same bugs, they can change the bugzilla fields
- # [10:01] <hsivonen> s/know/known/
- # [10:01] <MikeSmith> yeah
- # [10:01] <hsivonen> thanks. I didn't realize the serialization spec was separate.
- # [10:02] <hsivonen> I was performing random-access reads to XSLT 2.0 and missed normative references if there were any
- # [10:13] * Joins: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [10:14] * Joins: mpt (n=mpt@canonical/launchpad/mpt)
- # [10:14] <zcorpan> hsivonen: maybe you should treat new html5 elements when validating html4 the same as legacy elements when validating as html5
- # [10:15] <zcorpan> hsivonen: i.e. whine about <article> being a new element but don't skip the subtree
- # [10:15] <jgraham> Hixie: Actually I need to check that the infinite loop isn't a spec bug because I think I have an if statement left that was supposed to prevent it but, without looking at the code, it seems like it should be unnecessary now
- # [10:15] <hsivonen> zcorpan: good idea!
- # [10:15] <Hixie> jgraham: is that the same bug you mailed me about?
- # [10:16] * jgraham thinks some more and realises he's not sure it is unnecessary
- # [10:16] <jgraham> Hixie: No
- # [10:16] <Hixie> ah ok
- # [10:16] <Hixie> so what is the if statement in question?
- # [10:17] <jgraham> Hixie: It was about getting a <svg> or <math> element processed as if In Body when In Foreign Content
- # [10:17] <jgraham> Which I think sets the secondard insertion mode to In Foreign Content
- # [10:17] <Hixie> is there a sample markup snippet demonstrating what you mean?
- # [10:18] <jgraham> Hixie: Probably something like <svg><foreignObject><math>
- # [10:18] <jgraham> iirc
- # [10:18] <jgraham> (maybe you need something else)
- # [10:18] * Quits: heycam (n=cam@zot.infotech.monash.edu.au) ("bye")
- # [10:18] * jgraham goes to look at the code
- # [10:18] * zcorpan filed http://bugzilla.validator.nu/show_bug.cgi?id=472
- # [10:19] <hsivonen> thanks!
- # [10:19] <Hixie> jgraham: i don't see why that would be a problem
- # [10:21] <jgraham> Hixie: The problem I was having, which may or may not have just been a bug, was that both the insertion mode and the secondary insertion mode were In Foreign Content, so hen you hit something that tried to switch the insertion mode to the secondary insertion mode and reprocess the token an infinite loop occurred
- # [10:22] * jgraham realises he doesn't have the right tree on this computer, gives up
- # [10:23] <Hixie> oh yeah
- # [10:23] <MikeSmith> hsivonen: about bug 472, the obsolete-element checking for HTML5 is just in the Assertions.java code, right?
- # [10:23] <hsivonen> MikeSmith: yes. and legacy.rnc makes them non-errors on the RNG layer
- # [10:23] <Hixie> jgraham: i guess we shouldn't change the insertion mode if it's already in foreign, for "math" and "svg" start tag tokens
- # [10:24] <jgraham> Hixie: I think that was my if statement :)
- # [10:26] <Hixie> jgraham: fixed
- # [10:26] <MikeSmith> hsivonen: so implementing a similar mechanism for warning about HTML5 elements in HTML4 checking would require adding a corresponding legacy.rnc with the HTML5 elements, and adding an Assertions.java for HTML4 checking?
- # [10:27] <hsivonen> MikeSmith: yes. although now the HTML 4-related assertions are in real .sch
- # [10:27] <MikeSmith> OK
- # [10:27] <hsivonen> MikeSmith: only because I haven't gotten around to reimplementing that .sch in Java
- # [10:28] <MikeSmith> hsivonen: I see. well, if you want, I can take a shot at implementing zcorpan's suggestion and send you a patch to review
- # [10:30] <jgraham> Hixie: Thanks
- # [10:35] <hsivonen> MikeSmith: that would be nice
- # [10:37] <MikeSmith> hsivonen: OK. so this is the schema code in validator/schema/xhtml10/ , right?
- # [10:38] <hsivonen> MikeSmith: yes
- # [10:38] <MikeSmith> OK
- # [10:38] <hsivonen> I've now filed 4 bugs: one on XSLT and XPath each and two on HTML 5 about making notes pointing out the same things.
- # [10:39] * Quits: webben (n=benh@dip5-fw.corp.ukl.yahoo.com) (Read error: 60 (Operation timed out))
- # [10:40] <MikeSmith> zcorpan: btw, about http://bugzilla.validator.nu/show_bug.cgi?id=467
- # [10:40] <zcorpan> MikeSmith: yes?
- # [10:41] * Joins: ROBOd (n=robod@89.122.216.38)
- # [10:43] <MikeSmith> zcorpan: do you have tests that are not already included in the automated set of tests that validator.nu runs when it builds the "test" target?
- # [10:43] * Joins: maikmerten (n=maikmert@L866e.l.pppool.de)
- # [10:44] <MikeSmith> or is it that the tests need to be incorporated in the JSON mechanism that's there?
- # [10:44] <zcorpan> MikeSmith: i don't know which tests are run
- # [10:44] <MikeSmith> OK
- # [10:44] <hsivonen> MikeSmith: the JSON db is not included in the 'test' run yet
- # [10:44] <MikeSmith> ah
- # [10:44] <hsivonen> MikeSmith: 'test' runs fantasai's tests
- # [10:44] <zcorpan> MikeSmith: i'm not aware of any validator-specific tests i have around other than those at http://simon.html5.org/test/validator/
- # [10:44] <MikeSmith> hsivonen: I see
- # [10:46] <Hixie> sicking: document.write() when not in a parser-triggered <script> always implied a document.open()
- # [10:46] <hsivonen> (also, when I was developing Web Forms 2.0 validation, 'test' ran a modified version of annevk's Web Forms 2.0 suite, but I can't distribute those files.)
- # [10:46] <Hixie> sicking: there is never a race condition that might insert data in a random place in the input stream
- # [10:46] <Hixie> sicking: (this matches implementations, and is, i thought, clear in the spec)
- # [10:47] <MikeSmith> zcorpan: I see now. I was thinking you had more there, under the content-model subdir
- # [10:47] <hsivonen> Hixie: does it match Gecko/WebKit or only IE/Opera?
- # [10:47] <Hixie> everyone as far as i know
- # [10:47] <hsivonen> Hixie: ok. my recollection is different, but I agree with your point.
- # [10:47] <Hixie> there are occasional cases where you can trick some browsers into inserting text in arbitrary places in the input stream, but those seem to be rare bugs
- # [10:49] <MikeSmith> hsivonen, zcorpan: anyway, I see now that the purpose of the json thing is to allow testing of remote documents, right?
- # [10:49] <Hixie> bed time
- # [10:49] <Hixie> nn
- # [10:50] <zcorpan> MikeSmith: yep
- # [10:51] <MikeSmith> zcorpan: OK. and it requires that v.nu report only a single error message?
- # [10:51] <hsivonen> MikeSmith: no, the harness only compares the first message from remote against the first message from db
- # [10:51] <MikeSmith> OK
- # [10:52] <hsivonen> MikeSmith: http://wiki.whatwg.org/wiki/Validator.nu_Full-Stack_Tests
- # [10:52] <MikeSmith> thanks
- # [10:54] <zcorpan> MikeSmith: after having fixed a bug, you can do python validator-tester.py adduri url-of-test
- # [10:55] <MikeSmith> oh, cool
- # [11:02] * Parts: zcorpan (n=zcorpan@c83-252-196-43.bredband.comhem.se)
- # [11:03] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [11:18] <MikeSmith> hsivonen: minor problem with this test:
- # [11:18] * Joins: webben (n=benh@nat/yahoo/x-550b675beb37f6a5)
- # [11:19] <MikeSmith> http://hsivonen.iki.fi/test/moz/unescaped-ampersand.html
- # [11:21] <MikeSmith> failing because db say to expect the error to start at column 7, but v.nu reports it at column 4
- # [11:21] <MikeSmith> should I go ahead and update it before adding other tests?
- # [11:26] <MikeSmith> hsivonen: hmm, message output for that case no longer matches either
- # [11:26] <MikeSmith> it was:
- # [11:26] <MikeSmith> Text after \u201c&\u201d did not match an entity name. Probable cause: \u201c&\u201d should have been escaped as \u201c&\u201d.
- # [11:27] <MikeSmith> but v.nu now says:
- # [11:27] <MikeSmith> u201c&\u201d did not start a character reference. (\u201c&\u201d probably should have been escaped as \u201c&\u201d.
- # [11:28] * Joins: heycam (n=cam@210-84-43-129.dyn.iinet.net.au)
- # [11:29] <MikeSmith> hsivonen: current result seems correct, so should I just update the db.json to that?
- # [11:30] <hsivonen> MikeSmith: please do
- # [11:30] <hsivonen> MikeSmith: the test harness doesn't care about the text of the error message
- # [11:32] * Joins: roc (n=roc@121-72-216-45.dsl.telstraclear.net)
- # [11:34] * Quits: roc (n=roc@121-72-216-45.dsl.telstraclear.net) (Client Quit)
- # [11:38] * Joins: roc (n=roc@121-72-216-45.dsl.telstraclear.net)
- # [11:39] * Quits: gavin (n=gavin@firefox/developer/gavin) (Read error: 110 (Connection timed out))
- # [11:39] * Joins: gavin (n=gavin@firefox/developer/gavin)
- # [11:42] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
- # [11:44] <MikeSmith> hsivonen: OK
- # [11:46] * Quits: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
- # [11:46] <MikeSmith> I'll check that in and other the other of zcorpan tests that aren't in there yet
- # [11:47] <hsivonen> Can an XPath expression compiler tell from context if a given name expression will match against element names or against attribute names?
- # [11:48] * Quits: MikeSmith (n=MikeSmit@tea12.w3.mag.keio.ac.jp) ("Tomorrow to fresh woods, and pastures new.")
- # [11:48] * Joins: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu)
- # [12:08] * Joins: ap_ (n=ap@194.154.88.32)
- # [12:17] * Quits: ap (n=ap@194.154.88.33) (Read error: 110 (Connection timed out))
- # [12:20] <Lachy> looks like there's still some confusion about elements vs. tags. http://blog.whatwg.org/help-us-review-html5#comment-40489 I wonder what can be done to clarify the spec, even though it's already technically correct as is
- # [12:24] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Client Quit)
- # [12:28] <beowulf> Lachy: i think i undertand elements vrs tags but i don't understand those two parts of the spec as quoted in that comment...
- # [12:29] <Lachy> beowulf, why is it hard to understand that the root element is still present in the document, even though its tags may be omitted from the serialisation?
- # [12:30] <beowulf> because i'm an html author, not a ua author?
- # [12:31] <beowulf> but i get it now
- # [12:31] <Philip`> Depends on whether you view "the document" as a DOM or as a set of tags, I guess
- # [12:32] * ap_ is now known as ap
- # [12:33] <Lachy> yeah, that can be a little confusing for authors since the exact meaning of "the document" depends on the context in which its used
- # [12:39] * Joins: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [12:47] * sid0|dnd is now known as sid0
- # [12:59] * Quits: virtuelv (n=virtuelv@pat-tdc.opera.com) ("Ex-Chat")
- # [13:00] <hsivonen> did Web Apps inherit all the old DOM specs for maintenance purposes?
- # [13:04] * Joins: harig (n=opera@59.90.71.35)
- # [13:07] * Joins: zcorpan (n=zcorpan@pat.se.opera.com)
- # [13:11] * Joins: adambeynon (n=adambeyn@93-97-200-127.zone5.bethere.co.uk)
- # [13:13] * Joins: mstange (n=markus@pD957933F.dip0.t-ipconnect.de)
- # [13:14] <annevk2> hsivonen, sort of, yes
- # [13:15] <hsivonen> annevk2: what's the preferred means of reporting spec change requests?
- # [13:17] <annevk2> emailing public-webapps or www-dom
- # [13:17] <hsivonen> annevk2: thanks.
- # [13:17] <hsivonen> I guess I need to read up on the reuse of the www-dom list
- # [13:18] <annevk2> it's used for event stuff but has traditionally been the place for issues with dom core as well
- # [13:18] <annevk2> since nothing much is happening with dom core until simon's draft is ready it hasn't been used for that recently I suppose
- # [13:19] <hsivonen> annevk2: is anyone managing updates to DOM Level 3 XPath?
- # [13:19] <annevk2> not really
- # [13:19] <hsivonen> annevk2: should I expect Web Apps to update that spec, or should I push for a delta-spec in the "APIs in HTML Documents" section of HTML5?
- # [13:20] <annevk2> there was an idea to standardize on an XSLT API as well but that hasn't happened either
- # [13:20] <hsivonen> does existing content pass HTML DOMs into such an API?
- # [13:20] <annevk2> DOM3XPath is nothing more than a note so I suspect webapps would be the best place
- # [13:20] <hsivonen> ok
- # [13:20] <annevk2> I'm not really familiar with the XSLT API
- # [13:21] <hsivonen> ok
- # [13:21] <hsivonen> thanks
- # [13:21] <annevk2> though I believe Gecko/Presto/WebKit have one in common and IE has another
- # [13:21] <hsivonen> having it in 3 browsers makes me suspect someone out there is already using it on HTML DOMs
- # [13:22] <hsivonen> so the XPath hack needs to apply to XPath in the browser in general--not just to document.evaluate
- # [13:22] <zcorpan> didn't google docs or something use xslt in the dom?
- # [13:24] <zcorpan> does someone have an opinion about Element.parentElement?
- # [13:24] <zcorpan> s/some/any/
- # [13:24] <annevk2> doesn't seem harmful
- # [13:25] <annevk2> and we have firstElementChild and such too...
- # [13:25] <zcorpan> yeah
- # [13:26] * jgraham is against it
- # [13:27] <jgraham> Unless it becomes part of ElementTraversal
- # [13:27] <jgraham> Because it is totally redundant with parentNode
- # [13:27] <annevk2> why does it matter what it is part of?
- # [13:27] <annevk2> I think ElementTraversel should just be integrated in DOM Core fwiw
- # [13:27] <jgraham> annevk2: At the moment it is not part of anything at all, right?
- # [13:28] <annevk2> it's part of IE, WebKit and Opera
- # [13:28] <jgraham> What I really mean is that if it were in some spec I would accept it as inevitable
- # [13:28] * Joins: virtuelv (n=virtuelv@pat-tdc.opera.com)
- # [13:28] <jgraham> annevk2: The fact that Firefox doesn't support it suggests that it is not needed for the web
- # [13:29] <zcorpan> nextElementSibling wasn't needed for the web, either
- # [13:29] <jgraham> AFAICT the only difference between parentNode and parentElement is that in one case you do while(node != document){} and in the other you do while(node != null){}
- # [13:30] <jgraham> nextElementSibling actually has a technical advantage for the common case where you want to iterate over elements but not other node types
- # [13:30] <jgraham> Although arguably it is redundant with jQuery
- # [13:30] <zcorpan> you can have elements in a DocumentFragment
- # [13:31] <annevk2> both array index and linked list also is redundant
- # [13:31] <jgraham> annevk2: ?
- # [13:32] <annevk2> I'm saying that redundancy is a "feature" when it comes to the DOM
- # [13:32] <annevk2> it's all over the place
- # [13:32] <zcorpan> let's add more!
- # [13:33] <jgraham> So your argument is that the DOM is so unweildy that we may as well add any extra feature because it only adds epsilon extra ugliness/confusion?
- # [13:34] <zcorpan> always doing whlie (n = n.parentElement) seems simpler than keeping track of what to check for in different cases
- # [13:35] <jgraham> I am toatlly unconvinced that the extra simplicity is worthwhile
- # [13:35] <annevk2> jgraham, I don't think parentElement is ugly or confusing
- # [13:35] <jgraham> annevk2: Do you think it is ugly or confusing to have two different methods that do almost exactly the same thing?
- # [13:36] <jgraham> (I agree that, in isolation, parentElement is not particularly bad)
- # [13:36] <annevk2> not necessarily, apparently :)
- # [13:36] <zcorpan> parentNode and parentElement have descriptive enough names to not be so confusing
- # [13:36] <hsivonen> parentElement makes sense for languages that don't do duck typing
- # [13:37] <hsivonen> it would make more sense in the Java DOM than in the JavaScript DOM
- # [13:37] <jgraham> hsivonen: Presumably the Java DOM has to support .parentNode anyway
- # [13:38] <hsivonen> jgraham: yes, but you need to cast it into Element explicitly to get at stuff that isn't on Node
- # [13:38] * jgraham wishes we could stop designing APIs that are supposed to be programming-language neutral and just design good APIs for the web
- # [13:38] <annevk2> I think we're doing that now
- # [13:38] <jgraham> annevk2: Really?
- # [13:39] <annevk2> when we design new APIs, yes
- # [13:39] <jgraham> annevk2: I guess localStorage is a pretty js-friendly api
- # [13:39] <annevk2> see e.g. overloading of postMessage
- # [13:40] <hsivonen> does WebKit implement XSLT as DOM-to-DOM like Gecko or as DOM-to-characters-to-DOM like IE?
- # [13:41] <hsivonen> Opera is like IE here, right?
- # [13:41] <hsivonen> (I wonder why, though. If Gecko can get away with DOM-to-DOM, why not Opera?)
- # [13:41] <Philip`> Loads of pages use parentElement
- # [13:42] <jgraham> Really? I wonder how Firefox gets away with not supporting it…
- # [13:42] <hsivonen> jgraham: yes, Firefox does DOM-to-DOM
- # [13:43] <hsivonen> jgraham: no disabling output escaping in the transform or document.write in the result
- # [13:43] <annevk2> hsivonen, jgraham meant parentElement
- # [13:43] <hsivonen> oh
- # [13:43] * jgraham was rather confused :)
- # [13:43] <annevk2> hsivonen, I'm not sure why we do what we do with respect to XSLT
- # [13:43] <Philip`> http://www.runningstrong.com/ -
- # [13:43] <Philip`> if (elem.parentNode) ... // IE5, IE6 and Netscape 6
- # [13:43] <Philip`> else if (elem.parentElement && elem.parentElement.setAttribute) ... // IE4.
- # [13:43] <Philip`> else // Netscape 4.6x or 4.7x
- # [13:43] <Philip`> //alert("Must be Netscape! do nothing");
- # [13:44] <Philip`> (Lots of pages have that code)
- # [13:44] <Philip`> http://www.evo-solutions.com/ - firedobj=ns6? firedobj.parentNode : firedobj.parentElement
- # [13:45] <Philip`> http://villacapri.8m.com/ - while (EventTag.parentElement&&(EventTag.tagName!="A")){ EventTag=EventTag.parentElement; }
- # [13:47] <Philip`> http://www.ozteknik.com/ - if (TempJudge && SrcTecMenuIE ){ if (thisobj.parentElement.className=="SrcTecMenuClass"+thisobj.parentElement.id+"On") ... }
- # [13:47] <Philip`> and lots of others
- # [13:48] <Philip`> (In that last case, SrcTecMenuIE = (document.all))
- # [13:48] <zcorpan> hsivonen: i think opera does reparse because dom-to-dom broke various htmlness issues that a reparse fixed given our architecture
- # [13:49] <hsivonen> zcorpan: ah. DOM-to-DOM is magic in Gecko in its handling of local names
- # [13:50] <hsivonen> clearly, there would have been a need for a spec for this stuff, since browser differ radically in their implementation approach
- # [13:50] <zcorpan> Philip`: thanks. i guess that's reason enough to add it to web dom core
- # [13:50] <Philip`> zcorpan: Depends on whether you want to get the IE browser-sniffing path or the Netscape browser-sniffing path
- # [13:51] <zcorpan> Philip`: hmm
- # [13:53] <annevk2> the ones that check seem to check for parentNode first
- # [13:54] <zcorpan> var ns6=document.getElementById&&!document.all
- # [13:55] <zcorpan> rather they seem to check for other things than parentElement in their checks
- # [13:55] * Quits: wilhelm (i=wilhelm@trivini.no) (Read error: 110 (Connection timed out))
- # [13:56] <zcorpan> so if you're not "netscape" you might get the parentElement code path
- # [13:57] * Quits: Hixie (i=ianh@trivini.no) (Read error: 110 (Connection timed out))
- # [13:57] <annevk2> why does http://www.whatwg.org/specs/web-apps/current-work/?slow-browser#named-access-on-the-window-object list the named elements twice?
- # [13:57] <zcorpan> http://www.ozteknik.com/ just uses it without checking
- # [13:58] <hsivonen> looks like we don't have interop here: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/64
- # [13:59] <hsivonen> but here we have interop: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/65
- # [13:59] <zcorpan> hsivonen: i think gecko is alone in disabling document.all in standards mode
- # [14:00] <hsivonen> oh. right. good point
- # [14:01] <hsivonen> http://software.hixie.ch/utilities/js/live-dom-viewer/saved/67
- # [14:01] <hsivonen> Gecko shows a different class compared to WebKit and Opera
- # [14:03] <zcorpan> ie8, opera and webkit all say [object HTMLCollection]
- # [14:05] <zcorpan> i guess parentElement should be on Node?
- # [14:05] <annevk2> is it on Node now?
- # [14:05] <gavin_> that "HTML document.all class" dates back all the way to implementation of "undetectable document.all" support
- # [14:06] * gavin_ can't find any justification for it
- # [14:06] <gavin_> bet we could change it!
- # [14:07] <zcorpan> hmm the live dom viewer save link doesn't work in ie8
- # [14:07] <zcorpan> it's on Node in webkit
- # [14:08] <zcorpan> HTMLElement in opera
- # [14:08] <zcorpan> Element in ie8
- # [14:09] <zcorpan> the ElementTraveral attributes are going to be on Node, right?
- # [14:10] <annevk2> maybe
- # [14:11] <zcorpan> i seem to remember feedback saying they should be on Node but that would be deferred to 2.0 because of willingness to get the spec to REC quickly
- # [14:11] * Joins: Fyrd (n=adeveria@nat1.newsargus.com)
- # [14:16] * jgraham accidentially reads the alt requirements again, realises, again, that they are works of pure fiction compared to what will actually happen
- # [14:17] * Parts: Fyrd (n=adeveria@nat1.newsargus.com)
- # [14:18] * Joins: Fyrd (n=adeveria@nat1.newsargus.com)
- # [14:20] * Parts: Fyrd (n=adeveria@nat1.newsargus.com)
- # [14:21] * Quits: webben (n=benh@nat/yahoo/x-550b675beb37f6a5) (Read error: 110 (Connection timed out))
- # [14:22] * Joins: webben (n=benh@nat/yahoo/x-1cefd596abae6440)
- # [14:24] <Philip`> jgraham: The requirements in the spec?
- # [14:24] * Joins: Hish_ (n=chatzill@p5B38301E.dip0.t-ipconnect.de)
- # [14:24] <jgraham> Philip`: Yes.
- # [14:25] * jgraham probably shouldn't say anything related to alt at all ever
- # [14:28] <zcorpan> http://simon.html5.org/specs/web-dom-core#dom-node-parentelement
- # [14:30] * Joins: pmuellr (n=pmuellr@nat/ibm/x-30d5065d2396a60e)
- # [14:31] * Quits: annevk2 (n=annevk@53568A94.cable.casema.nl) (Remote closed the connection)
- # [14:35] <Philip`> jgraham: I've generally given up trying to read the spec to work out what my alt text should be, because it seems to go into so much detail that I can't find any relevant advice
- # [14:37] <zcorpan> Philip`: would the spec be easier to understand if it said "Conformance requirements regarding the usage of the alt attribute are given in WCAG 2.0."?
- # [14:37] <Lachy> Philip`, is that because it doesn't cover your specific case, or because you can't figure out which cases apply to your images?
- # [14:37] * Joins: annevk2 (n=annevk@53568A94.cable.casema.nl)
- # [14:37] <Lachy> zcorpan, no.
- # [14:37] <Philip`> zcorpan: No
- # [14:38] <jgraham> Philip`: I wasn't even trying to write alt text. A search just landed me there and I thought "if I had a dollar for every instance of a screenshot with a precise description of the screen contents on a real website, I would have exactly zero dollars"
- # [14:38] <zcorpan> please say so to pf people
- # [14:38] <Philip`> Lachy: I can't figure out whether it does cover my specific case
- # [14:39] <Lachy> Philip`, can you point to specific case of yours as an example?
- # [14:39] * Quits: kinetik (n=kinetik@121.98.132.55) (Read error: 110 (Connection timed out))
- # [14:41] * Quits: Hish (n=chatzill@mail2.n-e-s.de) (Success)
- # [14:41] <Philip`> Lachy: There was http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2008-April/014446.html a while ago
- # [14:42] <Philip`> The spec has been updated, so maybe it now deals with those specific cases, but the alt description is eight pages long so I'm not going to bother reading it to check
- # [14:42] * Joins: mgrdcm (n=mgrdcm@c-69-246-244-191.hsd1.in.comcast.net)
- # [14:43] <Philip`> (I could cope much better with more general advice, like saying that pages should remain understandable if all the images are replaced by their alt text)
- # [14:43] <zcorpan> Philip`: you can check the toc to see which cases the spec lists
- # [14:45] <zcorpan> Philip`: it also has a section called General guidelines
- # [14:46] <jgraham> Yeah there could be a conformance requirement like "Pages must be understandable when images are not avaliable" and the alt attribute sould just say "the attribute provides alternative text for an image which is often required comply with the requirements in section x.y.z"
- # [14:46] <jgraham> That would annoy the pf people no end
- # [14:47] <Philip`> zcorpan: Having the general guidelines hidden underneath a dozen tedious case descriptions is not a good way to make me discover them :-)
- # [14:48] <zcorpan> Philip`: bug hixie to move them up
- # [14:49] * Joins: taf2_ (n=taf2@65.210.82.235)
- # [14:49] * Joins: zdobersek (n=zan@cpe-92-37-76-150.dynamic.amis.net)
- # [14:49] <zcorpan> hmm http://msdn.microsoft.com/en-us/library/ms536654(VS.85).aspx
- # [14:50] <Philip`> Reading the TOC doesn't really help either - if I e.g. want to write a page describing a game that's decorated with some screenshots that link to full-size images when you click on them, the first one I noticed when randomly scanning the TOC was "4.8.2.1.6 A purely decorative image that doesn't add any information", which says to use alt="", which is wrong
- # [14:50] <Lachy> Philip`, specifically which case in that email? The first one mentioned about the google logo now seems to be fairly well addressed in the spec
- # [14:51] <Philip`> Lachy: I don't know, I haven't bothered checking the latest version of the spec because I don't care enough :-p
- # [14:52] <Lachy> Philip`, ok. You're making it difficult to undrestand how to address your problems
- # [14:52] <Lachy> *understand
- # [14:53] <jgraham> Lachy: It seems pretty clear. Make that section of the spec shorter
- # [14:56] <Philip`> Lachy: Adding text to the spec to clarify the existing cases or cover new cases to address my problems would just make my higher-level problem (that I'd like to write acceptable alt text but the spec is too verbose and hard to read) worse
- # [14:58] <Lachy> making the spec detailed enough to cover all cases is in direct conflict with the desire to make it more concise
- # [14:59] <Philip`> It can cover all cases by being more general, rather than by being more detailed
- # [14:59] <Lachy> would it be better to instead make the spec easier to navigate and somehow helping people to more easily identify applicable cases
- # [15:00] <Philip`> That suggests that authors will write an <img>, think "ooh, I need some alt text", then open the HTML5 spec, navigate to the applicable case, read the instructions, and then write their alt text
- # [15:00] <jgraham> We could write a text-based adventure frontend to the spec
- # [15:00] <Philip`> which is horribly inefficient
- # [15:00] <Lachy> since I'm going to have to eventually explain this in the authoring guide, it would be good to figure out how to make that more approachable than the spec.
- # [15:00] <Philip`> and therefore unlikely to happen
- # [15:00] <jgraham> "You are in a maze of twisy reccomendations, all alike"
- # [15:01] <jgraham> "It is dark, you are likely to be eaten by a lawyer"
- # [15:01] <beowulf> can't you just decide to dump @alt?
- # [15:03] <Philip`> It's more realistic if the author writes an <img>, thinks "ooh, I need some alt text", then remembers an approximation of the nice concise description of alt they read in the HTML5 spec six months ago, and then writes their alt text, and nobody points at them and laughs and says "you're a moron, section 4.8.2.1.11.6.9 specifically addresses this image and says you should write this specific text"
- # [15:03] <zcorpan> Lachy: copy the general guidelines section, then say "for more detail or suggestions for specific cases, refer to the spec"
- # [15:08] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
- # [15:12] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Client Quit)
- # [15:20] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
- # [15:23] * Quits: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com) (Client Quit)
- # [15:24] * Joins: gsnedders (n=gsnedder@host86-136-52-180.range86-136.btcentralplus.com)
- # [15:31] * Quits: mgrdcm (n=mgrdcm@c-69-246-244-191.hsd1.in.comcast.net)
- # [15:35] * Joins: davidb (n=davidb@mozca02.ca.mozilla.com)
- # [15:40] * Joins: zdobersek1 (n=zan@cpe-92-37-73-57.dynamic.amis.net)
- # [15:54] * Quits: virtuelv (n=virtuelv@pat-tdc.opera.com) ("Ex-Chat")
- # [15:54] * Quits: zdobersek (n=zan@cpe-92-37-76-150.dynamic.amis.net) (Read error: 110 (Connection timed out))
- # [15:59] * Quits: mstange (n=markus@pD957933F.dip0.t-ipconnect.de) ("ChatZilla 0.9.84-2009030221 [Firefox 3.6a1pre/20090405031025]")
- # [16:04] * Joins: MikeSmith (n=MikeSmit@EM114-48-222-191.pool.e-mobile.ne.jp)
- # [16:04] * Joins: billyjackass (n=MikeSmit@EM114-48-222-191.pool.e-mobile.ne.jp)
- # [16:05] <annevk2> hsivonen has awoken the XML gods: http://twitter.com/elharo/statuses/1462873257
- # [16:07] <hsivonen> annevk2: too bad the removal of the Selectors special case introduced an XPath special case
- # [16:08] <annevk2> better XPath special case than special cases in the more commonly used features
- # [16:08] * Quits: billyjackass (n=MikeSmit@EM114-48-222-191.pool.e-mobile.ne.jp) (Client Quit)
- # [16:09] <MikeSmith> "The only thing they hold sacred are 10-year old browser bugs."
- # [16:09] <MikeSmith> beautiful
- # [16:09] <MikeSmith> we should start a quotations page
- # [16:09] <hsivonen> it's a DOM Level 2 / XHTML 1.0 issue, actually...
- # [16:10] <hsivonen> or Namespaces issue...
- # [16:10] <annevk2> yeah, it's clear from the accusation that he hasn't really followed what this is about
- # [16:10] <MikeSmith> we should do like Elijah, line up the priests of Baal and put them all to a test
- # [16:11] <hsivonen> of course, this wouldn't be an issue if XPath had had a namespace wildcard by default like Selectors
- # [16:11] <hsivonen> a lot of issues can be traced down to Namespaces sucking in the first place
- # [16:12] <hsivonen> or more precisely, the changing naming from a single string into a pair
- # [16:12] <MikeSmith> and everybody knew it was f*ucked up from teh beginning
- # [16:12] <gsnedders> MikeSmith: :)
- # [16:13] <annevk2> which can be traced back to RDF which is why XML has namespaces
- # [16:13] <hsivonen> indeed
- # [16:13] <annevk2> a Semantic Web seed carefully planted to make the current Web more complicated...
- # [16:14] * Joins: mgrdcm (n=mgrdcm@65.111.247.194)
- # [16:17] <annevk2> http://twitter.com/distobj/status/1462908234 more rambling without reading
- # [16:20] * Quits: mpt (n=mpt@canonical/launchpad/mpt) (Read error: 113 (No route to host))
- # [16:21] <zcorpan> <title role="html:h1">?
- # [16:22] <hsivonen> wouldn't architectural forms be more like <div html="h1">?
- # [16:23] * Joins: mpt (n=mpt@canonical/launchpad/mpt)
- # [16:23] <MikeSmith> ah, more gems
- # [16:24] <MikeSmith> "the IETF tries to master entropy"
- # [16:28] <takkaria> "The correct solution is simple: require namespace well-formedness for HTML 5 documents. Until the spec takes that simple step, ..."
- # [16:30] <jcranmer> where is this?
- # [16:30] <takkaria> http://www.w3.org/Bugs/Public/show_bug.cgi?id=6777
- # [16:30] <Philip`> "The difference between the IETF and the WHATWG is that the WHATWG respects the laws of thermodynamics"
- # [16:31] <MikeSmith> like Christian Democrats asserting that existing social institutions work just fine, but the problem is just that people don't follow the (arbitrary) rules, therefor the solution is to fine ways to compel/force more people to just bend to their will and follow the rules
- # [16:31] <gsnedders> http://www.youtube.com/user/ie8videos
- # [16:32] <MikeSmith> faith-based specification development
- # [16:32] * Quits: maikmerten (n=maikmert@L866e.l.pppool.de) (Remote closed the connection)
- # [16:33] <MikeSmith> maybe they can get some US government funding for their work
- # [16:33] * Quits: mcarter (n=mcarter@adsl-76-204-180-24.dsl.pltn13.sbcglobal.net) (Remote closed the connection)
- # [16:33] * jcranmer wants to smack comment 8
- # [16:35] <MikeSmith> the problem with the whatwg is that it's soft on crime
- # [16:36] <jcranmer> does she realize she's asking the impossible?
- # [16:36] <annevk2> she?
- # [16:38] <gsnedders> A female name, like Anne :P
- # [16:38] <Philip`> jcranmer: Things that are impossible just take longer
- # [16:39] <Lachy> jcranmer, comment 8 where?
- # [16:39] <jcranmer> Elliotte -- names that end in -te tend to be feminine
- # [16:39] <jcranmer> Lachy: 10:27 < takkaria> http://www.w3.org/Bugs/Public/show_bug.cgi?id=6777
- # [16:40] <gsnedders> MikeSmith: Also, to make you happy, I've now almost finished dissertation on Nabokov
- # [16:40] <Philip`> jcranmer: Like "Pete"?
- # [16:40] <jcranmer> I said "tend to be"
- # [16:40] <jcranmer> besides, Pete is usually short for Peter
- # [16:40] <MikeSmith> gsnedders: you would make me really happy if you told me that you burned it after you finally have it done
- # [16:40] <Lachy> jcranmer, Elliotte sounds more like a male name. But that depends how its pronounced
- # [16:41] <MikeSmith> gsnedders: that's what all great creative types do
- # [16:41] <MikeSmith> Sibelius, etc.
- # [16:43] * Joins: smedero (n=smedero@pia145-154.pioneernet.net)
- # [16:43] <Philip`> And there's that guy on Youtube who built an image out of matchsticks and then burnt them all
- # [16:43] * Joins: Hish__ (n=chatzill@mail2.n-e-s.de)
- # [16:43] * Hish__ is now known as Hish
- # [16:45] * Philip` wonders if Elliotte is an unusually rare name, or if elharo just has a lot more page-rank than all the others
- # [16:49] * Joins: billmason1 (n=billmaso@ip247.unival.com)
- # [16:54] * Parts: billmason1 (n=billmaso@ip247.unival.com)
- # [16:55] * Quits: nessy (n=nessy@124-171-14-211.dyn.iinet.net.au) ("This computer has gone to sleep")
- # [16:55] * Parts: noocx (n=noocx@unaffiliated/noocx)
- # [16:56] * Joins: annevk3 (n=annevk@53568A94.cable.casema.nl)
- # [17:01] * Joins: dglazkov (n=dglazkov@nat/google/x-c3dcc3e89c366475)
- # [17:04] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) ("This computer has gone to sleep")
- # [17:04] * Quits: Maurice (n=ano@a80-101-46-164.adsl.xs4all.nl) ("Disconnected...")
- # [17:04] * Quits: annevk2 (n=annevk@53568A94.cable.casema.nl) (Read error: 110 (Connection timed out))
- # [17:06] * Quits: Hish_ (n=chatzill@p5B38301E.dip0.t-ipconnect.de) (Read error: 110 (Connection timed out))
- # [17:07] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [17:13] <zcorpan> hsivonen: you should try to get http://v.nu/
- # [17:15] * Quits: mgrdcm (n=mgrdcm@65.111.247.194)
- # [17:16] <Philip`> If that's taken, try http://ν.nu
- # [17:16] <hsivonen> zcorpan: earlier, when it was up for auction, I decided that it wasn't worth my money (or Mozilla's money) at its price.
- # [17:16] <hsivonen> zcorpan: I forgot what the price was.
- # [17:17] <zcorpan> ok
- # [17:17] * Philip` wonders why .nu
- # [17:17] <hsivonen> zcorpan: also, I didn't like the idea of paying a squatter
- # [17:17] <MikeSmith> hsivonen: I think it was that they auction the single-letter domains, and it starts at 500 euro or so
- # [17:18] <MikeSmith> hsivonen: I don't think it's necessarily a squatter
- # [17:18] <MikeSmith> or maybe it was in this case
- # [17:18] <hsivonen> Philip`: it was the least ugly (the only? I forget) validator.tld domain available
- # [17:19] <hsivonen> Philip`: also, you are supposed to pronounce "nu" like English "new"--not like French "nu" :-)
- # [17:19] <Philip`> Ah, okay
- # [17:19] * Philip` pronounces it like English ν :-)
- # [17:19] <Philip`> (which is like "new")
- # [17:20] <zcorpan> hsivonen: or like swedish "nu" (which means "now") :)
- # [17:20] * Joins: mgrdcm (n=mgrdcm@65.111.247.194)
- # [17:20] * gsnedders pronounces like French "nu" :)
- # [17:20] <Philip`> (at least according to the mathsy people who I've heard use that term)
- # [17:21] <hsivonen> MikeSmith: I think it was more expensive than 500 EUR the last time
- # [17:21] <hsivonen> but like I said, I forgot
- # [17:22] * gsnedders thinks he should start editing his English dissertation
- # [17:22] * gsnedders sighs
- # [17:22] <gsnedders> When will I finish it!?
- # [17:22] <gsnedders> (Likely answer: hours before it has to be sent off.)
- # [17:22] * Joins: myakura (n=myakura@p1063-ipbf3305marunouchi.tokyo.ocn.ne.jp)
- # [17:23] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [17:23] <hsivonen> whoa. Hixie is not on IRC. screen died perhaps?
- # [17:25] <Philip`> gsnedders: Why waste hours of valuable editing time before it has to be sent off?
- # [17:25] <hsivonen> does Chrome support XSLT?
- # [17:26] <hsivonen> according to w3schools, yes
- # [17:26] * hsivonen ducks having used w3schools as a reference
- # [17:26] * Quits: Amorphous (i=jan@unaffiliated/amorphous) (Read error: 104 (Connection reset by peer))
- # [17:26] <zcorpan> hsivonen: w3c can't be wrong
- # [17:28] * Quits: hdh (n=hdh@118.71.76.105) (Remote closed the connection)
- # [17:39] * Joins: Amorphous (i=jan@unaffiliated/amorphous)
- # [17:42] <gsnedders> Wikipedia is so much easier than trying to find information from an entire novel
- # [17:50] * Quits: myakura (n=myakura@p1063-ipbf3305marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
- # [17:51] <Lachy> http://www.quirksmode.org/blog/archives/2009/04/making_time_saf.html
- # [17:53] <hsivonen> perhaps HTML 5 should say that <time> is not safe for historians
- # [17:53] <hsivonen> I thought it already did
- # [17:53] <hsivonen> so more clearly than now
- # [17:54] * Joins: myakura (n=myakura@p1063-ipbf3305marunouchi.tokyo.ocn.ne.jp)
- # [17:56] <Lachy> I thought it did too, but it seems that it isn't clear enough
- # [17:56] <Lachy> I don't understand what PPK means by allowing "arbitrary year-naming systems to be specified"
- # [17:57] * Quits: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com) (Remote closed the connection)
- # [17:57] * Quits: pesla (n=retep@procurios.xs4all.nl) ("( www.nnscript.com :: NoNameScript 4.21 :: www.esnation.com )")
- # [17:57] * Joins: atwilson (n=atwilson@74.125.59.1)
- # [17:59] * Joins: mpilgrim (n=mark@rrcs-96-10-240-189.midsouth.biz.rr.com)
- # [18:00] <zcorpan> seems pointless to have a cutoff date at 1870 or 1918
- # [18:01] * Quits: harig (n=opera@59.90.71.35) (Success)
- # [18:02] <Philip`> Seems pointless to have a cutoff date at 1
- # [18:02] <zcorpan> the point with having it at 1 is that it keeps the syntax simple
- # [18:02] * Joins: onar_ (n=onar@17.226.23.135)
- # [18:04] <Lachy> Philip`, the cut off date was set to 1 because anything else would be competely arbitrary and it made things simple without requiring syntactic changes
- # [18:05] * Joins: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [18:05] * Joins: Maurice (i=copyman@5ED548D4.cable.ziggo.nl)
- # [18:05] <annevk3> times/dates suck
- # [18:06] <Philip`> Lachy: Negative infinity would be less arbitrary than 1
- # [18:07] <Philip`> (I guess 0 would be less arbitrary than 1 too)
- # [18:07] <Lachy> negative dates would require additional syntax and give teh false impression that time is designed for historical dates
- # [18:07] <Lachy> there was no year 0, so we had to pick 1
- # [18:08] <Philip`> Syntax is a pretty trivial issue
- # [18:09] <Lachy> sure, the changes to the algorithm and implementation needed to support dates beginning with a '-' is trivial. But completely unnecessary
- # [18:09] <Philip`> There's a year 0 in the ISO 8601 proleptic Gregorian calendar
- # [18:09] <Philip`> and it's just as meaningful as year 1
- # [18:09] <Lachy> yes, but that's confusing because year 0 in 8601 is 1BCE
- # [18:10] * Philip` doesn't find that confusing :-)
- # [18:10] <Lachy> Philip`, ask some random people whether -0004-01-01 is 3BCE or 4BCE.
- # [18:11] <Lachy> or 5BCE
- # [18:11] <Philip`> Random people probably would never recognise it as a date
- # [18:11] <Lachy> well, HTML authors who are familiar with the ISO-8601 syntax
- # [18:12] <Lachy> i.e. people who use hCalendar
- # [18:13] * Quits: zcorpan (n=zcorpan@pat.se.opera.com)
- # [18:16] * Quits: Hish (n=chatzill@mail2.n-e-s.de) (Read error: 104 (Connection reset by peer))
- # [18:17] * Joins: Hish__ (n=chatzill@mail2.n-e-s.de)
- # [18:17] * Hish__ is now known as Hish
- # [18:21] <Philip`> Lachy: Ask the same people whether 2 September 1666 is 1666-09-02 or 1666-09-12 and they'll probably get it wrong too, but we're not trying to protect them from that
- # [18:22] * Quits: svl (n=chatzill@a194-109-2-36.dmn.xs4all.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
- # [18:23] * Quits: smedero (n=smedero@pia145-154.pioneernet.net)
- # [18:24] <Lachy> Philip`, I'm sure they would get that wrong too. But choosing to explicitly add support for negative years when we know it's problematic is different from supporting pre 16th century dates simply as a result of the syntax
- # [18:24] <Lachy> actually, 17th century, but whatever.
- # [18:26] <krijnh> Are people here okay with me moving the logs over to my new website, http://www.krijn-engineering.nl/ ?
- # [18:27] * Quits: mpt (n=mpt@canonical/launchpad/mpt) (No route to host)
- # [18:28] <Lachy> krijnh, if you set up a redirect, yes
- # [18:29] <Philip`> krijnh: I like your use of a 404 in a <bgsound>
- # [18:29] <krijnh> Philip`: what? Ow, that's a bug then :/ Damnit
- # [18:30] <Philip`> krijnh: You need to be more careful when you're uploading your web site from Word
- # [18:31] <annevk3> you'd think krijnh would know a bit about HTML after logging this channel for two years
- # [18:31] <Lachy> krijnh, wtf? Why have you published a page created with Microsoft Office?
- # [18:32] <krijnh> How do you know it's made with Office?
- # [18:32] * Lachy collects krijnh's whatwg cabal membership card.
- # [18:32] <krijnh> I thought I stripped out that code :/
- # [18:32] <Lachy> look at the source.
- # [18:32] <annevk3> punk'd
- # [18:32] <annevk3> :D
- # [18:33] <Philip`> krijnh: Surely you should write that page with SVG rather than VML
- # [18:34] <krijnh> *sigh*
- # [18:34] * Joins: smedero (n=smedero@pia145-154.pioneernet.net)
- # [18:34] <krijnh> You're way too elitist you!
- # [18:34] <krijnh> Not everybody can handcode HTML :(
- # [18:34] <Philip`> You don't need to handcode it - just use Inkscape
- # [18:35] <Philip`> and then use Amaya to merge it with the HTML
- # [18:35] <krijnh> In fact I did, and after that I copied it to Word, cause the margins were easier to manage in Word
- # [18:35] <annevk3> but Word also kills babies
- # [18:35] <krijnh> The rounded corners were pretty hard to create in Word, so that's why I used Inkscape
- # [18:35] <krijnh> But it's not finished yet
- # [18:36] <krijnh> I think the design should be centered
- # [18:37] <Philip`> Needs more clipart
- # [18:37] <hsivonen> is the use of OOo allowed?
- # [18:38] <krijnh> I'll tell it to my webdesinger
- # [18:39] <hsivonen> I blame all the uppercase tags on my site on OOo.
- # [18:41] <Philip`> You should use Tidy
- # [18:42] <hsivonen> why?
- # [18:42] <Philip`> To make things tidy
- # [18:42] <Philip`> like lowercasing tags
- # [18:43] <hsivonen> the ROI is unclear to me
- # [18:44] <annevk3> ISO 8601 is not Y100K proof
- # [18:45] <Philip`> Human civilisation is not Y100K proof
- # [18:45] <tantek> Lachy, Philip' - supporting day-precise negative years or even years 18th century and earlier is asking for a heap of trouble/complexity
- # [18:45] <tantek> no matter the format
- # [18:45] <annevk3> Philip`, that's unclear
- # [18:46] <Philip`> hsivonen: If you "blame" something for uppercase tags, presumably you dislike uppercase tags, and hence there would be some aesthetic value in lowercasing them
- # [18:46] <Philip`> annevk3: History is probably a good indicator, in the absence of any other evidence
- # [18:46] <annevk3> Philip`, it might be that the calendar format we have is not Y100K proof though
- # [18:47] <Philip`> Not even the Romans lasted a hundred thousand years
- # [18:47] <annevk3> Philip`, Romans are a subset of human civilisation...
- # [18:48] <gsnedders> tantek: I don't think anyone apart from those who are saying we must support such things or else time is pointless thinks that isn't the case
- # [18:49] <tantek> let them see this chart then, and write the *location*-sensitive code themselves: http://en.wikipedia.org/wiki/Gregorian_calendar#Timeline
- # [18:49] <Philip`> tantek: We've already asked for the heap of trouble by trying to support dates at all - if we don't support ancient dates then we have some arbitrary cutoff date instead, which will just cause different kinds of trouble
- # [18:49] <gsnedders> Oh yeah, they've brought up the complexity caused by that, and said we should just provide a means to provide dates in other calendars to circumvent that problem
- # [18:50] <tantek> Philip' no need to have an "arbitrary" cutoff date, simply use 1926 as the cut-off and cite http://en.wikipedia.org/wiki/Gregorian_calendar#Timeline as the justification
- # [18:50] <tantek> and invite counter-proposals with *better* justifications/citations
- # [18:51] <Philip`> tantek: Sounds pretty arbitrary to base it on when Turkey switched calendar
- # [18:51] <tantek> Philip' - it's simply the last country to switch over in that list
- # [18:51] <Philip`> and introduces unnecessary complexity if e.g. a UK-based site wants to mark up people's dates of birth
- # [18:51] <gsnedders> tantek: They have given counter-proposals of allowing an attribute to specify the calendar in use for the date format
- # [18:52] <tantek> thus from 1926 on, you know that Gregorian dates are consistent worldwide
- # [18:52] <hsivonen> Philip`: s/Turkey/Greece/ ?
- # [18:52] <hsivonen> oops.
- # [18:52] * hsivonen read the wrong sentence on wikipedia
- # [18:52] <tantek> gsnedders, based on what evidence that people specify alternative calendars?
- # [18:52] <tantek> RFC2445 similarly has such a field, but in practice it is always GREGORIAN
- # [18:53] <hsivonen> (someone should mention Turkey in the wikipedia prose in addition to the image that doesn't respond to Find on Page)
- # [18:54] * Joins: gmiernicki_ (n=gmiernic@unaffiliated/gmiernicki)
- # [18:55] <Philip`> tantek: If Saudi Arabia decided tomorrow to switch from the Islamic calendar to the Gregorian, should we restrict <time> to use 2009 as the cut-off?
- # [18:56] <annevk3> reading http://tools.ietf.org/html/rfc3339#appendix-A I wonder why some people argue we should simply reference ISO 8601; seems like a disaster
- # [18:56] <tantek> Philip - I call theoretical. E.g.: if aliens showed up tomorrow with a better datetime format, should we switch to use it?
- # [18:57] <annevk3> i think we should form a comittee and compromise between all the various formats
- # [18:58] <gsnedders> tantek: Evidence? They're trolls, they don't need evidence.
- # [18:58] <annevk3> (that RFC syntax also does not allow Y10K)
- # [18:58] <tantek> lacking evidence, trolls can be ignored.
- # [18:59] * Joins: til (n=til@adsl-99-30-230-255.dsl.pltn13.sbcglobal.net)
- # [18:59] * Parts: til (n=til@adsl-99-30-230-255.dsl.pltn13.sbcglobal.net)
- # [19:00] <tantek> annevk3 - in that case, here is my proposed new calendar: http://tr.im/newcal
- # [19:00] <Philip`> tantek: So the cut-off date should be defined as the date that the latest country officially switched to the Gregorian calendar according to Wikipedia (ignoring China which is complex) before 2009?
- # [19:00] * Joins: zdobersek (n=zan@cpe-92-37-64-115.dynamic.amis.net)
- # [19:01] <tantek> Philip', see above, you are free/encouraged to provide "counter-proposals with *better* justifications/citations"
- # [19:01] <tantek> (wow PBWiki 2 forced upgrade (really a downgrade) really screwed up some markup)
- # [19:03] <Philip`> tantek: I counter-propose setting the cut-off date at 1, which is justified by being useful for a wider range of use cases and by being easier to remember and by not depending on quite so many pieces of irrelevant trivia :-)
- # [19:03] <annevk3> of course ECMAScript is even worse as it does not define Date parsing at all :/
- # [19:05] <tantek> Philip - that's a reasonable counterproposal, you may want to add some wording about sticking to ISO8601 and for any dates in locations before they supported the Gregorian calendar, that they MUST use Proleptic Gregorian dates per http://en.wikipedia.org/wiki/Gregorian_calendar#Proleptic_Gregorian_calendar
- # [19:07] * tantek has begun using ordinal ISO8601 dates with a hyphen http://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates for filing/dating/signing purposes.
- # [19:09] <gsnedders> tantek: Why ordinal?
- # [19:09] * Philip` can only use year/month/day, because he can only remember year and his watch only tells him month/day
- # [19:11] <tantek> gsnedders - easier to do day math (how many days between date x and date y), and convert between Gregorian and NewCalendar
- # [19:12] * Quits: weinig (n=weinig@c-67-180-35-124.hsd1.ca.comcast.net)
- # [19:15] * Quits: zdobersek1 (n=zan@cpe-92-37-73-57.dynamic.amis.net) (Read error: 110 (Connection timed out))
- # [19:24] * Joins: Hish__ (n=chatzill@p5B38301E.dip0.t-ipconnect.de)
- # [19:27] * Joins: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [19:31] * Quits: Hish (n=chatzill@mail2.n-e-s.de) (Read error: 60 (Operation timed out))
- # [19:32] * Quits: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [19:33] * Joins: jorlow_ (n=jorlow@nat/google/x-843d38b4f07f4091)
- # [19:35] * Quits: onar_ (n=onar@17.226.23.135) (Read error: 60 (Operation timed out))
- # [19:37] * Joins: maikmerten (n=maikmert@L866e.l.pppool.de)
- # [19:41] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
- # [19:42] * Quits: dolske (n=dolske@firefox/developer/dolske)
- # [19:44] * Joins: Hish___ (n=chatzill@mail2.n-e-s.de)
- # [19:44] * Hish___ is now known as Hish
- # [19:45] * Joins: mlpug (n=mlpug@a91-156-60-13.elisa-laajakaista.fi)
- # [19:45] * Joins: dbaron (n=dbaron@corp-241.mountainview.mozilla.com)
- # [19:48] * Quits: Hish__ (n=chatzill@p5B38301E.dip0.t-ipconnect.de) (Read error: 104 (Connection reset by peer))
- # [19:50] * Joins: Hish___ (n=chatzill@p5B38301E.dip0.t-ipconnect.de)
- # [19:50] * Joins: weinig (n=weinig@17.246.17.225)
- # [19:51] * Joins: onar_ (n=onar@17.244.68.238)
- # [19:54] * Joins: dave_levin (n=dave_lev@72.14.227.1)
- # [20:03] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
- # [20:05] * Quits: Hish (n=chatzill@mail2.n-e-s.de) (Read error: 110 (Connection timed out))
- # [20:06] * Joins: Hixie (i=ianh@trivini.no)
- # [20:09] * Joins: ojan (n=ojan@72.14.229.81)
- # [20:13] * Quits: jwalden (n=waldo@c-24-6-169-169.hsd1.ca.comcast.net) ("->office")
- # [20:16] * Quits: myakura (n=myakura@p1063-ipbf3305marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
- # [20:19] * Quits: onar_ (n=onar@17.244.68.238)
- # [20:37] * Joins: jwalden (n=waldo@corp-241.mountainview.mozilla.com)
- # [20:38] * gmiernicki_ is now known as gmiernicki
- # [20:45] * Joins: Niictar24 (n=ritz@S010600183f550ae0.cg.shawcable.net)
- # [20:49] * Quits: sid0 (n=sid0@unaffiliated/sid0) (Remote closed the connection)
- # [20:49] * Quits: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [20:49] * Quits: Lachy (n=Lachlan@85.196.122.246) ("This computer has gone to sleep")
- # [20:49] * Joins: sid0 (n=sid0@unaffiliated/sid0)
- # [20:50] * Joins: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [20:51] <Hixie> hsivonen: having one cake and eating another kinda misses the point of the expression :-P
- # [20:58] <tantek> Hixie, clearly the expression must have been underspecified.
- # [20:59] <hsivonen> Hixie: do you have an actual solution to the problem (other than "don't implement XPath")?
- # [20:59] <Hixie> i don't understand the problem in enough detail to have an educated suggestion
- # [21:00] <hsivonen> The problem is this:
- # [21:00] <hsivonen> XPath has been exposed to content before the namespace unification
- # [21:00] <hsivonen> therefore, existing expressions expect HTML elements to be in no namespace
- # [21:01] <hsivonen> and XHTML elements to be in http://www.w3.org/1999/xhtml namespace
- # [21:01] <annevk3> arguably XPath for HTML is undefined so we can do whatever we want
- # [21:01] <hsivonen> We'd want to change things so that you can write one kind of new expressions for both *and* keep the old expressions out there matching, too
- # [21:01] * Quits: dolske (n=dolske@firefox/developer/dolske)
- # [21:02] <hsivonen> By default, the syntax people actually use doesn't wildcard the namespace as is the case with Selectors
- # [21:02] <hsivonen> instead, the namespace is fixed to be the 'no namespace'
- # [21:02] <hsivonen> in the XPath data model, a node can be in only one namespace
- # [21:03] <hsivonen> so to support both future expressions that use the http://www.w3.org/1999/xhtml namespace and past expressions that use no namespace, WebKit violates the XPath data model
- # [21:04] <hsivonen> I have tentatively implemented the exact same violation in a patch for Gecko
- # [21:04] <hsivonen> annevk3: we can do whatever we want only if we are OK with breaking existing expressions
- # [21:04] <jgraham> hsivonen: It seems like an entirely reasonable and necessary violation to me
- # [21:05] <jgraham> Since I agree that there is a constraint that existing expressions should not be broken
- # [21:05] <annevk3> hsivonen, I mean we can "violate" XPath because technically it is not a violation as XPath for text/html is not defined
- # [21:05] <hsivonen> arguably, the violation could be adjusted to be a bit more sane if a no-namespace expression no longer matched no-namespace elements
- # [21:05] <hsivonen> when now in WebKit, it matches both no-namespace nodes and HTML nodes
- # [21:06] <hsivonen> annevk3: It's a violation of XPath if you cannot explain the behavior in terms of the XPath data model
- # [21:06] <jgraham> hsivonen: Would there still be a way to match no-nemaspace elements?
- # [21:06] <hsivonen> jgraham: no
- # [21:06] <hsivonen> jgraham: but one might argue no one should have no-namespace nodes in HTML trees anyway
- # [21:07] <annevk3> hsivonen, saying that no namespace and the XHTML namespace are identical for HTML trees is not good enough?
- # [21:07] <jgraham> One could argue lots of things :)
- # [21:07] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
- # [21:08] <hsivonen> annevk3: one might claim that the mapping to XDM not be bijective and that both no-namespace nodes and XHTML nodes flatten into one in XDM
- # [21:08] <jgraham> I think making XPath match either no-namespace or HTML namespace makes a lot of sense.
- # [21:08] <annevk3> XPath is indeed an exception btw, the DOM, Selectors, usually default to any namespace
- # [21:08] <hsivonen> annevk3: but that's still not enough to explain the WebKit behavior in terms of XDM
- # [21:08] <gsnedders> hsivonen: Can it not just be specified in terms of DOM-like interface in HTML 5?
- # [21:08] <hsivonen> annevk3: because a node can have only one namespace in XDM but we want both no-namespace and http://www.w3.org/1999/xhtml-namespace expressions to match against the same nodes
- # [21:09] <gsnedders> i.e., this should follow DOM Level 3 XPath, but HTML elements should behave as if they are in no namespace
- # [21:09] * Quits: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [21:09] <hsivonen> gsnedders: the interface requires an additonal datum that isn't in XDM: the HTMLness flag on owner doc
- # [21:09] <annevk3> "This is a willful violation of the XDM."
- # [21:09] <hsivonen> gsnedders: unless you violate XML to XDM mapping in XHTML, too...
- # [21:09] <gsnedders> IMO XPath is the wrong place to spec this
- # [21:09] * Quits: ap (n=ap@194.154.88.32)
- # [21:09] <annevk3> hsivonen, we can argue that in our XDM no namespace is the XHTML namespace
- # [21:10] <annevk3> hsivonen, that there's no distinction in our XDM
- # [21:10] <annevk3> hsivonen, for the purposes of the XDM, anyway
- # [21:10] <annevk3> hsivonen, but I'm not that interested in spec-lawyering, lets just deal with the fallout in 5 years rather than now :)
- # [21:11] <hsivonen> annevk3: the thing is, in terms of XDM, you only get to flatten things in the tree
- # [21:11] <hsivonen> annevk3: you don't get to flatten things in the expressions themselves
- # [21:13] <jgraham> hsivonen: annevk3 has a point. It is pretty clear what implementations have do do. We should ship the software then spec the required behaviour
- # [21:13] <jgraham> Since it's hard to argue with interoperable running code
- # [21:15] * jgraham wonders if that is somehoe not playing by the rules
- # [21:15] <hsivonen> jgraham: well, as you can see, what I did with code was to do exactly what WebKit does
- # [21:15] <Hixie> doing what webkit does seems like the simplest solution
- # [21:15] <gsnedders> What does WebKit do, exactly?
- # [21:15] <gsnedders> Does it only apply for HTML documents, or for all documents?
- # [21:15] <hsivonen> Hixie: the simpler solution is not to unify HTML and XHTML XDMs
- # [21:16] <hsivonen> Hixie: so that even future XPath would always have to be different for the two
- # [21:16] <hsivonen> Hixie: even if JS and Selectors Just Worked
- # [21:16] <hsivonen> it seems like an undesirable outcome not to be able to write unified XPath for HTML and XHTML, though
- # [21:18] <Hixie> hsivonen: s/simplest/best/ then
- # [21:24] * Joins: maikmerten_ (n=maikmert@La6f1.l.pppool.de)
- # [21:24] * Parts: zdobersek (n=zan@cpe-92-37-64-115.dynamic.amis.net)
- # [21:24] * tantek is a bit amazed.
- # [21:25] <tantek> which spec does Webkit violate? (URL?)
- # [21:25] <tantek> and is there a description for how it violates it, and *why*? (URL aside from #whatwg IRC logs)
- # [21:26] <Hixie> two bonus points to anyone who can guess the [[Class]] name of the element created by document.createElement('keygen')
- # [21:28] <hsivonen> tantek: XPath. and http://www.w3.org/Bugs/Public/show_bug.cgi?id=6777
- # [21:28] <hsivonen> (sorry, gotta run now)
- # [21:28] * gsnedders guesses something totally illogical, thus doesn't guess
- # [21:30] * Quits: mlpug (n=mlpug@a91-156-60-13.elisa-laajakaista.fi) (Remote closed the connection)
- # [21:30] <gsnedders> (Actually, I know it is something totally illogical: if that weren't the case, Hixie wouldn't be asking.)
- # [21:30] <Hixie> you're wrong
- # [21:30] <gsnedders> Sod.
- # [21:30] <Hixie> it is not one thing totally illogical
- # [21:30] <Hixie> it is THREE things totally illogical
- # [21:30] <Hixie> depending on the browser
- # [21:30] <Hixie> HTMLSelectElement, HTMLSpanElement, or HTMLElement
- # [21:30] <annevk3> HTMLElement, HTMLSpanElement, and HTMLSelectElement are not that illogical
- # [21:31] <Hixie> given that keygen should be exposing .disabled, they are
- # [21:31] <annevk3> you win :)
- # [21:32] <annevk3> the tree it gives in the DOM in Firefox/WebKit is also funny
- # [21:33] <Hixie> firefox just treats keygen as a magic macro in the parser, like <isindex>
- # [21:33] * Quits: webben (n=benh@nat/yahoo/x-1cefd596abae6440) (Read error: 110 (Connection timed out))
- # [21:34] * gsnedders realizes he is procrastinating, again
- # [21:34] <Hixie> but webkit actually creates a <select> element even for document.createElement('keygen')
- # [21:34] <annevk3> this will bite hsivonen
- # [21:35] <annevk3> (Opera doesn't actually expose .disabled)
- # [21:35] <gsnedders> (The version of U2's "The Fly" on "U2 Live from Boston" is awesome.)
- # [21:35] <Hixie> oh this is rich! guess what the return value of document.createElement('keygen').childNodes.length is
- # [21:36] <gsnedders> 2?
- # [21:36] <Hixie> per DOM Core, it cannot be anything but 0
- # [21:36] <Hixie> but webkit makes it 3
- # [21:36] <gsnedders> I was only one out!
- # [21:41] * Quits: maikmerten (n=maikmert@L866e.l.pppool.de) (Read error: 110 (Connection timed out))
- # [21:42] * Joins: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [21:46] * Joins: franksalim (n=frank@adsl-76-236-71-187.dsl.pltn13.sbcglobal.net)
- # [21:49] <tantek> hsivonen, thanks for another laugh. your bug report elicited some quite (untintended I'm sure) humorous responses/requests.
- # [21:50] <tantek> e.g. "The specific step I would like to see happen is for HTML 5 to mandate namespace
- # [21:50] <tantek> well-formedness and require draconian error handling." LOL!
- # [21:50] <Hixie> it's not clear to me what elharo meant by that
- # [21:50] <Hixie> the literal interpretation is so obviously not going to work that i can only assume i misunderstood it
- # [21:51] <tantek> also, referring to "text/html" as "one special case" (same comment in bug thread)
- # [21:51] <tantek> it's always nice when people make it quite clear how out of touch they are with real world web development/deployment/maintenance.
- # [21:53] <annevk3> hmm, Opera <keygen> has more event handler attributes so it does have some differences from e.g. <span>
- # [21:54] <Hixie> if you think that's fun you should see roy's comments on ietf-http-wg
- # [21:54] <Hixie> about how web browsers are but a minor part of the http ecosystem and that their needs can basically be dismissed since they're not that important on the global scale of things
- # [21:55] <tantek> Hixie, URL? that sounds worth the read
- # [21:57] * tantek is collecting URLs to expand the documentation of why/how namespaces have failed on the web.
- # [21:57] <annevk3> FYI: http://wiki.whatwg.org/wiki/Namespace_confusion
- # [21:58] <Hixie> threat starting here: http://lists.w3.org/Archives/Public/ietf-http-wg/2009JanMar/thread.html#msg290 continuing here http://lists.w3.org/Archives/Public/ietf-http-wg/2009AprJun/thread.html#msg0
- # [21:58] <Hixie> thread, even
- # [21:58] * Quits: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [21:58] <annevk3> amusing typo
- # [22:01] * Joins: Hish____ (n=chatzill@mail2.n-e-s.de)
- # [22:01] * Hish____ is now known as Hish
- # [22:05] * Joins: aroben (n=aroben@17.246.16.247)
- # [22:06] * Joins: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [22:06] * Joins: Lachy (n=Lachlan@85.196.122.246)
- # [22:08] <tantek> annevk3 - indeed - have seen it and am documenting here (cross-linked) http://microformats.org/wiki/namespaces-considered-harmful
- # [22:08] <tantek> recently found and added this: http://www.xml.com/pub/a/2004/07/21/dive.html
- # [22:09] <tantek> worth reading. note how old it is.
- # [22:11] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
- # [22:12] <Philip`> http://google.com/codesearch/p?hl=en#J7osgojbryc/src/java/org/web3d/x3d/jaxp/X3DSAVAdapter.java&q=X3DSAVAdapter&l=847 is fun
- # [22:13] <Philip`> if(!space.equals("xsd")) etc
- # [22:14] * Joins: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [22:14] <Philip`> (Xj3D is the closest thing to an 'official' implementation of X3D)
- # [22:15] * Quits: maikmerten_ (n=maikmert@La6f1.l.pppool.de) (Client Quit)
- # [22:17] * Quits: franksalim (n=frank@adsl-76-236-71-187.dsl.pltn13.sbcglobal.net) ("Leaving")
- # [22:19] * Quits: jgraham (n=jgraham@web22.webfaction.com) (Read error: 104 (Connection reset by peer))
- # [22:21] * Quits: Hish___ (n=chatzill@p5B38301E.dip0.t-ipconnect.de) (Read error: 110 (Connection timed out))
- # [22:24] * Quits: MikeSmith (n=MikeSmit@EM114-48-222-191.pool.e-mobile.ne.jp) (Read error: 110 (Connection timed out))
- # [22:25] * Quits: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [22:26] * Joins: mstange (n=markus@pD957933F.dip0.t-ipconnect.de)
- # [22:26] * Joins: franksalim (n=frank@adsl-76-236-71-187.dsl.pltn13.sbcglobal.net)
- # [22:33] * Quits: dolske (n=dolske@firefox/developer/dolske)
- # [22:34] * Quits: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [22:36] * Quits: roc (n=roc@121-72-216-45.dsl.telstraclear.net)
- # [22:36] * Joins: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [22:40] * Joins: dolske (n=dolske@corp-241.mountainview.mozilla.com)
- # [22:40] <tantek> Philip', nice example. I've added it to http://microformats.org/wiki/namespaces-considered-harmful#namespaced_content_has_failed . I wonder how many such examples could find by using google code search to look for similar string prefix literal instances/compares with common namespace prefix usages.
- # [22:45] * Joins: jgraham (n=jgraham@web22.webfaction.com)
- # [22:46] * Quits: zalan (n=kvirc@catv-80-99-193-98.catv.broadband.hu) ("KVIrc 3.4.0 Virgo http://www.kvirc.net/")
- # [22:49] * Joins: sayrer (n=chatzill@user-0ccevcf.cable.mindspring.com)
- # [22:49] * Quits: aroben (n=aroben@unaffiliated/aroben)
- # [22:51] <annevk3> we should somehow deal with the JavaScript versioning issue
- # [22:51] <annevk3> https://bugzilla.mozilla.org/show_bug.cgi?id=487070
- # [22:51] <annevk3> otherwise it starts leaking all over the place
- # [22:51] * Quits: davidb (n=davidb@mozca02.ca.mozilla.com)
- # [22:52] <annevk3> (I don't have a proposal :/)
- # [22:52] * Joins: davidb (n=davidb@mozca02.ca.mozilla.com)
- # [22:52] * Quits: davidb (n=davidb@mozca02.ca.mozilla.com) (Remote closed the connection)
- # [22:55] <gsnedders> To what extent is form@method followed?
- # [22:55] <gsnedders> Are only certain methods allowed?
- # [22:56] <jgraham> annevk3: Yeah, we totlly need a good solution for that
- # [22:56] * Joins: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com)
- # [22:57] * Joins: aroben (n=aroben@unaffiliated/aroben)
- # [22:59] <jgraham> It seems like in the short term Mozilla could do something like mozImportScripts but even ES5 vs ES3 needs a solution
- # [22:59] * Quits: adambeynon (n=adambeyn@93-97-200-127.zone5.bethere.co.uk)
- # [23:01] <annevk3> gsnedders, yes, with GET as fallback
- # [23:01] <gsnedders> That's what I thought.
- # [23:01] <annevk3> gsnedders, RTFS
- # [23:01] <gsnedders> annevk3: That doesn't mean we have interop on it now.
- # [23:02] * Quits: pauld (n=pauld@host81-151-61-163.range81-151.btcentralplus.com) ("Gone for a burton")
- # [23:02] <gsnedders> (I don't care about TFS, I care about what is shipping)
- # [23:02] * jgraham was reading S as "Source"
- # [23:02] <annevk3> hehe, my answer works either way :p
- # [23:03] <jgraham> annevk3: You work for a proprietary browser company :)
- # [23:03] <annevk3> gsnedders, I suspect they follow the spec, but you'd have to test to be sure
- # [23:03] * Quits: pmuellr (n=pmuellr@nat/ibm/x-30d5065d2396a60e)
- # [23:04] <annevk3> jgraham, I didn't say it was easy :p
- # [23:05] * Quits: jwalden (n=waldo@corp-241.mountainview.mozilla.com) ("->S")
- # [23:05] <jgraham> step 1: accept a job as a developer
- # [23:05] * Joins: aroben_ (n=aroben@unaffiliated/aroben)
- # [23:05] * Joins: slightlyoff (n=slightly@nat/google/x-4c631cb770f13cf7)
- # [23:06] <jgraham> step 2: leave
- # [23:06] <jgraham> step 3: accept a MS job that gives you access to the IE source
- # [23:06] <jgraham> Seems easier to just ask really
- # [23:06] <sayrer> tantek, you might want to look at <o:p> for your namespace document
- # [23:13] * Quits: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [23:14] * Joins: jwalden (n=waldo@corp-241.mountainview.mozilla.com)
- # [23:14] <sicking> Hixie, re doc.write()
- # [23:14] <sicking> Hixie, that is not compatible with what at least firefox does. In a fairly catastrophicly incompatible way
- # [23:15] <sicking> Hixie, is that what IE does?
- # [23:17] <Hixie> sicking: as far as i can tell, the spec matches what Firefox does
- # [23:17] <Hixie> sicking: and what IE does
- # [23:17] * Joins: aroben__ (n=aroben@unaffiliated/aroben)
- # [23:17] <Hixie> sicking: (with some minor edge case exceptions that are unlikely to be hit in practice)
- # [23:17] <sicking> Hixie, in firefox if you use document.write while the document is still loading, from for example a setTimeout, we do not wipe the current doc
- # [23:18] <sicking> Hixie, we insert into the stream, whereever that happens to be
- # [23:19] <Hixie> ah you are correct, i just looked at my notes
- # [23:19] <Hixie> firefox does something ridiculous (rewind the tokeniser if half-way through a token, etc)
- # [23:20] <Hixie> so i dismissed firefox's behavior as something nobody would rely on
- # [23:20] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 110 (Connection timed out))
- # [23:20] <sicking> Hixie, indeed. Firefox is a guaranteed race condition
- # [23:20] <sicking> Hixie, does IE wipe the doc?
- # [23:20] <Hixie> yes
- # [23:20] <Hixie> http://www.hixie.ch/tests/adhoc/dom/level0/write/007.html
- # [23:20] <Hixie> http://www.hixie.ch/tests/adhoc/dom/level0/write/008.html
- # [23:21] <sicking> Hixie, so i'm a little scared to implement that, given how catastrophically things fail for gecko-specific content
- # [23:21] <sicking> Hixie, would prefer to make it a no-op instead
- # [23:22] <Hixie> i'll make this a no-op if you're willing to change the inner-window outer-window thing to what IE does. :-)
- # [23:22] <sicking> what does IE do?
- # [23:22] <Hixie> throw an exception if you run script in a window that's not active
- # [23:22] <sicking> not always
- # [23:23] <Hixie> my comment wasn't really a serious proposal
- # [23:23] <sicking> i know
- # [23:23] <Hixie> my point is that we can't just never do what IE does
- # [23:23] <sicking> agreed, but don't we have a lot of IE cruft in there?
- # [23:23] <Hixie> not really
- # [23:23] <sicking> like innerHTML, offsetLeft, XMLHttpRequest
- # [23:23] <Hixie> only innerHTML of those is in HTML5
- # [23:24] <Hixie> and it's specced to match firefox
- # [23:24] <Hixie> not IE
- # [23:24] <Hixie> i don't really see why doing it the way IE does here is a bad thing
- # [23:24] <Hixie> it seems to be what everyone else does
- # [23:24] * Quits: aroben_ (n=aroben@unaffiliated/aroben) (Read error: 110 (Connection timed out))
- # [23:24] <Hixie> even firefox does it in most cases, just not timeouts
- # [23:25] <Hixie> e.g. from an onload="" it'll blow away the doc, no?
- # [23:25] <sicking> anything after DOMContentLoaded
- # [23:25] <sicking> not at all based on where it's called from, only when
- # [23:25] <sicking> so onmouseout, xhr.readystatechange, setInterval, etc, are all the same
- # [23:26] <sicking> i would be fine with trying to do what the spec says though
- # [23:26] <Hixie> if there is actual content that this breaks, then i'd be glad to consider it, but realistically speaking i imagine other browsers would be just as scared of making it a no-op
- # [23:26] * Joins: aroben (n=aroben@unaffiliated/aroben)
- # [23:26] <sicking> it seems very unlikely that someone relies on current behavior, other than through bugs
- # [23:26] <sicking> true
- # [23:26] <sicking> sure, lets do this and if we find pages that break we can reeval
- # [23:27] * Joins: aroben_ (n=aroben@unaffiliated/aroben)
- # [23:27] <Hixie> cool
- # [23:28] * Quits: Maurice (i=copyman@5ED548D4.cable.ziggo.nl) ("Disconnected...")
- # [23:29] * Joins: arun_ (n=arun@corp-243.mountainview.mozilla.com)
- # [23:31] * Joins: bgalbraith (n=bgalbrai@corp-241.mountainview.mozilla.com)
- # [23:36] * Joins: kinetik (n=kinetik@121.98.132.55)
- # [23:40] * Joins: mpt (n=mpt@client-81-97-41-181.cht-bng-012.adsl.virginmedia.net)
- # [23:43] * Joins: billmason1 (n=billmaso@ip247.unival.com)
- # [23:45] * Quits: aroben (n=aroben@unaffiliated/aroben) (Read error: 110 (Connection timed out))
- # [23:54] * Quits: aroben__ (n=aroben@unaffiliated/aroben) (Connection timed out)
- # [23:54] * Quits: tndH (n=Rob@james-baillie-pc083-014.student-halls.leeds.ac.uk) (Read error: 104 (Connection reset by peer))
- # [23:57] <Hixie> hsivonen is going to love <keygen>. </sarcasm>
- # [23:59] * gsnedders takes a deep breath
- # Session Close: Tue Apr 07 00:00:00 2009
The end :)