Options:
- # Session Start: Tue Apr 29 00:00:00 2008
- # Session Ident: #whatwg
- # [00:03] * Quits: qwert666_ (n=qwert666@acap154.neoplus.adsl.tpnet.pl) ("Leaving")
- # [00:04] <fantasai> Hixie: note that the Web Forms spec explicitly requires Unicode case-folding.
- # [00:04] <Hixie> yeah wf2 is old and crusty
- # [00:04] <fantasai> if you're not sure you want that (seemed from your message to hsivonen that you didn't) you should probably remove it
- # [00:09] * Quits: tantek_ (n=tantek@c-67-161-5-143.hsd1.ca.comcast.net) (Read error: 110 (Connection timed out))
- # [00:14] * Joins: KevinMarks (n=KevinMar@nat/google/x-7e677a7e395d2999)
- # [00:21] <htmlfivedotnet> Hixie: Did you just read a blog post about why html5 is great for blogs, thus leading to your comment? I just wonder if it was my recent post out of some strange coincidence
- # [00:22] <Hixie> fantasai: wf2 will be merged with html5 in due course, until then it's frozen
- # [00:22] <Hixie> htmlfivedotnet: no idea which blog it was
- # [00:22] * Quits: tndH (i=Rob@83.100.253.115) ("ChatZilla 0.9.81-rdmsoft [XULRunner 1.8.0.9/2006120508]")
- # [00:23] * Quits: tantek (n=tantek@c-67-161-5-143.hsd1.ca.comcast.net)
- # [00:29] * Quits: weinig (n=weinig@17.203.15.172)
- # [00:32] * Joins: weinig (n=weinig@17.203.15.172)
- # [00:37] <annevk> no gta4 for me tonight
- # [00:38] <annevk> line was just too long
- # [00:38] <Hixie> amazon is shipping it to me tomorrow
- # [00:38] <Hixie> it's already on a truck somewhere
- # [00:38] <Philip`> annevk: Was there a midnight release?
- # [00:38] <annevk> yeah
- # [00:39] <annevk> but i was too late because i was going to see a movie and since i have to get up early tomorrow waiting until 2AM or something didn't seem like a feasible plan
- # [00:39] <Philip`> Was that like the PS3 release where everybody was beating each other up to get ahead in the line, or was it like the Wii release where everyone make cookies for each other?
- # [00:40] <annevk> it was a normal line
- # [00:40] <Philip`> Oh, how unexciting
- # [00:40] * Joins: jruderman (n=jruderma@guest-226.mountainview.mozilla.com)
- # [00:40] <Hixie> what's the origin of a Document whose URI is about:blank?
- # [00:42] <annevk> the Access-Control-Origin is "null"
- # [00:43] <annevk> unless it's inside some <iframe> I suppose and it gets the origin from somewhere else
- # [00:43] <Hixie> that's what i mean
- # [00:43] <jwalden> that doesn't jibe with HTML5's origin for about:blank-spawned windows
- # [00:44] <Hixie> html5 doesn't define about:blank origin at the moment
- # [00:44] <Hixie> there's a big red box for that case
- # [00:44] <Hixie> i just added it
- # [00:44] <annevk> I suppose it's kind of hard to get an about:blank and initiate some kind of cross-site request without having it associated with some other origin :)
- # [00:44] <jwalden> oh, I'm thinking of javascript:
- # [00:44] <Hixie> on another note, i just defined how document.domain works
- # [00:44] <jwalden> ooh
- # [00:44] * jwalden looks
- # [00:44] * Parts: fantasai (i=fantasai@connectionreset.info) ("laters")
- # [00:45] <Hixie> search for "Effective script origin" for the juicy bits
- # [00:45] <Hixie> and if you have a better term than "effective script origin", let me know
- # [00:47] <jwalden> what happened to the multipage version? the URL seems awol right now
- # [00:47] <jwalden> http://www.whatwg.org/specs/web-apps/current-work/multipage/
- # [00:48] <annevk> changelog: http://html5.org/tools/web-apps-tracker?from=1501&to=1502
- # [00:48] <Hixie> uh
- # [00:48] <Hixie> dunno
- # [00:48] <Hixie> will try to fix
- # [00:50] * Quits: weinig (n=weinig@17.203.15.172)
- # [00:50] <jwalden> I think the port part doesn't match what Moz does (it uses the port, but I'm not sure how), but I don't think anyone will care
- # [00:51] <jwalden> we do have a bug against this, tho, in that we allow "example.org/foo/bar/baz" I think right now, being equivalent to "example.org" :-(
- # [00:51] <Hixie> as far as i can tell, mozilla ignores the port once you set document.domain, no?
- # [00:52] <jwalden> ...I'm not sure
- # [00:52] <Hixie> yeah i decided to err on the side of safety with not allowing path components
- # [00:52] <Hixie> since webkit doesn't do it
- # [00:52] <jwalden> I can't see a good reason to allow them
- # [00:52] <Hixie> so i'm guessing it's not needed for web compat
- # [00:52] <jwalden> I'm sort of scared that we do, actually
- # [00:52] <Hixie> heh
- # [00:52] <Hixie> i know the feeling :-)
- # [00:52] * Joins: heycam (n=cam@clm-laptop.infotech.monash.edu.au)
- # [00:52] <Hixie> multipage is fixed
- # [00:53] <jwalden> the port thing I know we were using the value with a SetHostPort call at one time, until we discovered that method wasn't implemented and reverted to string-buildup
- # [00:53] <jwalden> but how a specified port affects anything, I don't know
- # [00:53] <jwalden> it might not
- # [00:54] <Hixie> oh you mean specifying it in document.domain?
- # [00:54] <Hixie> interesting
- # [00:54] <Hixie> from what i saw of the webkit source, that definitely isn't supported over there
- # [00:55] <Hixie> i think that for the purposes of XHR, 'origin' is now well-defined in all cases except about:blank iframes
- # [00:55] <Hixie> and windows
- # [00:55] <annevk> I recall we have some dragons around there too. I should probably get Hallvord to review...
- # [00:56] <jwalden> is "manual override" yet to be defined?
- # [00:56] <Hixie> no
- # [00:56] <Hixie> it's just a value
- # [00:57] <Hixie> that isn't a port number
- # [00:57] <jwalden> should define "same" then with respect to it
- # [00:57] <Hixie> "manual override" is the same as "manual override" but not anything else
- # [00:57] <Hixie> do i need to say that?
- # [00:57] <jwalden> er
- # [00:57] <jwalden> I'm stupid
- # [00:57] <jwalden> ignore me!
- # [00:57] <Hixie> heh
- # [00:57] <Hixie> :-/
- # [00:58] * jwalden is forgetting about symmetry
- # [00:58] <Hixie> jwalden: on another note, you sent feedback saying that document.open() doesn't reset the origin, but as far as i can tell, the spec doesn't let you call .open() unless your origin is the same anyway
- # [00:58] <Hixie> although now i guess the origin could be changed by a script that was document.domain'ed the same
- # [00:59] * jwalden shall have to re-page that in
- # [00:59] <Hixie> but i don't think it really matters much in that case...
- # [00:59] <Hixie> i can just reply to the mail if you'd rather
- # [01:01] <jwalden> yeah, looking back I'm not sure what I was thinking there
- # [01:02] <Hixie> k
- # [01:02] <Hixie> i'll reply saying i'm ignoring you, and if you or someone else decides i'm wrong, i'm sure you or they will reply :-)
- # [01:03] <jwalden> there was a funky postMessage test sicking requested that was that situation, and which my initial implementation tickled, but I can't rationalize the question given that and how things should actually work otherwise
- # [01:04] <Hixie> did we decide if MessageEvent.origin should be in punycode (like document.domain) or fully Unicode?
- # [01:05] <jwalden> I wanted fully Unicode
- # [01:05] <annevk> no
- # [01:05] * Quits: KevinMarks (n=KevinMar@nat/google/x-7e677a7e395d2999) ("The computer fell asleep")
- # [01:05] <jwalden> but no, no decision
- # [01:05] <jwalden> wait
- # [01:05] * jwalden looks again
- # [01:05] <annevk> punycode is also consistent with Access-Control-Origin (though that's mostly because of HTTP limitations)
- # [01:06] <jwalden> we restrict document.domain to only be settable to puncode?
- # [01:06] <jwalden> I don't really like that
- # [01:06] <Hixie> well, the spec as written now does
- # [01:06] <Hixie> i guess i haven't checked browsers
- # [01:06] * jwalden sees what Moz does with IDN
- # [01:07] <jwalden> I think we accept IDN
- # [01:07] <Hixie> yup
- # [01:07] <Hixie> looks like you do, from testing on ☺.damowmow.com
- # [01:07] <Hixie> oh actually i was testing safari
- # [01:07] <Hixie> so i guess i should change the spec
- # [01:08] <jwalden> http://mxr.mozilla.org/mozilla/source/dom/tests/mochitest/dom-level0/idn_child.html?force=1
- # [01:08] <jwalden> we allow IDN
- # [01:08] <Hixie> ok will change that too
- # [01:09] <jwalden> cool
- # [01:09] <Hixie> it just returns punycode though
- # [01:09] <Hixie> which was really my question
- # [01:09] <jwalden> I think I'd prefer returning Unicode, but I don't know what we do now
- # [01:10] <jwalden> I think what we return depends on whether the TLD in question is whitelisted :-(
- # [01:10] <Hixie> well i'll let y'all work it out while i actually get my ass to work
- # [01:10] <Hixie> since i just noticed it's past 4pm
- # [01:10] <Philip`> Hixie: Why is it not currently working?
- # [01:10] <jwalden> and I very much prefer Unicode to an unpredictable value
- # [01:11] <jwalden> and Unicode seems the most consistent choice here
- # [01:11] <annevk> just need a tool so that authors can convert between the two easily
- # [01:12] <jwalden> and at runtime as well, then; requiring authors in the long term to have to think about punycode doesn't seem very nice
- # [01:13] <annevk> right
- # [01:16] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [01:32] * Joins: sverrej (n=sverrej@89.10.27.86)
- # [01:41] <Hixie> unicode it shall be
- # [01:43] * Joins: csarven (n=csarven@modemcable130.251-202-24.mc.videotron.ca)
- # [01:52] * Quits: eseidel (n=eseidel@nat/google/x-8c1c8ec49311f4bb)
- # [01:53] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
- # [01:53] * Joins: eseidel (n=eseidel@nat/google/x-b503c00ad9cac225)
- # [02:08] * Joins: othermaciej_ (n=mjs@17.255.97.59)
- # [02:15] * Quits: othermaciej (n=mjs@17.203.15.181) (Read error: 104 (Connection reset by peer))
- # [02:15] * Joins: othermaciej (n=mjs@17.203.15.181)
- # [02:18] * Joins: webben (n=benh@81.168.10.233)
- # [02:19] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [02:20] * Joins: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [02:21] * Joins: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [02:26] * Quits: othermaciej_ (n=mjs@17.255.97.59) (Read error: 104 (Connection reset by peer))
- # [02:26] * Joins: othermaciej_ (n=mjs@17.255.97.59)
- # [02:36] * Quits: webben (n=benh@81.168.10.233) (Read error: 110 (Connection timed out))
- # [02:37] * Quits: shepazu (n=schepers@218.246.74.90) (Read error: 104 (Connection reset by peer))
- # [02:37] * Quits: othermaciej_ (n=mjs@17.255.97.59)
- # [02:38] * Joins: othermaciej_ (n=mjs@17.255.97.59)
- # [02:38] * Joins: shepazu (n=schepers@218.246.74.90)
- # [02:39] * Joins: othermaciej__ (n=mjs@17.203.15.181)
- # [02:39] * Quits: othermaciej (n=mjs@17.203.15.181) (Read error: 104 (Connection reset by peer))
- # [02:40] * Quits: jwalden (n=waldo@STRATTON-SEVEN-TWENTY-ONE.MIT.EDU) ("ChatZilla 0.9.80-rdmsoft [XULRunner 1.8.0.9/2006120508]")
- # [02:43] * Parts: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
- # [02:45] * Joins: weinig (n=weinig@17.203.15.172)
- # [02:48] * Quits: eseidel (n=eseidel@nat/google/x-b503c00ad9cac225)
- # [02:59] * othermaciej__ is now known as othermaciej
- # [02:59] * Quits: othermaciej_ (n=mjs@17.255.97.59) (Connection timed out)
- # [03:19] * Quits: didymos (i=jho@rapwap.razor.dk) (Remote closed the connection)
- # [03:19] * Joins: didymos (i=jho@rapwap.razor.dk)
- # [03:23] * Quits: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [03:31] * Quits: ianloic (i=yakk@glub.dreamhostps.com) (Read error: 110 (Connection timed out))
- # [03:32] * Joins: ianloic (i=yakk@glub.dreamhostps.com)
- # [03:43] * Joins: shepazutoo (n=schepers@218.246.74.90)
- # [03:43] * Quits: shepazu (n=schepers@218.246.74.90) (Read error: 104 (Connection reset by peer))
- # [03:45] * Quits: shepazutoo (n=schepers@218.246.74.90) (Client Quit)
- # [03:50] * Quits: Camaban (n=alee@77-103-78-94.cable.ubr08.hawk.blueyonder.co.uk) ("Ex-Chat")
- # [04:35] * Joins: shepazu (n=schepers@218.246.74.90)
- # [05:09] * Quits: andersca (n=andersca@nat/apple/x-02e2ee7dbdb73799)
- # [05:20] * Disconnected
- # [05:20] * Attempting to rejoin channel #whatwg
- # [05:20] * Rejoined channel #whatwg
- # [05:20] * Topic is 'WHATWG (HTML5) -- http://www.whatwg.org/ -- Logs: http://krijnhoetmer.nl/irc-logs/ -- Please leave your sense of logic at the door, thanks!'
- # [05:20] * Set by gsnedders on Tue Dec 18 21:41:19
- # [05:30] * Joins: RCanine (n=RCanine@cpe-76-168-1-38.socal.res.rr.com)
- # [05:35] * Quits: shepazu (n=schepers@218.246.74.90)
- # [05:37] * Quits: krijn (n=krijnhoe@ktk.xs4all.nl) (Read error: 110 (Connection timed out))
- # [05:39] * Quits: othermaciej (n=mjs@17.203.15.181) (Read error: 110 (Connection timed out))
- # [05:43] * Quits: heycam (n=cam@clm-laptop.infotech.monash.edu.au) (Remote closed the connection)
- # [05:46] * Joins: heycam (n=cam@clm-laptop.infotech.monash.edu.au)
- # [06:09] * Quits: RCanine (n=RCanine@cpe-76-168-1-38.socal.res.rr.com) (Read error: 104 (Connection reset by peer))
- # [06:17] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [06:41] * Joins: virtuelv_ (n=virtuelv@46.80-203-100.nextgentel.com)
- # [06:43] * Quits: virtuelv (n=virtuelv@46.80-203-100.nextgentel.com) (Read error: 110 (Connection timed out))
- # [06:51] * Joins: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [06:51] * Quits: tantek (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net) (Read error: 104 (Connection reset by peer))
- # [06:54] * Quits: csarven (n=csarven@modemcable130.251-202-24.mc.videotron.ca) ("http://www.csarven.ca/")
- # [07:16] * Joins: aaronlev (n=chatzill@pD9E4E109.dip.t-dialin.net)
- # [07:47] * Joins: maikmerten (n=merten@ls5laptop14.cs.uni-dortmund.de)
- # [07:49] * Quits: aaronlev (n=chatzill@pD9E4E109.dip.t-dialin.net) (Read error: 110 (Connection timed out))
- # [07:50] * Joins: KevinMarks (n=KevinMar@c-98-207-134-151.hsd1.ca.comcast.net)
- # [07:51] * Quits: aroben (n=aroben@unaffiliated/aroben)
- # [07:59] * Quits: virtuelv_ (n=virtuelv@46.80-203-100.nextgentel.com) ("Ex-Chat")
- # [08:02] * Quits: roc (n=roc@202.0.36.64)
- # [08:04] * Quits: heycam (n=cam@clm-laptop.infotech.monash.edu.au) (Read error: 110 (Connection timed out))
- # [08:12] * Joins: webben (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [08:17] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
- # [08:20] * Joins: heycam (n=cam@203-217-88-240.dyn.iinet.net.au)
- # [08:24] * Quits: webben (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [08:41] * Quits: weinig (n=weinig@17.203.15.172)
- # [08:43] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
- # [09:09] * Joins: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
- # [09:19] * Quits: MacDome (n=eric@c-24-130-11-246.hsd1.ca.comcast.net)
- # [09:40] * Joins: zokka (n=SAMUS@88-106-204-148.dynamic.dsl.as9105.com)
- # [09:40] <zokka> hello
- # [09:42] <Hixie> is either of adam barth or collin jackson here?
- # [09:43] <Hixie> i have some thoughts on the frame navigation policy
- # [09:43] <Hixie> in particular, i just noticed that while window.open() in html5 currently implements the child-restriction policy, the window.frames[] API is completely origin-blocked, so you can't navigate frames anyway
- # [09:44] <zokka> hello hixie i am new
- # [09:44] <Hixie> hello
- # [09:44] <Hixie> welcome :-)
- # [09:44] <zokka> Don't fully understand wot you are saying though
- # [09:45] <zokka> came here to make some suggestions though doesnt seem to be anyone here
- # [09:45] <zokka> apart from you that is :D
- # [09:46] <hsivonen> zokka: if you want to suggest something, it's good that Hixie is here
- # [09:46] <zokka> does anyone bother to use <ins> and <del>
- # [09:46] <Hixie> a few
- # [09:46] <Hixie> not many
- # [09:46] <Hixie> <ins> slightly more than <del> iirc
- # [09:46] <zokka> <del> is nasty
- # [09:46] <hsivonen> and even then mostly inline
- # [09:46] <zokka> i was thinking
- # [09:47] <zokka> why not have a new attribute for things like <p>
- # [09:47] <zokka> called datetime
- # [09:47] <Hixie> yeah, we considered that
- # [09:47] <Hixie> but since people use <ins> and <del> so rarely it seemed pointless to work on making them mildly better :-)
- # [09:48] <zokka> i thought they may use it more if it was on <p> most ppl use that and you can use browser features to highlight changes
- # [09:48] <zokka> it seems nasty to add changes using <ins>
- # [09:48] <zokka> maybe for a few words
- # [09:49] <zokka> well i am just an amateur :D
- # [09:49] <Hixie> i think if people wanted the feature, they'd use <ins> and complain
- # [09:49] <Hixie> instead of just not using <ins>
- # [09:49] <Hixie> that seems to be the way web authors work :-)
- # [09:50] <zokka> yep
- # [09:50] <zokka> some ppl just use <div> most the time :D
- # [09:51] <zokka> i hate the <object> tag i hear they are replacing it with <video>, <audio> etc
- # [09:51] <othermaciej> Hixie: they are more likely to be around at more normal-person times in PST
- # [09:52] <Hixie> i'll just bring it up when i have lunch with collin on wednesday i guess
- # [09:52] <Hixie> zokka: they is us :-)
- # [09:53] <zokka> liek i say i am an amateur but i've had real trouble using object to insert video it's just so complicated plus firefox crashes alot
- # [09:54] <zokka> for instance there are like 2-3 ways to link to the same video arnt there
- # [09:56] <zokka> stop me if i am wrong :D
- # [09:58] <othermaciej> Hixie: can't window.open() bypass the origin-blockedness of window.frames[] by targetting a deep subframe by name?
- # [09:58] <othermaciej> or is that just an issue for a generic frame name lookup algorithm which avoids this?
- # [09:58] <othermaciej> (not up to speed on relevant parts of the spec)
- # [09:59] <othermaciej> Hixie: btw I'm not sure it's good for document.domain changes not to propagate to about:blank children (I am guessing that is the only upshot of copying instead of referencing the parent/opener's origin)
- # [10:00] <othermaciej> or at least, I don't think propagating it is a security risk, and it avoids the chance that you will accidentally make your own about:blank subframes inaccessible
- # [10:00] <othermaciej> (I guess technically you can change their document.domain first, then your own)
- # [10:00] <hsivonen> zokka: markup up the kind of edits that ins/del don't cover gets complex fast for little gain
- # [10:00] <Hixie> othermaciej: yes, window.open() right now is subject to the child-navigation policy (i'm changing it to ancestor as we speak)
- # [10:00] <Hixie> othermaciej: but .frames[] right now (which is what they use in all their examples) is completely blocked in the spec (which is an oversight(
- # [10:01] <Hixie> ))
- # [10:01] <zokka> yes hsivonen i agree with that i was wondering why do you use <object data="video.avi" instead of src?
- # [10:01] <Hixie> i guess .frames[]-type access needs to be limited to the descendant-navigation policy too
- # [10:01] <Hixie> which is subtly different from same-origin
- # [10:01] <Hixie> and will be quite exciting
- # [10:02] <othermaciej> I hate subtle security policies
- # [10:03] <Hixie> yeah
- # [10:03] <Hixie> i guess the other option is to make .frames[] always accessible and limit .location
- # [10:03] <zokka> em could you guys link to wot you are saying so i can go over it at a later date please?
- # [10:04] <Hixie> http://www.whatwg.org/specs/web-apps/current-work/
- # [10:05] <zokka> kk thxs:|
- # [10:06] * Quits: maikmerten (n=merten@ls5laptop14.cs.uni-dortmund.de) ("Verlassend")
- # [10:07] <hsivonen> zokka: data on object is a weird thing from a decade ago. my guess is that whoever wrote the proposal for <object> back then wasn't too concerned about consistency with the rest of HTML
- # [10:08] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 110 (Connection timed out))
- # [10:08] * Quits: jruderman (n=jruderma@guest-226.mountainview.mozilla.com)
- # [10:10] <othermaciej> Hixie: why can't frames just be subject to the same-origin check?
- # [10:12] <Hixie> i thought that broke the web
- # [10:12] <Hixie> am i wrong?
- # [10:13] <Hixie> i'd love to leave it if that's an option
- # [10:13] * Quits: Dashiva (i=Dashiva@wikia/Dashiva) (Read error: 104 (Connection reset by peer))
- # [10:13] * Joins: Dashiva (i=Dashiva@116.84-48-60.nextgentel.com)
- # [10:15] <othermaciej> oh, I don't actually know, I thought you knew a specific reason it broke the web
- # [10:15] <othermaciej> lemme see what we do for it
- # [10:16] <othermaciej> we just make frames a self-reference, not checked for security
- # [10:16] <othermaciej> not sure if we check access to the contents for same-origin
- # [10:16] <Hixie> yeah when i say frames[] i mean the window [[Get]]-by-index behaviour
- # [10:19] <othermaciej> yeah index access is done without security check, not sure why, but I assume there is a reason
- # [10:19] <othermaciej> (if only copying other browsers)
- # [10:19] <othermaciej> that sucks
- # [10:19] * Joins: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [10:20] <Hixie> no check at all?
- # [10:20] <Hixie> how about .location.href ?
- # [10:21] <othermaciej> read access to that is checked (probably not write access since you can assign to location without same-origin priveleges)
- # [10:21] <Hixie> sounds like you're vulnerable to the 1999 Georgi Guninski citibank attack then
- # [10:22] <othermaciej> well I am just reading the code here, not testing
- # [10:22] <Hixie> whereby a site can just walk the frame hierarchy and set a subframe to point to another site and spoof a password form
- # [10:22] <othermaciej> but I will check that out
- # [10:22] <othermaciej> Hixie: ah, I am wrong
- # [10:23] <othermaciej> we do our usual cross-frame navigation check (different from same-origin check) on assigning location.href
- # [10:23] * Joins: ROBOd (n=robod@89.122.216.38)
- # [10:24] <Hixie> ah interesting
- # [10:24] <Hixie> so you can walk the hierarchy
- # [10:24] <Hixie> but not assign
- # [10:24] <Hixie> so you could postMessage() to any frame
- # [10:25] * Quits: zokka (n=SAMUS@88-106-204-148.dynamic.dsl.as9105.com) (Read error: 110 (Connection timed out))
- # [10:28] <othermaciej> that appears to be the case (again not tested)
- # [10:29] * Joins: zokka (n=SAMUS@88-106-206-225.dynamic.dsl.as9105.com)
- # [10:29] <Hixie> interesting
- # [10:29] * Quits: Lachy (n=Lachlan@85.196.122.246) (Read error: 110 (Connection timed out))
- # [10:30] <Hixie> that's easier to specify i think
- # [10:30] <Hixie> so good
- # [10:30] <zokka> i wont bother you guys too much but how come on http://www.w3schools.com/tags/html5_embed.asp it says the embed tag is new?
- # [10:30] <zokka> i thought it was a old netscape tag
- # [10:31] <Hixie> they probably mean new to the standards
- # [10:31] <Hixie> html4 didn't have it
- # [10:31] <Hixie> even though browsers supported it
- # [10:31] <zokka> i thought they where getting rid of it
- # [10:32] <othermaciej> browsers getting rid of it? no
- # [10:33] <zokka> just that there are all these ppl trying to use complicated work around for <object?
- # [10:33] <zokka> so they didnt have to use <embed> because it wasnt standards compliated
- # [10:34] * Joins: Lachy (n=Lachlan@pat-tdc.opera.com)
- # [10:35] <Hixie> zokka: yeah
- # [10:35] <Hixie> zokka: we figured we should just make it standards compliant :-)
- # [10:35] <zokka> cool :D
- # [10:35] <zokka> because i hate it when the workarounds are so complicated or use aload of javascript
- # [10:36] <zokka> anyway the <video> tag should be nice i recon this time around the browser makers will get it right
- # [10:37] <zokka> i recon ie will have perfect implatation next time round :D
- # [10:41] * Joins: jruderman (n=jruderma@c-67-180-174-213.hsd1.ca.comcast.net)
- # [10:46] * Joins: webben (n=benh@nat/yahoo/x-4d1af1508c746615)
- # [10:52] <Hixie> othermaciej: what else do you allow cross-origin access to? .top? .parent?
- # [10:53] <othermaciej> Hixie: this gives a first-order approximation: http://trac.webkit.org/browser/trunk/WebCore/page/DOMWindow.idl?format=txt
- # [10:53] <Hixie> thx
- # [10:53] <othermaciej> (methods and attribtues marked DoNotCheckDomainSecurity)
- # [10:54] <othermaciej> but magical lookup rules (indexed or named lookup) are handled in custom code
- # [10:54] <othermaciej> and some objects that are accessible restrict all of their own methods and properties
- # [10:54] <othermaciej> and some things have custom implementations that do their own security checks
- # [10:54] <Hixie> what's [CheckNodeSecurity]?
- # [10:54] <Hixie> wow, you allow a lot more than html5 does
- # [10:55] <othermaciej> I am not sure those are all essential to allow
- # [10:55] <othermaciej> CheckNodeSecurity does a security check based on the containing frame elemet's window's origin instead of this window's origin
- # [10:55] <Hixie> lordy
- # [10:56] <othermaciej> (I think there might be other similar uses, like contentDocument on frames)
- # [10:56] * Joins: sverrej (n=sverrej@pat-tdc.opera.com)
- # [11:10] * Quits: zokka (n=SAMUS@88-106-206-225.dynamic.dsl.as9105.com) (Read error: 110 (Connection timed out))
- # [11:12] * Joins: maikmerten (n=merten@ls5laptop14.cs.uni-dortmund.de)
- # [11:23] * Joins: aaronlev (n=chatzill@nat/ibm/x-ca01ab763667d24f)
- # [11:26] <hsivonen> annevk: I'm going to make an XTech slide about Validator.nu server side being ready for AC
- # [11:26] <hsivonen> annevk: are there any experimental browser builds I should mention?
- # [11:49] * Quits: aaronlev (n=chatzill@nat/ibm/x-ca01ab763667d24f) (Read error: 104 (Connection reset by peer))
- # [12:08] * Joins: qwert666 (n=qwert666@acap154.neoplus.adsl.tpnet.pl)
- # [12:24] * Quits: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [12:28] * Joins: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
- # [12:30] * Quits: heycam (n=cam@203-217-88-240.dyn.iinet.net.au) ("bye")
- # [12:32] * Joins: aaronlev (n=chatzill@nat/ibm/x-6fb940eae8b47b53)
- # [12:34] * Joins: heycam (n=cam@203-217-88-240.dyn.iinet.net.au)
- # [12:38] * Joins: zcorpan_ (n=zcorpan@pat-tdc.opera.com)
- # [12:41] * Quits: aaronlev (n=chatzill@nat/ibm/x-6fb940eae8b47b53) (Read error: 104 (Connection reset by peer))
- # [12:54] * Joins: virtuelv (n=virtuelv@213.236.208.247)
- # [13:02] <Hixie> i'm having issues with the spec gen script not handling the size of the spec
- # [13:02] <Hixie> sigh
- # [13:05] <zcorpan_> Hixie: drop the mathml entities :P
- # [13:05] <Hixie> heh
- # [13:05] <Hixie> i'm not sure they're in the spec as the spec gen sees it
- # [13:05] <Lachy> Hixie, are the problems just performance issues, or is it breaking in other ways?
- # [13:06] <Hixie> it's sometimes dying half way
- # [13:07] * Quits: webben (n=benh@nat/yahoo/x-4d1af1508c746615)
- # [13:07] <Philip`> Sounds like a compelling reason to split HTML5 into multiple specifications
- # [13:08] <zcorpan_> sounds like a compelling reason to roll your own spec gen
- # [13:08] <Lachy> Hixie, just pull out the sections you're planning to drop, like data templates
- # [13:09] <Philip`> Lachy: They're not in the HTML5 spec
- # [13:09] <Lachy> were the already removed?
- # [13:09] <Philip`> Oh wait
- # [13:09] <Philip`> I'm confused and wrong
- # [13:10] <Philip`> and thinking of repetition templates instead
- # [13:10] <Philip`> so please choose to ignore me
- # [13:10] <Lachy> I already ignore you :-P
- # [13:10] <Hixie> yeah i should drop the data templates stuff
- # [13:10] <Hixie> was gonna wait until i dropped repetition, though
- # [13:12] <Philip`> Hixie: "The owner is URI that redirected to the javascript: URI." - s//the /
- # [13:13] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
- # [13:13] <Hixie> fixed
- # [13:14] <Hixie> woot
- # [13:14] <Hixie> i have dealt with all the feedback i know of on origin
- # [13:15] <Lachy> awesome. what's next?
- # [13:16] <Hixie> dunno. any requests?
- # [13:16] <Hixie> i was thinking of adding text to canvas
- # [13:16] <Philip`> Fix <font> and style? :-)
- # [13:17] <Hixie> Philip`: how good are canvas implementations at the moment? good enough to handle more new features, or are they still quite buggy?
- # [13:17] <Lachy> oh yeah, drop the font element already
- # [13:17] <Hixie> yeah i could do font and style=""
- # [13:17] <Hixie> was probably gonna wait til i got to the rendering section though
- # [13:17] <Hixie> which is like the last priority other than references
- # [13:17] <Philip`> <font> seems to cause a number of people to think badly of HTML5
- # [13:18] <Hixie> they'll live
- # [13:18] <Philip`> so it seems kind of sensible to try fixing it now, rather than leaving people with an incorrect impression of how HTML5 is likely to end up
- # [13:18] <Hixie> i guess
- # [13:21] <Hixie> the problem with the style="" attribute is that i don't have a solution
- # [13:22] <Hixie> other than the concept of a less good conformance level, which as hsivonen points out, is a bad idea for oh so many reasons
- # [13:23] <Philip`> Hixie: Now that everyone's doing getImageData/putImageData, I think they've all got pretty much all the features implemented, and I'm not currently aware of any particular major bugs (except that ImageData probably varies quite a bit, and I don't know how large the compatible intersection is, since I haven't really looked at any of this since last year)
- # [13:23] <Hixie> oh, really
- # [13:23] <Hixie> interesting
- # [13:24] <Hixie> so do you think we could add text without compromising existing bug fixing efforts?
- # [13:24] <zcorpan_> Hixie: just allow style='' everywhere but say that the document must still be usable when all style=''s are ignored
- # [13:24] <Hixie> zcorpan_: i guess we could do that
- # [13:24] <Philip`> (There's loads of tiny bugs, like handling Infinity/NaN inconsistently, but I'm guessing they don't affect interoperability urgently)
- # [13:24] <Lachy> Hixie, what's the reasons for not making style="" conforming?
- # [13:25] <Hixie> Lachy: same reasons for not making <Font> conforming
- # [13:25] <Lachy> is it just because it's non-semantic?
- # [13:25] <Lachy> and presentational
- # [13:25] <Hixie> it being non-semantic isn't the actual reason, but it's the proxy for the reason that people can rally behind, yes
- # [13:26] <Hixie> it's the same reason <font size=3 color=blue> is bad
- # [13:26] <Hixie> it can't be repurposed, it's not maintainable, it is media-specific, etc
- # [13:26] <Lachy> right
- # [13:28] <zcorpan_> i think <font color> isn't technically bad as <b>/<i>-like annotations, although people hate <font> so i guess it makes sense to not allow it
- # [13:28] <Hixie> as far as i can tell, i have no <font> element feedback
- # [13:28] <Philip`> Hixie: That probably depends on how much time implementors will have before their next releases - it seems like most will have around a year or so, which sounds like it wouldn't be rushing much, so I'd expect it wouldn't impact much on bug-fixing of old features
- # [13:28] <Hixie> and only 4 e-mails on style="", one of which i just wrote (containing zcorpan_'s suggestion above)
- # [13:29] <Philip`> But I know very little about browser development cycles, so I could be totally wrong :-)
- # [13:29] <Hixie> Philip`: k
- # [13:30] <Hixie> i guess i should sleep now anyway
- # [13:31] * Philip` thinks style="" makes things easier to maintain rather than harder, because he can look at the element he wants to change and then change it and then it works, instead of having to follow invisible back-references into stylesheets and then hoping it won't have side-effects on anything else in the site
- # [13:32] <Philip`> (...assuming the alternative to style="" is using selectors in stylesheets to associate styles and elements)
- # [13:36] <Philip`> Hixie: http://xhtml.com/en/future/x-html-5-versus-xhtml-2/#x5-uncool-font has <font> element feedback - it's just not cool
- # [13:36] <Hixie> heh
- # [13:36] <Hixie> the maintenance thing is fine if that's the only element with that style
- # [13:37] <Hixie> but that's only going to be the case on small pages that aren't part of big sites, etc
- # [13:41] <zcorpan_> news-like announcements often have use-once style
- # [13:41] <zcorpan_> that's where i've used style='' before
- # [13:43] <Philip`> <input size> is used when people want one-off presentational attributes
- # [13:44] <Philip`> (though HTML5 says they can't write that, so they'd have to do it pointlessly verbosely like <input style="width:10em">)
- # [13:44] <zcorpan_> (css also doesn't have a proper alternative to size='')
- # [13:45] <Philip`> and it doesn't make sense to extract that into an external stylesheet since it's different for every form you make (depending on how much text you expect people to enter into the form)
- # [13:48] <Philip`> Big sites aren't all homogeneous, and they're still going to have lots of one-off bits of code
- # [13:48] <Philip`> so it's nice to have some way to handle that, and just put up with people who abuse it and cause maintenace pain to themselves :-)
- # [13:49] <Philip`> s//n/
- # [13:50] <zcorpan_> Philip`: yeah
- # [13:55] <Lachy> I need to write an example script using .querySelector(). Does anyone have any suggestions for a trivial, yet somewhat practical example I could write?
- # [13:58] <Philip`> Lachy: document.querySelector('img[src$=".png"]').forEach(function (img) { img.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+img.src+')' });
- # [13:58] <Philip`> Maybe not quite trivial enough...
- # [13:59] <Philip`> Do you want something that's not just getElementById or getElementsByClassName?
- # [13:59] <Lachy> yeah, and preferably something that would be relevant to Opera's implementation
- # [14:00] <Lachy> an IE hack unfortnately isn't
- # [14:00] * Joins: Camaban (n=alee@77-103-78-94.cable.ubr08.hawk.blueyonder.co.uk)
- # [14:00] <zcorpan_> Philip`: that would be pointless since only ie6 needs the filter and ie6 doesn't support querySelector
- # [14:00] <Philip`> zcorpan_: Yeah, I guess that's a minor problem with that example
- # [14:02] * Joins: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [14:02] <Philip`> I suppose document.querySelector('input[required][value=""]) isn't that useful in Opera either :-(
- # [14:02] <Lachy> it would help if the editor of the selectors api spec hadn't filled it with such contrived examples!
- # [14:03] <Philip`> The spec must have been written for certain use cases, so why not just use those? :-)
- # [14:03] <Hixie> i try to base the examples in html5 on what people mention as their use cases
- # [14:03] <Lachy> I have one using input elements for checkboxes: "input:checked"
- # [14:03] <zcorpan_> perhaps querySelector can be used for aria stuff
- # [14:05] <zcorpan_> although most authors don't know about aria so it would likely just be a distraction
- # [14:05] <Lachy> yeah, I guess I could take a look at previous mailing list discussions about it to see what came up.
- # [14:05] <Philip`> var tds = document.getElementById('graphdata').querySelector('td:last-of-type'); tds.forEach(function (td) { var value = td.textContent; td.innerHTML = '<img src="bar.png" style="width:'+value+'px" alt="'+value+'">' });
- # [14:06] <Philip`> (for converting a numerical table into a graphicalised version)
- # [14:06] <Lachy> or look at what people are using the equivalent JQuery APIs for, but it's kind of hard to ask google "Show me all pages that use the JQuery API script"
- # [14:06] <Philip`> (Maybe Opera is too rubbish to have forEach, though)
- # [14:07] <Philip`> Lachy: It would be convenient if you had a collection of loads of web pages that you could grep
- # [14:08] * Joins: webben (n=benh@nat/yahoo/x-3ae6fa182275a252)
- # [14:09] <Lachy> Philip`, that wouldn't work anyway, since the .forEach method isn't implemented on NodeLists. It would need to be converted to an array first.
- # [14:10] <Philip`> Lachy: http://philip.html5.org/misc/jquery-pages.txt has some that match /<script[^>]*jquery/
- # [14:10] <Philip`> Lachy: Oh, maybe Array.forEach(tds, function ...) then
- # [14:14] <Lachy> Philip`, thanks. That's a useful list.
- # [14:15] <Philip`> I have another four hundred if that list is too short :-)
- # [14:15] * krijnh also has some jQuery examples, if needed :)
- # [14:16] <Philip`> jQuery: More popular than <cite>!
- # [14:17] <Philip`> That'd be a great marketing slogan
- # [14:17] <Philip`> Woah, it's even more popular than <csobj>
- # [14:17] * Philip` waits for webgrep to finish making the list grow
- # [14:18] <Lachy> krijnh, I'm sure they'll be useful for me in the future
- # [14:18] <Lachy> what's <csobj>?
- # [14:18] * Quits: svl (n=me@ip565744a7.direct-adsl.nl) ("And back he spurred like a madman, shrieking a curse to the sky.")
- # [14:18] <Philip`> Some GoLive component thing
- # [14:25] <Hixie> <font> is gone
- # [14:25] <Hixie> style="" is global
- # [14:32] * Quits: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [14:35] <hsivonen> Hixie: there should be <fond> feedback from me asking for <font color> to become conforming
- # [14:36] <Hixie> ah
- # [14:36] <Hixie> might have gotten filed elsewhere
- # [14:39] <Philip`> Fond feedback?
- # [14:40] <hsivonen> font
- # [14:41] * Joins: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [14:41] * Quits: virtuelv (n=virtuelv@213.236.208.247) (Read error: 110 (Connection timed out))
- # [14:42] <Philip`> Is the empty string a valid CSS declaration?
- # [14:42] * Quits: roc (n=roc@121-72-166-56.dsl.telstraclear.net) (Client Quit)
- # [14:42] <Hixie> yes
- # [14:42] <Philip`> Ah, good
- # [14:43] <Philip`> Lachy: http://philip.html5.org/misc/jquery-pages.txt has a load more now
- # [14:44] <Lachy> Philip`, thanks. But I've got a good example now
- # [14:46] <Hixie> nn
- # [14:46] <Philip`> jQuery: More popular than <caption>!
- # [14:48] <zcorpan_> Philip`: makes sense, <caption> is pretty boring
- # [14:49] * Joins: virtuelv (n=virtuelv@pat-tdc.opera.com)
- # [14:49] <Philip`> More popular than <blink> too, and that isn't pretty boring
- # [14:50] <zcorpan_> perhaps we should make <blink> animate so that it looks just as cool as jquery animations, to get some competition
- # [14:52] <Philip`> It'll have to go a long way to catch up with <marquee>
- # [14:58] <zcorpan_> <marquee>: More popular than jQuery!
- # [15:23] * Quits: virtuelv (n=virtuelv@pat-tdc.opera.com) (Read error: 110 (Connection timed out))
- # [15:29] * Quits: zcorpan_ (n=zcorpan@pat-tdc.opera.com) (Read error: 104 (Connection reset by peer))
- # [15:29] * Joins: zcorpan_ (n=zcorpan@pat-tdc.opera.com)
- # [15:31] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net) (Read error: 104 (Connection reset by peer))
- # [15:31] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [15:32] * Joins: virtuelv (n=virtuelv@213.236.208.247)
- # [15:40] <zcorpan_> html5-elements r28: -<font>, +style, +onstorage, +data-*
- # [15:40] <Philip`> HTML5: Infinitely more attributes than HTML4!
- # [15:42] * Joins: tndH_ (i=Rob@83.100.253.115)
- # [15:42] * tndH_ is now known as tndH
- # [15:48] * Quits: virtuelv (n=virtuelv@213.236.208.247) ("Ex-Chat")
- # [15:55] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net) (Read error: 110 (Connection timed out))
- # [16:09] <hsivonen> Philip`: that was already true with <embed>
- # [16:09] <hsivonen> twice infinitely more attributes than HTML4!
- # [16:12] <Philip`> hsivonen: But <embed> wasn't in HTML4
- # [16:13] <zcorpan_> Philip`: that's why it was already true with <embed>...
- # [16:13] <Philip`> Huh?
- # [16:13] <Philip`> Oh
- # [16:13] <Philip`> I thought you meant <embed> in HTML4
- # [16:14] <Philip`> hsivonen: To avoid causing me confusion and suffering, I think you should have said "twice infinitely more attributes than the previous revision of HTML5!"
- # [16:15] <Philip`> Oh wait
- # [16:15] <Philip`> Now I'm just totally wrong
- # [16:15] <Philip`> hsivonen: You were right all along
- # [16:16] * Philip` misread "twice infinitely more than" as "twice as many as the infinity that were in"
- # [16:17] * Joins: MikeSmith (n=MikeSmit@58.157.21.205)
- # [16:19] <zcorpan_> Hixie: the spec says "The declarations specified must be parsed", not "The attribute's value must be parsed", which might imply that there is some preprocessing (like, splitting on ;) to get the declarations
- # [16:20] <zcorpan_> s/;)/';')/
- # [16:22] * Joins: billmason (n=billmaso@ip227.unival.com)
- # [16:26] <htmlfivedotnet> ooh. only one failure in the html5lib now. is that what you guys are all getting? I can't wait to play around with it
- # [16:27] * Joins: phsiao (n=shawn@nat/ibm/x-c5510d126da8267e)
- # [16:30] <zcorpan_> Hixie: how about the icons used at http://html5.org/tools/web-apps-tracker ?
- # [16:31] <Philip`> zcorpan_: What licensing do they have?
- # [16:31] <zcorpan_> Philip`: dunno
- # [16:43] * Joins: myakura (n=myakura@p1215-ipbf3008marunouchi.tokyo.ocn.ne.jp)
- # [16:46] <takkaria> Hixie: how does the PDF version of the spec get generated?
- # [16:48] <Philip`> takkaria: Probably a bit like http://hsivonen.iki.fi/printing-wa10/
- # [16:51] * Joins: qwert666_ (n=qwert666@acaz66.neoplus.adsl.tpnet.pl)
- # [16:54] * Joins: svl (n=me@ip565744a7.direct-adsl.nl)
- # [16:59] * Quits: Lachy (n=Lachlan@pat-tdc.opera.com) ("This computer has gone to sleep")
- # [16:59] * Quits: maikmerten (n=merten@ls5laptop14.cs.uni-dortmund.de) (Remote closed the connection)
- # [17:01] * Quits: zcorpan_ (n=zcorpan@pat-tdc.opera.com) (Read error: 110 (Connection timed out))
- # [17:05] * Quits: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com) (Remote closed the connection)
- # [17:06] * Joins: hasather (n=hasather@90-231-107-133-no62.tbcn.telia.com)
- # [17:08] * Quits: qwert666 (n=qwert666@acap154.neoplus.adsl.tpnet.pl) (Success)
- # [17:13] * Quits: sverrej (n=sverrej@pat-tdc.opera.com) (Read error: 110 (Connection timed out))
- # [17:14] * Joins: aroben (n=aroben@c-71-58-57-150.hsd1.pa.comcast.net)
- # [17:14] * Quits: mpt (n=mpt@canonical/launchpad/mpt) (Read error: 113 (No route to host))
- # [17:17] * Joins: mpt (n=mpt@canonical/launchpad/mpt)
- # [17:36] * Quits: mpt (n=mpt@canonical/launchpad/mpt) (Read error: 113 (No route to host))
- # [17:38] <hsivonen> hmm. interesting. although methods beat switch on the PPC client VM, switch does indeed beat methods on the x86 client VM!
- # [17:39] * Joins: mpt (n=mpt@canonical/launchpad/mpt)
- # [17:44] * Quits: KevinMarks (n=KevinMar@c-98-207-134-151.hsd1.ca.comcast.net) ("The computer fell asleep")
- # [17:48] <htmlfivedotnet> hsivonen: wider pipelines to process more at once for the ppc (all methods), whereas the x86 barrels through the narrow switches at full megahertz speed
- # [17:49] <htmlfivedotnet> i bet that compiled in 64 bit, the x86 would be right in line on methods
- # [18:02] * Quits: heycam (n=cam@203-217-88-240.dyn.iinet.net.au) (Read error: 101 (Network is unreachable))
- # [18:02] <Philip`> hsivonen: I have Java on x86_64 in case it'd help to test that too
- # [18:03] <Philip`> (It seems to say I only have the server VM and not client, though...)
- # [18:04] <hsivonen> Philip`: http://about.validator.nu/htmlparser/perf2.zip
- # [18:04] * Joins: heycam (n=cam@210-84-41-23.dyn.iinet.net.au)
- # [18:04] <hsivonen> Philip`: the client VM is not available for x86_64
- # [18:05] * Quits: myakura (n=myakura@p1215-ipbf3008marunouchi.tokyo.ocn.ne.jp) ("Leaving...")
- # [18:06] <Philip`> hsivonen: Ah, that would explain it
- # [18:06] <hsivonen> Hixie: I think making PCDATA-data and non-PCDATA-data states different states is likely to be a big perf win
- # [18:07] <Philip`> Hmm, my results might be a little suspect since three quarters of my CPU is running theorem provers
- # [18:07] <hsivonen> I think I'm going to break the data state into four states: PCDATA, RCDATA, CDATA and escape flag
- # [18:08] <hsivonen> I also think I should break the escape flag state further to avoid a look-back buffer
- # [18:08] <hsivonen> Hixie: you are cheating whenever you spec lookahead or lookback :-)
- # [18:09] <Philip`> hsivonen: He's optimising for readability, and trusting implementors to optimise for performance :-)
- # [18:10] * Joins: jdandrea (n=jdandrea@ool-18e42ae7.dyn.optonline.net)
- # [18:10] <hsivonen> Philip`: does your OCaml parser generator generate 6 states for the data state?
- # [18:21] * Joins: weinig (n=weinig@adsl-76-203-73-197.dsl.pltn13.sbcglobal.net)
- # [18:24] <Philip`> hsivonen: No
- # [18:24] <Philip`> hsivonen: I do have code that approximately splits each state up into lots of (state, content-model-flag) stats, like in http://canvex.lazyilluminati.com/misc/states2.png
- # [18:25] <Philip`> but haven't put that into the code generation part, because it gets a little messier when the tree constructor can change content-model-flag without the tokeniser's knowledge
- # [18:26] <Philip`> hsivonen: Running for 1 minute on Wikipedia's Main_Page from a few days ago, on Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode), for XML/methods/switch I get 53280/27395/27294
- # [18:27] <Philip`> so there's no real different between methods and switch
- # [18:27] <Philip`> *difference
- # [18:29] <Philip`> s/stats/states/ five minutes ago
- # [18:30] <Philip`> Oh, also I haven't put it into the code generation part because I'd need to write a better optimiser for the conditions (e.g. "contentModelFlag == PCDATA" is trivially false in the DataState-RCDATA state)
- # [18:30] <Philip`> (but some things are less trivial)
- # [18:34] * Joins: KevinMarks (n=KevinMar@72-254-96-1.client.stsn.net)
- # [18:56] <Philip`> hsivonen: Also, 5 minute runs on the same machine/page give pretty much the same results (XML=269592, methods=137637, switch=132836)
- # [19:08] * Quits: weinig (n=weinig@adsl-76-203-73-197.dsl.pltn13.sbcglobal.net)
- # [19:08] * Quits: Camaban (n=alee@77-103-78-94.cable.ubr08.hawk.blueyonder.co.uk) (Connection timed out)
- # [19:10] * Quits: jdandrea (n=jdandrea@ool-18e42ae7.dyn.optonline.net) ("ciao")
- # [19:11] * Joins: dbaron (n=dbaron@corp-241.mountainview.mozilla.com)
- # [19:22] * Quits: KevinMarks (n=KevinMar@72-254-96-1.client.stsn.net) ("The computer fell asleep")
- # [19:42] * Quits: jruderman (n=jruderma@c-67-180-174-213.hsd1.ca.comcast.net)
- # [19:44] * Joins: virtuelv (n=virtuelv@46.80-203-100.nextgentel.com)
- # [19:51] * Joins: KevinMarks (n=KevinMar@72-254-96-1.client.stsn.net)
- # [19:53] * Joins: Camaban (n=alee@77-103-78-94.cable.ubr08.hawk.blueyonder.co.uk)
- # [19:57] * Joins: BenMillard (i=cerbera@cpc1-flee1-0-0-cust285.glfd.cable.ntl.com)
- # [19:59] * Quits: dbaron (n=dbaron@corp-241.mountainview.mozilla.com) ("8403864 bytes have been tenured, next gc will be global.")
- # [20:00] * Joins: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [20:07] * Joins: jruderman (n=jruderma@guest-226.mountainview.mozilla.com)
- # [20:22] * Quits: tantek_ (n=tantek@adsl-63-195-114-133.dsl.snfc21.pacbell.net)
- # [20:22] <hsivonen> Philip`: I think the content model flag should become a return value from the tree builder
- # [20:23] <hsivonen> Philip`: thanks for the x86_64 results
- # [20:23] <hsivonen> x86 server: http://pastebin.ca/1002005
- # [20:50] <virtuelv> MikeSmith: are there still lightning talk spots open?
- # [20:52] <MikeSmith> virtuelv, yeah
- # [20:55] <virtuelv> I certainly hope the talks don't have to be on topic and serious?
- # [20:56] <MikeSmith> the more fun, the better
- # [20:57] <virtuelv> Yeah, I'm struggling between "The political importance of lolcats" and "My name's relevance to «A boy named Sue»"
- # [21:04] <hsivonen> virtuelv: but lolcats are seriously important for political dissenters
- # [21:04] * Quits: KevinMarks (n=KevinMar@72-254-96-1.client.stsn.net) ("The computer fell asleep")
- # [21:05] <virtuelv> hsivonen: yes, and so are their internet siblings, the motivational posters
- # [21:06] <virtuelv> MikeSmith: key point is, I'm interested, but I have no topic yet
- # [21:09] * Joins: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [21:24] <hsivonen> Hixie: are JS engines now required to track the origin or string objects for data URIs?
- # [21:24] <hsivonen> do they do that already or is this something new?
- # [21:25] <othermaciej> hsivonen: right now Gecko and the latest WebKit give frames loaded from data: URIs no security authority
- # [21:26] <othermaciej> not sure what IE does
- # [21:26] <othermaciej> did Hixie invent something more complicated?
- # [21:28] * Joins: sverrej (n=sverrej@89.10.27.86)
- # [21:28] <hsivonen> othermaciej: if I understood correctly, Hixie made data URIs inherit origin from the document/script where the string was minted
- # [21:29] <hsivonen> it's possible that I didn't understand correctly
- # [21:29] <othermaciej> oh that's not gonna fly
- # [21:29] <othermaciej> inheriting origin from the document/script that initiated the location change might do
- # [21:30] <othermaciej> but is somewhat complicated and unlike the handling for javascript: URIs for instance
- # [21:30] <othermaciej> (sadly I don't think data: can safely use either the javascript: or the about:blank security policy)
- # [21:33] <hsivonen> Philip`: it appears that your state analysis doesn't know that content model is always PCDATA when endTag returns
- # [21:35] <Philip`> hsivonen: That's the part that's impossible to determine when you've only got the tokeniser algorithm
- # [21:36] <Philip`> since it's the tree constructor that sets it back to PCDATA, if I remember correctly
- # [21:36] <Philip`> I should just hard-code that fact into the state-expander algorithm, and then it'd probably work alright
- # [21:37] <hsivonen> I think the various flavors of the data state should be individual states and startTag should be allowed to return the next state it wants
- # [21:38] <Philip`> That sounds like a sensible way to model it
- # [21:40] <Philip`> (I've kind of ignored the whole tokeniser / tree constructor interaction for now, and treated them as isolated algorithms)
- # [21:40] <Philip`> (I could just convert them into a single state machine)
- # [21:42] <Philip`> (37 tokeniser states * 19 tree constructor states isn't really that many)
- # [21:43] <Philip`> (* ~4 for the content model flag)
- # [21:44] <Philip`> (* 2 for the escape flag)
- # [21:44] <Philip`> (Okay, maybe I don't actually want to end up with five thousand functions in my parser)
- # [21:44] * Quits: othermaciej (n=mjs@dsl081-048-145.sfo1.dsl.speakeasy.net)
- # [21:47] * Joins: cgriego (n=cgriego@out-02.hotels.com)
- # [21:48] * Parts: cgriego (n=cgriego@out-02.hotels.com)
- # [21:54] <hsivonen> Philip`: at first I thought that it would be smart to inline tree contructor into tokenizer, but it really isn't
- # [21:56] <Philip`> hsivonen: Why isn't it?
- # [21:56] <hsivonen> Philip`: the tree constructor methods are large and have more than one call site
- # [21:56] <Philip`> (I'm guessing it'd just be a huge amount of code duplication)
- # [21:57] * Parts: BenMillard (i=cerbera@cpc1-flee1-0-0-cust285.glfd.cable.ntl.com)
- # [21:59] <hsivonen> Hmm. I already have a concept of return state for entity consumption
- # [21:59] <hsivonen> I could use the same mechanism for rememberig CDATA vs. RCDATA when in escape
- # [22:24] * Joins: weinig (n=weinig@17.203.15.172)
- # [22:24] * Joins: dbaron (n=dbaron@corp-241.mountainview.mozilla.com)
- # [22:26] <jgraham__> hsivonen: How do you deal with gathering all the tokens till the next non character token when parsing (R)CData? Do you have a special loop just for doing that or does it all go through the main loop somehow?
- # [22:26] * Quits: roc (n=roc@121-72-166-56.dsl.telstraclear.net)
- # [22:27] * jgraham__ has to fix html5lib's liberal xml parser for cases like <script /><head> but really doesn't want to
- # [22:27] <jgraham__> (I want to not have a liberal xml parser based on html5lib. Unfortunately it is actually used in the wild)
- # [22:28] <jgraham__> s/?$/? or something else?/
- # [22:34] <hsivonen> jgraham__: I have a variable that holds the position of the first character in a run of text and when a text run ends, I call a flushing method
- # [22:35] <hsivonen> jgraham__: when I skip over data that may turn out to be text, I either store it in a buffer just in case or have static buffers with certain magic strings
- # [22:36] * Quits: ROBOd (n=robod@89.122.216.38) ("http://www.robodesign.ro")
- # [22:36] <hsivonen> nn
- # [22:37] <jgraham__> goodnight
- # [22:39] * Quits: webben (n=benh@nat/yahoo/x-3ae6fa182275a252)
- # [22:41] * aroben is now known as aroben|meeting
- # [22:42] * Quits: weinig (n=weinig@17.203.15.172)
- # [22:45] * Joins: jgraham_ (n=james@81-86-210-188.dsl.pipex.com)
- # [22:48] * Quits: jgraham_ (n=james@81-86-210-188.dsl.pipex.com) (Client Quit)
- # [22:51] * Joins: jgraham_ (n=james@81-86-210-188.dsl.pipex.com)
- # [22:54] * Quits: sverrej (n=sverrej@89.10.27.86) (Read error: 110 (Connection timed out))
- # [22:55] * Quits: jgraham_ (n=james@81-86-210-188.dsl.pipex.com) (Client Quit)
- # [22:55] * Joins: KevinMarks (n=KevinMar@72-254-96-1.client.stsn.net)
- # [22:59] <Hixie> takkaria: by a script that often gets killed by the kernel, running every day around 6am
- # [23:00] <Hixie> hsivonen: no, there shouldn't be any tracking of origin for data: URIs beyond the point at which it is used... did I make it more complicated by accident?
- # [23:01] * Joins: weinig (n=weinig@17.203.15.172)
- # [23:02] * Joins: tantek (n=tantek@70-14-56-64.area3.spcsdns.net)
- # [23:02] * Quits: weinig (n=weinig@17.203.15.172) (Client Quit)
- # [23:02] * Quits: tantek (n=tantek@70-14-56-64.area3.spcsdns.net) (Read error: 104 (Connection reset by peer))
- # [23:05] * Quits: phsiao (n=shawn@nat/ibm/x-c5510d126da8267e)
- # [23:09] * Joins: othermaciej (n=mjs@17.203.15.181)
- # [23:15] * Joins: sverrej (n=sverrej@89.10.27.86)
- # [23:19] * Joins: othermaciej_ (n=mjs@17.255.107.127)
- # [23:24] * Joins: roc (n=roc@202.0.36.64)
- # [23:31] * Parts: htmlfivedotnet (n=dcostali@c-76-16-59-120.hsd1.il.comcast.net)
- # [23:32] * Joins: webben (n=benh@81.168.10.233)
- # [23:32] * Quits: othermaciej (n=mjs@17.203.15.181) (Read error: 110 (Connection timed out))
- # [23:33] * Quits: qwert666_ (n=qwert666@acaz66.neoplus.adsl.tpnet.pl) ("Leaving")
- # [23:35] * aroben|meeting is now known as aroben
- # [23:36] * Quits: virtuelv (n=virtuelv@46.80-203-100.nextgentel.com) ("Ex-Chat")
- # [23:36] <Hixie> if a WimLeers guy comes by when i'm not around, someone help him out :-)
- # [23:36] * Joins: webben_ (n=benh@dip5-fw.corp.ukl.yahoo.com)
- # [23:44] * Quits: KevinMarks (n=KevinMar@72-254-96-1.client.stsn.net) ("The computer fell asleep")
- # [23:47] * Quits: billmason (n=billmaso@ip227.unival.com) (".")
- # [23:50] * Quits: webben (n=benh@81.168.10.233) (Read error: 110 (Connection timed out))
- # Session Close: Wed Apr 30 00:00:00 2008
The end :)