00:36
<Hixie>
Lachy: i'll make them do whatever the new selectors spec says
00:37
<Hixie>
selectors is a decade old now
00:37
<Hixie>
a decade!
00:37
<Hixie>
and that's a 32 page spec
00:37
<Hixie>
it's about as big as the rendering section in html5
00:38
<Hixie>
and people think the timeline for html5 is unrealistic?
00:38
<Hixie>
sigh
00:41
<Hixie>
annevk5: i actually haven't defined <marquee> yet. :-)
00:49
<Lachy>
Hixie, I think some people have finally come to realise that the HTML5 timeline is realistic, given it's current size. I think that's one of the many reasons people want to split the spec into smaller specs.
00:50
<Lachy>
(although CSS3 has been split into separate specs and how many of those have reached rec in the past 10 years?)
00:50
<Dashiva>
Wasn't CSS kind of a trainwreck already?
00:50
<Lachy>
I think Selectors and CSS Namespaces are the closest to reaching REC
00:50
<Hixie>
Lachy: those people don't seem to understand that it doesn't matter how big the spec is, it doesn't make it go any faster if it's smaller
00:51
<Hixie>
Lachy: (given the interactions between sections)
00:51
<Lachy>
indeed
01:51
<Hixie>
jgraham: yt?
02:02
<Dashiva>
Say, did anything in particular happen that made you stop twittering, Hixie?
02:03
<Hixie>
i stopped twittering?
02:03
<Dashiva>
There was almost no traffic most of the fall and winter
02:03
<Hixie>
i twittered 15 times in the last 24 hours
02:04
<Hixie>
what more do you want from me!
02:04
<Hixie>
:-P
02:04
<Dashiva>
Maybe I'm looking at the wrong account then!
02:04
<Hixie>
32 times if you count the retweets that mike puts out
02:04
<Hixie>
http://twitter.com/WHATWG
02:05
<Dashiva>
Right
02:05
<Hixie>
and http://twitter.com/HTML5
02:05
<Hixie>
the latter also includes editorial checkins
02:05
<Dashiva>
Never mind me then
02:05
<Hixie>
on my Hixie account I don't do much because, well, twitter is dumb :-P
02:06
<doodlewarrior>
i'm just starting to peek at the canvas element
02:06
<Hixie>
it makes sense as a short message broadcast service
02:06
<Hixie>
but microblogging is just stupid imho
02:06
<Dashiva>
I guess the clickjacking comment made me think you had all the techie stuff on Hixie
02:06
<doodlewarrior>
i've heard a lot of people talk about it for charting, but i'm not sure i understand why you'd use it
02:06
<Hixie>
though i'd use it a lot if someone did the equivalent of bitlbee for twitter
02:06
<Hixie>
doodlewarrior: http://www.whatwg.org/issues/data.html is an example of <canvas> use for a chart
02:06
<doodlewarrior>
wouldn't you use positioned divs
02:06
<doodlewarrior>
thanks ill look
02:07
<Philip`>
doodlewarrior: Mostly people seem to use it for charts because they're too lazy to write a server-side script that generates an image
02:07
<Hixie>
right
02:07
<Hixie>
it grabs the data using XHR and then uses JS to generate the image
02:07
<doodlewarrior>
thanks guys
02:07
<Hixie>
Dashiva: i use Hixie for replying to other people
02:08
<Hixie>
Dashiva: (and for sending SMSes to my partner, since i don't have a phone and they do)
02:08
<doodlewarrior>
it's amusing to me that theres an HTML element that is literally defined as 'width, height, id' and relies on javascript for everything else
02:08
<Hixie>
doodlewarrior: there's several of those in html5
02:08
<Hixie>
doodlewarrior: <eventsource>, <video>, <audio> also
02:09
<doodlewarrior>
the media ones have a src though
02:09
<Hixie>
<script> too :-)
02:09
<doodlewarrior>
thyre just like image
02:09
<Hixie>
true
02:09
<Hixie>
true, you can make them show controls
02:09
<Hixie>
<eventsource> is js-only though
02:09
<Hixie>
basically
02:09
<Dashiva>
I seem to recall a request for using an image to "seed" a canvas
02:09
<doodlewarrior>
i havent heard of eventsource
02:09
<doodlewarrior>
ill look into it
02:10
<doodlewarrior>
btw, that issues graph is a better canvas sample than the ones ive seen so far
02:10
<Dashiva>
But if you're going to have to use js anyway, there's little point
02:10
<doodlewarrior>
most of those have been bar charts
02:10
<Philip`>
doodlewarrior: Have you seen http://www.liquidx.net/plotkit/ ?
02:10
<Hixie>
doodlewarrior: it's not a canvas sample, i actually use it to track feedback :-)
02:10
<Hixie>
doodlewarrior: it just happens to use canvas :-)
02:11
<Philip`>
doodlewarrior: (Examples at http://media.liquidx.net/js/plotkit-tests/sweet.html etc)
02:12
<doodlewarrior>
i had been looking at flotr, which is based on plotkit
02:13
<doodlewarrior>
maybe for pie or line graphs
02:13
<doodlewarrior>
but for bar charts, which is what a lot of analytics turns into, CSS seems to be a better way to go
02:14
<Hixie>
well don't forget that CSS shouldn't be used for content
02:14
<Hixie>
your page shouldn't change meaning if you turn off the CSS
02:14
<Philip`>
That seems a pretty pointless argument in practice
02:14
<Hixie>
(similarly, if you use <canvas>, you should also expose the content inside the element for users that don't see images)
02:14
<Philip`>
If you're in an environment where you can't see CSS, you almost certainly won't be able to see canvas either
02:15
<doodlewarrior>
Philip`s right
02:15
<Hixie>
the actual correct way of doing bar charts in HTML5 is <meter>
02:15
<Hixie>
but that's not supported anywhere yet
02:15
<doodlewarrior>
in that case, it should all be does as images
02:15
<doodlewarrior>
because both CSS and JS are not *guaranteed*
02:15
<doodlewarrior>
although in practice theyre pretty ubiq
02:15
<Philip`>
Images aren't guaranteed either
02:16
<Hixie>
JS is more guaranteed than CSS or images
02:16
<Hixie>
(JS is not optional, unlike CSS or images)
02:16
<Philip`>
I think you should use a Java applet
02:16
<doodlewarrior>
im a flash guy. id do that, but mobiles dont support it
02:16
<doodlewarrior>
and id choose flash over java any day of the week
02:17
<Philip`>
Write an applet that displays a bar, and then include it lots of times with <applet width="..."> for each bar
02:17
<doodlewarrior>
the only browser ive seen where JS is not optional is chrome
02:17
<doodlewarrior>
hahahaha
02:17
<doodlewarrior>
nice
02:18
<Hixie>
doodlewarrior: by "optional" i mean "the specs say that you can turn that off without changing the meaning of the page"
02:18
<Hixie>
turning script off will change the meaning of the page
02:19
<doodlewarrior>
you can turn off images without changing the meaning?
02:19
<doodlewarrior>
deviantart is boned
02:19
<doodlewarrior>
flickr, facebook, et al
02:19
<doodlewarrior>
youtube
02:19
<doodlewarrior>
:-p
02:19
<Philip`>
That depends on the meaning of "meaning"
02:20
<Hixie>
if those sites don't include the equivalent of the image in the alt="" attribute, they're non-conforming :-)
02:20
<doodlewarrior>
there are definitely things that break without javascript
02:20
<doodlewarrior>
the app that has me thinking of all this is one of them
02:21
<doodlewarrior>
but i would still argue that images are more crucial than javascript
02:21
<Philip`>
Hixie: Non-conforming HTML pages? That would be unthinkable :-(
02:21
<Hixie>
hah
02:21
<doodlewarrior>
(and probably more likely to be supported)
02:21
<Hixie>
doodlewarrior: a blind user will have JS support but the images won't do him any good
02:22
<doodlewarrior>
i didnt know text-based clients supported javascript
02:23
<Philip`>
doodlewarrior: They tend to use a proper graphical browser plus a screenreader, rather than a text browser, apparently
02:24
<doodlewarrior>
my mac would do that when i was a kid
02:24
<doodlewarrior>
mouse over something and it would tell you what it is
02:25
<Philip`>
Aiming the mouse at objects is kind of hard when you can't see the cursor or the objects
02:27
<doodlewarrior>
i would think so
02:28
<doodlewarrior>
i imagine it would be easier to surf with firefox + reader than lynx
02:28
<doodlewarrior>
if for no other reason than all the sites that sniff by browser
02:29
<doodlewarrior>
Hixie: this is what i'll end up modeling
02:29
<doodlewarrior>
http://peltiertech.com/WordPress/wp-content/img200805/stack_bar_graded.png
02:29
<doodlewarrior>
i'm not sure if meter would be right for that
02:29
<Hixie>
no, <meter> wouldn't really work for a stacked bar
02:30
<Hixie>
<meter> is just for a single-value gauge
02:30
<doodlewarrior>
YEAH
02:30
<doodlewarrior>
bad caps
02:31
<doodlewarrior>
ill probably end up using HTML + CSS
02:32
<doodlewarrior>
it's easier to template server-side
02:32
<doodlewarrior>
and you don't need to worry about rendering the JS
02:32
<Philip`>
Text in <canvas> is not well supported in current browsers, so it'd probably be easier to just use HTML/CSS
02:33
<doodlewarrior>
thanks guys
02:33
Dashiva
remembers making bitmap fonts for canvas text
02:33
<Dashiva>
Bad times
02:34
<doodlewarrior>
i must admit, im not much for IRC
02:34
<doodlewarrior>
what's the syntax to do a third person message
02:34
<Philip`>
/me ...
02:35
doodlewarrior
is testing this
02:35
doodlewarrior
is wondering how Philip` escaped the /me
02:35
<doodlewarrior>
/me like this?
02:36
<Dashiva>
Many ways, depending on the client
02:36
<doodlewarrior>
anyway, ill stop wasting all your time now
02:36
<Dashiva>
e.g. mIRC supports ctrl-enter to avoid commands
02:36
<doodlewarrior>
im in opera
02:37
<Philip`>
/ /me ... escapes it in irssi
02:37
<doodlewarrior>
i dont really want to install a chat client
02:37
<doodlewarrior>
although for all practical purposes all opera is to me IS a chat client
02:37
<doodlewarrior>
although it was my main browser before safari was cross-platform
02:37
<doodlewarrior>
although i say although a lot
02:37
<Dashiva>
When all else fails, /msg #channelname /me text should work
02:38
<doodlewarrior>
gtk
02:48
<Hixie>
wow have you guys seen this? http://a.deveria.com/caniuse/
02:50
<Dashiva>
It's a bit depressing to see features blocking on browser versions that aren't even the next release...
02:51
<Hixie>
you can uncheck the "Past" row
02:51
<Hixie>
:-)
02:51
<Hixie>
bbiab
02:53
<deltab>
/say usually works too
03:01
Lachy
is unsure whether he should be happy or sad that <form autocomplete> has now been added to the spec as a result of my data, despite the fact that I think it should never be used by anyone.
03:02
<Dashiva>
Honor and valor
03:03
<Dashiva>
It would probably have been added eventually, in any case.
03:28
<roc>
Hixie: that's cool
03:28
<roc>
someone should tell them that multiple backgrounds is about to land for Firefox
03:28
<roc>
3.2 though
03:31
<roc>
I sort of hate how people assume that Webkit CSS extensions are the future
03:31
<roc>
what about MY CSS extensions
03:32
<roc>
hmm, IE8 doesn't support HTML data URLs? FAIL
03:34
<roc>
Ah, I just want to uncheck "Unofficial" and then I'm happy
03:35
<Dashiva>
I wouldn't mind a "hide stuff that isn't ready" checkbox, just to see what little is actually usable
03:38
<olliej>
roc: really?
03:38
<roc>
which part?
03:38
<olliej>
roc: ie8 w/no data uri support
03:38
<roc>
that page says it supports data URIs for image and stylesheet loads, but not HTML loads
03:38
<roc>
or something like that
03:39
<olliej>
roc: url?
03:39
<roc>
of course IE also has a ridiculously low URI length limit which cripples data URIs anyway
03:39
<olliej>
true
03:39
<roc>
it does give the impression they might have done the minimum needed to pass Acid2
03:39
<olliej>
roc: it's just a thousand or so character or something iirc
03:40
<roc>
yeah
03:40
<roc>
olliej: http://a.deveria.com/caniuse/
03:40
<roc>
(via Hixie in this channel)
03:40
<olliej>
roc: at least it's better than the minimum needed to pass some of the acid3 svg tests -- you just needed the element constructors to exist
03:40
<roc>
yeah well
03:40
<olliej>
roc: they didn't actually need to work
03:40
<olliej>
i was like wtf?
03:41
<roc>
let's not discuss the deficiencies of Acid3 :-)
03:41
<olliej>
roc: wow, i love the idea that Chrome 0.3 is the old chrome, but safari 2 is the old safari
03:41
<roc>
yeah
03:41
<olliej>
ignoring safari 3.0, and 3.1
03:42
<roc>
I also love the idea that IE9 and Firefox 3.2 will be contemporaneous
03:43
<olliej>
heh
03:44
<olliej>
roc: what makes the chrome 0.3 vs. Safari2 comparison especially hilarious is that chrome's initial release was based on Safari 3.1
03:44
<olliej>
wee!
03:44
<roc>
yeah I know
03:45
<roc>
it's iniquitous
03:46
<olliej>
oh well
03:46
<olliej>
shit happens
03:46
<olliej>
hihi eric_carlson
03:46
<olliej>
or eric_carlson_ as the case may be
03:46
<eric_carlson_>
hey olliej
04:40
<zcorpan>
morning
05:40
<zcorpan>
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-February/018492.html - what should dom core say?
05:42
<zcorpan>
right now i have
05:42
<zcorpan>
A DOMTimeStamp represents a number of milliseconds.
05:42
<zcorpan>
typedef unsigned long long DOMTimeStamp;
05:43
<heycam>
zcorpan, i think that is ok
05:43
<zcorpan>
heycam: ok, thanks
05:44
<heycam>
the difference in precision between unsigned long longs (which range from 0..2**64-1) and ES Numbers (which can represent integers up to 2**53 - 1) isn't important, iirc.
05:44
<heycam>
at least for practical uses of time stamps
05:44
<zcorpan>
hmm maybe the definition should say "...since Unix epoch"
05:45
<heycam>
yeah. i think dom core says something like not specifying a particular epoch, or that time stamps might always be 0 or something.
05:45
<heycam>
can't remember exactly
05:46
<zcorpan>
"The DOMTimeStamp type is used to store an absolute or relative time."
05:46
<zcorpan>
when is it used for a relative time?
05:46
<heycam>
don't know of any place in the dom off the top of my head
05:47
<zcorpan>
dom3 core says "For ECMAScript, DOMTimeStamp is bound to the Date type because the range of the integer type is too small."
05:47
zcorpan
would like to refer to webidl for ecmascript bindings of dom core :)
05:48
<heycam>
please feel free :)
05:49
<zcorpan>
maybe i should put a note in there saying that it's not a Date in ecmascript
05:49
<heycam>
Dates in ES, iirc, use a Number (i.e. a double) internally
05:49
<heycam>
so i think the reasoning is bogus
05:51
<zcorpan>
oh <time> in html5 has relative domtimestamps
06:04
<zcorpan>
Hixie: couldn't html5lib prefix mathml elements with an "M" and svg elements with an "S" in the no-namespace mode, or something?
06:10
<Hixie>
sure
06:11
<Hixie>
does it?
06:16
<heycam>
hmm "layed out" or "laid out"?
06:16
<heycam>
or "layoutted"? :)
06:16
<Hixie>
laid
06:16
<heycam>
surprisingly, google searches for both those terms bring up appropriately the same number of hits
06:16
<heycam>
ok
06:17
<Hixie>
except all the hits for "layed" are "is it laid or layed"
06:17
<heycam>
heh
06:45
<zcorpan>
Philip`: in XOM, try two attributes with the same namespace and local name but different prefix
06:45
<zcorpan>
or maybe XOM doesn't let you manage prefixes?
06:56
<hsivonen>
sicking: pong
06:58
<hsivonen>
Philip`: is <?foo ??> well-formed? If it inserts a space unnecessarily, it is probably a bug in the code that tries to avoid the ?> substring
06:58
<Hixie>
sicking: so do you think mozilla wants the spellcheck="" attribute in html5?
06:58
<Hixie>
anyone from opera have any opinions on that, also?
06:58
<Hixie>
ap: how about webkit, do you know if anyone outside google wants spellcheck="" in html5?
06:59
<Hixie>
i figure i'll add it, more or less as specced here http://damowmow.com/playground/spellcheck.txt
06:59
<Hixie>
since there seems to be vague positive notions about it
07:00
<Hixie>
(and it's used by major sites and firefox and chrome both have some level of support)
07:00
<Hixie>
(though that's all mostly from google)
07:01
<ap>
Hixie: https://bugs.webkit.org/show_bug.cgi?id=14552 is not from Google afaict
07:01
<zcorpan>
hsivonen: <?foo ??> seems to be well-formed
07:02
<Hixie>
ap: woo, non-google interest
07:02
<zcorpan>
hsivonen: but <?xml-stylesheet ??> isn't xml+xml-stylesheet-well-formed (if there is such a concept)
07:06
<hsivonen>
zcorpan: ok.
07:08
<zcorpan>
speaking of xml-stylesheet, we had a telecon yesterday
07:09
<zcorpan>
there was push-back in general but they seemed to agree that error handling needed to be defined
07:13
<zcorpan>
surprising to me was that the xml core wg were apparently unfamiliar with the term "yellow screen of death"
07:17
<hsivonen>
whoa. pretty removed from Web use cases, eh?
07:18
<zcorpan>
i guess
07:24
<hsivonen>
Philip`: I think I've now fixed the serializer bugs you found (in svn only so far)
07:24
<hsivonen>
Philip`: thanks
07:39
<hsivonen>
Philip`: why is <x xmlns="x:&" /> not well-formed?
07:52
<Hixie>
hsivonen: unescaped ampersand is not valid in AttValue
07:52
<hsivonen>
ooh
07:53
<hsivonen>
so obvious now...
07:53
<hsivonen>
the thread with Adam Barth & others on www-talk is interesting
08:30
<Hixie>
site-meta scares me
08:30
<Hixie>
i don't really understand the problem it's trying to solve
08:35
<hsivonen>
Hixie: what kind of parser-level quirks are expected? Is the fragment parsing algorithm meant to be quirk-sensitive?
08:36
<hsivonen>
<p><table>, I expect
08:36
<hsivonen>
(and that's Acid2's fault)
08:36
<Hixie>
hm?
08:38
<zcorpan>
hsivonen: i think no parser-level quirks are expected (we can maybe get away with doing <p><table> the same in quirks mode)
08:38
<hsivonen>
Hixie: are more quirks expected than those that have XXX quirks comments? and is the fragment parsing algorithm supposed to honor the quirkiness of the document of the context node?
08:38
<Hixie>
no idea
08:39
<hsivonen>
ok. I'll file a bug
08:44
<hsivonen>
zcorpan: does Opera have any parser-level quirks left?
08:45
<hsivonen>
fwiw, source code suggests that Gecko inherits quirkiness on innerHTML
08:47
<zcorpan>
hsivonen: yes (e.g. <p><table>)
08:47
<hsivonen>
zcorpan: ok, so there's no shipping precedent to ironing out the differences
08:48
<zcorpan>
hey i thought webkit did the <p><table> the same in quirks mode
08:48
<hsivonen>
oh
08:49
<zcorpan>
wonder why they changed it
08:56
<hsivonen>
what was the magic click that reveals sections linking to a heading in the WHATWG HTML5 spec?
08:56
<annevk5>
Hixie, Opera wants spellcheck="" btw
08:56
<annevk5>
Hixie, I thought I mentioned that somewhere on the list
08:57
<hsivonen>
Hixie: is there a reason why innerHTML & friends are on HTMLElement instead of Element?
08:57
<hsivonen>
my recollection is that in WebKit and Opera innerHTML works more generally
08:57
<Hixie>
annevk5: cool
08:58
<Hixie>
hsivonen: because i don't define Element :-)
08:58
zcorpan
finds https://bugs.webkit.org/show_bug.cgi?id=9280
08:58
<annevk5>
Hixie, but you could define ElementHTML
08:58
<annevk5>
Hixie, for instance
08:58
<Hixie>
i could
09:00
<hsivonen>
it seems silly that the functionality is not available on SVG nodes (in specs & in Gecko)
09:11
<Hixie>
innerHTML is a terrible API
09:11
<Hixie>
it's the equivalent of eval
09:11
<jgraham>
Hixie: I'm here now
09:11
<annevk5>
Hixie, but it does the job
09:11
<Hixie>
so does eval
09:12
<hsivonen>
eval is lispish, so it has to be brilliant
09:15
<annevk5>
given that non-HTML elements are marginal in use anyway and there's no other API available I do not really see the harm in making it consistently available
09:17
<Hixie>
the harm is in making it available at all
09:19
<Hixie>
does anyone know if there's any way to force another computer on the network to flush its dns cache?
09:21
<hsivonen>
Hixie: when the cat is totally out of the bag if you use innerHTML on a div wrapping svg, what's the harm of allowing it directly on the svg stuff?
09:22
<Hixie>
innerHTML is bad. when you have something that is bad, you don't make it available _more_
09:22
<zcorpan>
badness is just an opinion :)
09:22
<annevk5>
Hixie, you made it available to XML
09:23
<annevk5>
Hixie, I'm not really convinced
09:23
<hsivonen>
Hixie: innerHTML is useful for debugging :-)
09:23
<Hixie>
annevk5: putting it on XML is necessary to allow easier migration to XML
09:23
<Hixie>
hsivonen: a readonly attribute innerHTML would be fine
09:23
<hsivonen>
Hixie: wouldn't easy migration require running the HTML parser on setting?
09:24
<Hixie>
presumably one would fix all the syntax at the same time
09:24
<Hixie>
i can't imagine what kind of a mess one would have that would make it easier to only upgrade some of the syntax
09:24
<annevk5>
Hixie, it seems that if we want HTML+MathML+SVG to look lik a single platform innerHTML should be everywhere
09:25
<zcorpan>
opera uses the html parser on setting and we have bugs about it, iirc
09:25
<annevk5>
Hixie, also, if innerHTML is bad in the first place, why would you ever want to allow it to migrate to XML
09:25
<Hixie>
innerHTML is fundamentally bad in the same way eval is bad -- it doesn't get you any compile-time syntax checking, and it encourages poor escaping hygene
09:25
<annevk5>
Hixie, especially since you increase implementation complexity as it does not do the same thing there!
09:25
<hsivonen>
I agree on escaping hygiene, but compile-time checking is overrated
09:26
<zcorpan>
annevk5: didn't opera and gecko predate html5 on this matter, though?
09:26
<hsivonen>
Python has collection literals, Java doesn't. Many Java devs use XML as complex literals...
09:26
<Hixie>
hsivonen: for this kind of thing, i think it's underrated
09:26
<hsivonen>
people like having literals
09:27
<Hixie>
anyway
09:27
<Hixie>
if you want innerHTML on SVG, get zcorpan to do it in Web DOM Core
09:27
<Hixie>
I have no interest in sticking my neck out on that front
09:27
<Hixie>
it's one thing to piss off the svg wg, but pissing them off when i disagree that it's a good idea is quite another :-P
09:27
<zcorpan>
Hixie: what's the difference from saying that all documents must implement HTMLDocument?
09:28
<Hixie>
zcorpan: HTMLDocument doesn't encourage poor escaping hygene and suffer from lack of compile-time syntax checking of complex strings?
09:28
<annevk5>
zcorpan, Opera's implementation actually didn't increase complexity, but yeah, then again, we could remove it
09:29
<annevk5>
Hixie, HTMLDocument has innerHTML
09:29
<zcorpan>
Hixie: i meant having an ElementHTML interface that includes useful stuff that's only available on html elements
09:30
<zcorpan>
i'd be fine with putting stuff in dom core if that's appropriate
09:30
<Hixie>
annevk5: innerHTML on a Document is a whole different issue -- it's a replacement for DOM3 Load and Save, to convert a self-contained, typically server-provided, raw document string, into a Document
09:30
<Hixie>
zcorpan: i don't follow. I thought the problem was that people wanted things on nodes _other_ than HTML elements.
09:31
<zcorpan>
Hixie: yes -- then you say that all Elements must also implement ElementHTML
09:31
<Hixie>
zcorpan: ...but I don't _want_ non-HTML elements to support these things
09:32
<zcorpan>
Hixie: what about getElementsByClassName?
09:32
<Hixie>
what about it?
09:33
<annevk5>
Hixie, poor hugene and no compile-time syntax checking of complex strings though
09:33
<zcorpan>
Hixie: it's on HTMLElement but would be similarly useful on svg elements
09:33
<annevk5>
classList too
09:33
<Hixie>
annevk5: you wouldn't do (in the use case for Document.innerHTML) any string merging, so there's no escape hygene issue. And compile-time checking makes no sense for something you don't have access to until runtime.
09:34
<Hixie>
zcorpan: if there are things we should hoist to Web DOM Core Element, I'm fine with that too.
09:36
annevk5
finds another interesting i18n example
09:37
<annevk5>
there's an armenian list style in CSS but apparently such a thing is never used; they use arabic or roman numbers for lists in practice
09:37
<Hixie>
there's like 93 different list styles in css3 lists
09:38
<Hixie>
many of them are only of historic interest
09:38
<Hixie>
they're mostly for use with counters rather than lists
09:38
<annevk5>
why add bunch of codes to browsers for historic interest?
09:38
<annevk5>
s/codes/code/
09:39
<Hixie>
it's very little code in most cases, just a table typically
09:39
<Philip`>
zcorpan: When adding those two attributes, the second one overrides the first one, so you only get one attribute in the output
09:39
<Philip`>
zcorpan: (XOM does let you manage prefixes, but it does comparisons based on URI+localname and the prefixes are more like hints for serialisation)
09:40
<Philip`>
hsivonen: <?foo ??> is well-formed as far as I'm aware; I guess the code that adds the space was copied-and-pasted from the code that avoids <!-- --->
09:41
<annevk5>
Hixie, same question s/code/tables/
09:41
<Hixie>
tables are cheap
09:42
<hsivonen>
Philip`: indeed, it looked copied and pasted, so I zapped it
09:42
<annevk5>
that's hardly a justification :)
09:43
<annevk5>
especically since it's a bit more than tables for some and testing all that stuff is quite a bit of effort
09:43
<Hixie>
list styles are pretty easy to test
09:43
<Hixie>
you just implement the algorithm and output bazillions of automated tests automatically
09:43
<jgraham>
Unless you implement the algorithm wrong
09:44
<jgraham>
In which case you output bazillions of misleading tests automatically :)
09:44
<Hixie>
well then you catch the bug when the "real" implementor tries it
09:44
<Hixie>
writing wrong tests is always a risk
09:44
<Hixie>
for lists it's far easier to get them right than, say, margin collapsing
09:45
<Hixie>
anyway, list styles, even those with only small markets, can be useful
09:45
<Hixie>
why would we not want to be comprehensive?
09:45
<Hixie>
since they're cheap and easy to test, it seems like a rare case where we can afford to be
09:47
<Philip`>
hsivonen: I don't think there's a magic click, you just use the single-page spec and then click the term's definition
09:47
<hsivonen>
aah. single-page!
09:53
<jgraham>
Hixie: Speaking of broken tests, you do realise that for every change you make to the AAA, a tiny kitten dies, right?
09:53
<Hixie>
blame hsivonen
09:54
<Hixie>
(and sicking)
09:54
<jgraham>
That doesn't help the poor little kitten now does it? :)
09:54
<jgraham>
Anyway, I can't really blame hsivonen because I'm counting on him to fix the html5lib test suite before I get around to implementing the change
10:04
<jgraham>
gsnedders: shout when you're around.
10:44
<Hixie>
i love that the TR/html5 doc is already out of date before even getting published
10:46
<annevk5>
you should love the point where that stops being the case :)
10:51
<Hixie>
annevk5: i don't expect it'll be the case before october :-)
10:53
Philip`
wonders how Rob Burns can possibly claim that the XML spec says "&#xd800;&#xdc00;" is well-formed
10:53
<Philip`>
(on www-tag)
10:54
<annevk5>
Rob Burns also claims that by virtue of referencing Unicode XML requires canonical character comparison rather than codepoint comparison
10:54
<annevk5>
It's really quite interesting :)
10:56
<zcorpan>
Philip`: maybe... it says character reference*s* must match Char, so after expanding the two references and serializing the result as utf-16 and parsing it again it would match Char?
10:56
<Philip`>
zcorpan: You can't serialise U+D800 to UTF-16
10:57
<zcorpan>
bummer :(
10:57
<Philip`>
So I guess you have to expand the two references, serialise as UCS-2, then reinterpret it as UTF-16 when parsing, and then it would match Char
10:57
<Philip`>
though that would break whenever you use >= U+10000 in your document
10:59
<zcorpan>
you'd only do it for character references that expand to the surrogate range?
10:59
<Philip`>
"If the character reference begins with " &#x ", the digits and letters up to the terminating ; provide a hexadecimal representation of the character's code point in ISO/IEC 10646."
11:00
<Philip`>
so he can't claim that &#xd800;&#xdc00; should be parsed into a single codepoint
11:00
<hsivonen>
Philip`: sure he *can* and just did :-(
11:00
<heycam>
right, and there's no such character as U+D800
11:01
<Philip`>
hsivonen: Hmm, I didn't see him claim that (yet)
11:01
<yecril71>
krijnhoetmer is down again
11:01
<Philip`>
yecril71: Works for me
11:01
heycam
always pronounces "krijnhoetmer" as "chronometer" in his mind
11:02
<hsivonen>
Philip`: ok. perhaps he didn't claim exactly that, but he claims a lot of things
11:02
<annevk5>
yecril71, if krijnh is actually in the channel it's unlikely to be down
11:02
<yecril71>
Take it back, I expected Goto to refresh in IE.
11:03
yecril71
takes it back
11:03
<Philip`>
hsivonen: If he did claim that then at least he'd be more internally consistent, even if it made him more wrong :-)
11:03
hsivonen
thinks the issue timeless pointed out is a bug in cell phone carriers in Canada
11:04
<yecril71>
If the user�s language does not match the site�s, how on earth can the user actually use the site?
11:05
<annevk5>
yecril71, because the user is e.g. Dutch but can read English?
11:05
<yecril71>
For the life of me, I cannot figure out anything on Chinese sites.
11:05
<jgraham>
yecril71: Google translate or e.g. having some but not good comprehension of the language
11:05
jgraham
has to use Swedish sites occasionally
11:05
<yecril71>
Does Google translate allow you to submit forms?
11:05
annevk5
can quite easily use oslokino.no
11:06
<annevk5>
without speaking Norwegian
11:06
<hsivonen>
yecril71: I tend to use Google Translate in another tab when I need to submit forms e.g. in German
11:06
<annevk5>
s/spreaking/knowing/
11:06
<zcorpan>
yecril71: gmail.com might be in english but you want to write a mail in a different language
11:07
<yecril71>
Annevk5! How do you use oslokino.no?
11:09
<yecril71>
It seems like a film review site, the reviews are in Norwegian.
11:09
<Lachy>
JohnResig, yt?
11:10
<annevk5>
among other things it lists which movies run in theaters in Oslo, which is useful when I'm there
11:10
<hsivonen>
yecril71: it seems the main use case for the site is buying tickets
11:10
<yecril71>
Even if I want to write a mail in a different language, my language and the GMail�s language are still the same.
11:11
<yecril71>
It is the recipient�s language that is different.
11:11
<yecril71>
Do you also translate your feedback into German with Google first?
11:12
<yecril71>
In my ideal world, everyone would use the language she knows best,
11:13
<yecril71>
and the recipient�s software would have the task to translate it.
11:13
<hsivonen>
yecril71: does "use" mean write, read, or both?
11:13
<yecril71>
In this case, write, mostly.
11:14
<yecril71>
Passages for reading do not need spell checking.
11:14
<yecril71>
But you have to be able to read in order to know what to write (and where).
11:15
<hsivonen>
I wouldn't hold my breath with that vision. Even with human translators, after some threshold of reading proficiency in a foreign language, people are better off reading original text instead of translations
11:15
<yecril71>
The translation would only be a prothesis, the original text being available as well.
11:17
<yecril71>
I am unhappy about breaking the link between @lang and spell checking.
11:17
hsivonen
wonders how the IETF mechanism of getting security review works compared to getting Adam Barth to read a draft
11:18
<yecril71>
Hopefully, the browsers can still do it, regardless that Hixie decided to ignore it.
11:19
<Hixie>
did you read what the spec says on the subject?
11:21
<yecril71>
The spec says that spellcheck is used to turn spell checking on for text input controls.
11:21
<Hixie>
i urge you to read the entire section :-)
11:21
<krijnh>
I'm down?
11:22
<krijnh>
yecril71: No, I'm not :)
11:22
<yecril71>
No, I am dumb :-(
11:22
<yecril71>
Or rather MSIE is.
11:23
<krijnh>
(heycam: it's more like "cryin' hoodmer", but who cares :)
11:23
<yecril71>
Why does MSIE want to load Microsoft HTML Viewer to display the spec?
11:24
<annevk5>
why do people use MSIE?
11:25
<yecril71>
Because their employers want them to use Microsoft Windows, I presume.
11:25
<yecril71>
Because it is the best choice for incompetent losers.
11:26
Philip`
notes that other web browsers work on Microsoft Windows too
11:26
yecril71
notes that that doubles the maintenance cost
11:27
<krijnh>
Because of shitty IE-only intranet apps and sysadmins not doing their jobs
11:28
<yecril71>
OK, I disabled CSS so perhaps I shall be able to read it now
11:32
<yecril71>
Except that disabling CSS is not permanent, and I have to wait for ages until I will be able to disable it again :-(
11:39
<yecril71>
I am sorry, I am unable to find spellcheck in the contents.
11:39
<yecril71>
http://www.whatwg.org/specs/web-apps/current-work/multipage/index.html#contents
11:39
<yecril71>
Find "spellcheck".
11:42
<robburns>
Philip` with your quote, I see how you're reading XML 1 now.
11:42
<robburns>
Philip`: "If the character reference begins with " &#x ", the digits and letters up to the terminating ; provide a hexadecimal representation of the character's code point in ISO/IEC 10646."
11:43
<yecril71>
The attribute values should be
11:43
<yecril71>
spellcheck="on/off", not "true/false"
11:44
<robburns>
My reading overlooked the subtle different there where it expands to the CHARACTER'S code point
11:44
<robburns>
Philip`: so I was thinking that the two character references expanded to two code points (surrogates) that when adjacent to one another signified an astral code point
11:46
<hsivonen>
robburns: did you read the BNF comment at http://www.w3.org/TR/REC-xml/#NT-Char ?
11:46
<robburns>
Philip`: At one point all the major browsers supported that reading
11:46
<robburns>
see https://bugs.webkit.org/show_bug.cgi?id=6446
11:46
<robburns>
and later https://bugs.webkit.org/show_bug.cgi?id=22210
11:46
<hsivonen>
robburns: browser behavior is not normative over XML :-)
11:46
<Philip`>
robburns: As far as I'm aware surrogates only signify astral code points in UTF-16, and UTF-16 doesn't seem relevant to character references at all
11:47
<robburns>
hsivonen: Yes, I did. However as I said in that email that makes it clear that you cannot have &#x0; but not so clear that you can't have two valid surrogates adjacent to one another.
11:47
<robburns>
Both IE and Safari still support this.
11:48
<yecril71>
Why is spell checking disabled by default?
11:48
<robburns>
Philip`: yeah, but having those surrogates as assigned code points (rather than a UTF issue) certainly contributes some ambiguity. After all we don't have UTF-8 code points assigned too.
11:49
<yecril71>
Spell checking should be enabled IMHO, except for text input controls.
11:50
<robburns>
yecril71: in my opinion, spell checking shouldn't be up to authors at all
11:50
<robburns>
spellchecking is just not an authors concern
11:50
<yecril71>
(INPUT[type=TEXT], that is)
11:50
<robburns>
meaning the author of the page, not the author now using that page to input html or other content
11:50
<yecril71>
But the latest specification says it should be off by default.
11:51
<Philip`>
http://philip.html5.org/misc/surrogate-charrefs.xml
11:52
<Philip`>
Gives error in Firefox 2, Opera 9.6, Safari 3.1; displays with no error in IE6
11:52
<robburns>
Philip`: you're right. I guess for XML Safari doesn't handle that. I had just tested in HTML, but I thought I had done it before in XHTML.
11:52
<Philip`>
IE8 does show an error message, but also seems to carry on parsing anyway
11:53
<Philip`>
http://philip.html5.org/misc/single-surrogate-charref.xml
11:53
<Philip`>
IE6 is happy with that too
11:53
<hsivonen>
robburns: may I suggest more careful testing next time before claiming unusual things about XML conformance on the mailing lists
11:53
<robburns>
Philip`: well I think a year or so ago, IIRC Safari, FireFox and IE were all handling those surrogates.
11:53
<Philip`>
(and IE8 does the same as the other example)
11:54
<jgraham>
gsnedders: Specifically I would like anolis to support anolislib.generator.fromFile(file, **kwargs) and anolislib.generator.toString(tree, **kwargs) which I implemented but left the patch elsewhere
11:54
<robburns>
hsivonen: well with the flip-flopping on this (as it is described a the WebKit bugzilla) I don't think I should be held responsible for the most up-to-date state of this.
11:54
jgraham
thinks about implementing it now
11:55
<robburns>
hsivonen: who knows tomorrow it might all work again in those browsers. There's some people out there who like to ensure there are as many fatal errors in XML as can be even if they aren't really in the spirit of fatal error handling of XML.
11:55
<Philip`>
robburns: Those bug reports are about HTML, which is not XML
11:56
<hsivonen>
robburns: when in doubt, you may assume that XML bugs Philip` has found in Validator.nu and I have fixed are actual XML violations
11:56
<robburns>
Philip`: "HTML/XML character set (independent of actual character encoding of a document)
11:56
<robburns>
is Unicode/ISO 10646 and NCRs represent Unicode code points. They do not
11:56
<robburns>
represent '2byte code units' of UTF-16. So, NCRs with surrogate code points
11:56
<robburns>
should not be allowed whether they are paired or not. " Says XML there.
11:56
<robburns>
hsivonen: I don't agree.
11:57
<robburns>
hsivonen: I think this is open to interpretation and I don't think treating those as fatal error is really in keeping with the reasons for fatal error handling in XML (on the other hand I think you're right that it shouldn't be serialized that way)
11:57
<Philip`>
robburns: It does literally say "XML", but it's only talking about changes to the HTML parser (hence it being the "HTML DOM" component, and referring to a bug which involved a change to the HTML parser)
11:57
<hsivonen>
robburns: I'm not suggesting taking me or Philip` as authorities. Just that checking specs carefully is a good idea before suggesting that someone else didn't grok the specs.
11:58
Philip`
is certainly not an authority, and is often mistaken :-)
11:58
<hsivonen>
robburns: when *you* think something is open to interpretation, it usually helps to check if multiple XML parser implementors happen to agree on the interpretation (they might have it right)
11:59
<robburns>
hsivonen: I quoted the spec and gave you my interpretation of it. I can see how Philip read it differently now. However, there is room for interpretation there.
11:59
<yecril71>
Editorial: http://html5.org/tools/web-apps-tracker?from=2800&to=2801 features "asits"
12:00
<robburns>
Philip`: well I would count you here as an authority, but even authorities can get too draconian at times.
12:01
<robburns>
hsivonen: I have checked multiple XML parsers (at least from my recollection). However, as I said the implementations are flip flopping on this because there's a group of interested parties who like to make sure XML is more draconian then it is intended to be.
12:01
<Philip`>
robburns: I'm not interested in being draconian, just in understanding the spec in the same way that everyone else understands it
12:01
<robburns>
hsivonen as Philip` demonstrated IE does parse surrogate pair character references.
12:02
<Philip`>
and I haven't seen any evidence of people being indecisive about how to implement it in XML (as opposed to in HTML where it's not been specified before HTML5)
12:02
jgraham
wonders if gsnedders realises that fromFile will sometimes work if the input is actually a string
12:02
<Philip`>
except for IE starting to flag it as an error, following what other parsers seem to do
12:04
<robburns>
Philip`: here's another bug report https://bugs.webkit.org/show_bug.cgi?id=18039
12:04
<robburns>
seems to be xml related
12:05
<hsivonen>
robburns: also doesn't support your interpretation :-)
12:05
<annevk5>
"because there's a group of interested parties who like to make sure XML is more draconian then it is intended to be" really? :)
12:06
<zcorpan>
robburns: the test case has "&#119604;&#119604;&#119604;" - doesn't look like surrogate character references to me
12:06
<annevk5>
it's an interesting conspiracy theory
12:06
<robburns>
yeah, I see that now
12:07
<robburns>
zcorpan: ^
12:08
Philip`
notes that his testing in IE6 was actually in Wine, and he's not sure if that would affect the results
12:10
jgraham
tries upgrading PimpMySpec.net to a version that allos you to set options for URL-based (rather than upload-based) requests
12:11
<robburns>
Philip`: I don't think that would change anything.
12:11
<jgraham>
It is much uglier than it used to be and has approximately no QA
12:14
<robburns>
annevk5: "because there's a group of interested parties who like to make sure XML is more draconian then it is intended to be" really? yes really!
12:15
<Philip`>
Ooh, there's even a test
12:15
<Philip`>
http://dev.w3.org/cvsweb/2001/XML-Test-Suite/xmlconf/xmltest/not-wf/sa/145.xml?rev=1.1.1.1&content-type=text/x-cvsweb-markup
12:15
<Philip`>
(where the "not-wf" directory is used for not-well-formed documents)
12:16
<hsivonen>
clearly, the XML test suite folks are trying to make sure XML is more Draconian than it is intended to be!
12:16
<annevk5>
every year I file these bugs on browsers to fail on non-NFC content, but nobody implements :(
12:18
<annevk5>
robburns, kidding aside, anything in particular?
12:19
<robburns>
Philip`: that test is a single surrogate unless I'm missing someting
12:19
<Philip`>
robburns: Oh, good point
12:19
<robburns>
hsivonen: I guess we're all too quick to find urls to prove the others wrong
12:21
<hsivonen>
http://diveintomark.org/archives/2004/08/16/specs
12:21
<annevk5>
http://ajaxian.com/archives/frames-are-back oops
12:23
<Philip`>
http://dev.w3.org/cvsweb/2001/XML-Test-Suite/xmlconf/oasis/p66fail6.xml?rev=1.1.1.1&content-type=text/x-cvsweb-markup
12:23
<Philip`>
("<TEST TYPE='not-wf' SECTIONS='4.1 [66]' ID='o-p66fail6' URI='p66fail6.xml'> no references to non-characters </TEST>")
12:26
<robburns>
Philip`: I guess since that test came after IE's implementation they didn't know about that.
12:27
<annevk5>
it's in the spec...
12:28
<robburns>
annevk5: no it's not (at least not clearly), we've already discussed that.
12:29
<robburns>
annevk5: so then we've looking to the implementations and, at least for xml, its IE on once side and everything else on the other (until IE8).
12:34
<Philip`>
See o-p66fail6 in http://xmlconf.sourceforge.net/xml/reports/report-msxml2-val.html vs http://www.xml.com/2000/08/30/msxml/msxml3-val.html
12:34
<robburns>
and for HTML firefox flip flopped and safari joined firefox (before they flipped back) and IE
12:34
<Philip`>
It was broken in a May 2000 preview, and fixed a few months later
12:35
<robburns>
Philip`: I'm not following what you mean. Broken as in they didn't support surrogate references or they did?
12:35
<Philip`>
robburns: I don't see the relevance of HTML to the parsing of XML
12:35
<hsivonen>
annevk5: in the first edition, even
12:35
<Philip`>
robburns: "Broken" as in they failed the test (and did not reject the document as not-well-formed)
12:38
<robburns>
Philip`: I"m not saying that HTML is relevant to XML, but rather it is relevant to the understanding that two numeric character references that reference valid surrogate pairs can be understood as referencing an astral character
12:39
<Philip`>
robburns: The only things that seem relevant to the parsing of character references in XML are the XML spec and current XML parser implementations
12:39
<robburns>
Philip`: Of course, but the way any reader reads a spec is colored by their understanding of everything they've read before (or understood before).
12:40
<robburns>
Philip`: Unless you think that specs are written with the precision of a programming language
12:40
<robburns>
and I've yet to see one that where I would say that.
12:43
<hsivonen>
anyone got test cases for innerHTML?
12:43
<Philip`>
robburns: Ah, indeed, it's relevant in terms of providing a rough mental model that lets people understand the specs more easily; it just doesn't seem helpful to use that rough mental model when discussing precise details of the spec's requirements
12:44
<zcorpan>
hsivonen: yep, hold on
12:44
<robburns>
Philip`: I would also say that where you would treat the implementations as the arbiter of what the spec actually says, I would rather think about what the spirit of the spec
12:45
<zcorpan>
http://simon.html5.org/test/html/serializing/001.htm http://simon.html5.org/test/html/serializing/002.xht http://simon.html5.org/test/html/parsing/fragment/content-model-flag/
12:45
<robburns>
Philip`: and in this case I would say that the IE treatment of surrogate pair references is more in keeping with the spirit of the xml spec regardless of what others have implemented or produced test cases to demonstrate
12:45
<hsivonen>
zcorpan: great! thanks.
12:46
<Philip`>
robburns: I would treat the apparently unanimous interpretation of the spec by the experts who've implemented the spec and written and reviewed test cases, as being the only relevant interpretation of the spec
12:47
<robburns>
Philip`: I'd probably be with you if you didn't have to use the word "apparently" before "unanimous"
12:47
<zcorpan>
hsivonen: some tests might be wrong by now though
12:47
<hsivonen>
zcorpan: ok
12:47
<robburns>
Philip`: since one implementation didn't treat it that way.
12:48
<Philip`>
robburns: It's only "apparently" because I can only judge it based on all the evidence I've seen
12:48
<zcorpan>
hsivonen: http://tc.labs.opera.com/apis/innerHTML/xml/
12:48
<zcorpan>
and ../
12:48
<Philip`>
robburns: I've not seen anything to indicate that was anything other than a bug, which got quickly fixed once it was identified
12:48
<hsivonen>
robburns: what's ambiguous about: "Characters referred to using character references must match the production for Char." and "Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]"? (quotes from XML 1.0 1st ed.)
12:49
<robburns>
Philip`: which if I understand correctly had IE as doing something different than other implementations, right? So by "apparently unanimous" you meant "nearly unainimous"
12:50
<robburns>
hsivonen: I already addressed that. If it said "A character referred to using a character reference must math the production for Char" However, it says "Characters referred to using character references must match the production for Char" and it seems reasonable to interpret two surrogate paris (one high and one low) as matching that BNR notation.
12:51
<Philip`>
robburns: I mean that (apparently) nobody argued that they interpreted the XML spec as claiming &#xd800;&#xdc00; was valid, regardless of whether they had implementation bugs
12:51
<hsivonen>
robburns: no, it is not reasonable to interpret it in any other way except restricting the expansion of each NCR individually
12:51
<robburns>
Philip`: well whoever read it while implementing the IE parser must have read it that way.
12:52
<robburns>
hsivonen: It's sounds insane when you say that
12:52
<robburns>
hsivonen: Philip`'s quote was more to the point in favor of no surrogates.
12:53
<robburns>
"If the character reference begins with " &#x ", the digits and letters up to the terminating ; provide a hexadecimal representation of the character's code point in ISO/IEC 10646."
12:53
<Philip`>
robburns: More likely they didn't read it carefully at all, and just wrote something that seemed close enough
12:54
<Philip`>
or based it on ancient pre-first-edition version of XML that didn't have the same restrictions
12:54
<robburns>
the word "character" there leans it away from my interpretation. But that's still a a slight lean
12:54
<Philip`>
because that's how most spec-compliance bugs seems to come into existence
12:54
<robburns>
Philip`: Well one could always discount any and all interpretations with that argument. I could say maybe the IE developers were the only ones to read it carefully.
12:55
<robburns>
Philip`: the point is that fatal errors in the case of surrogates is unlike any of the fatal errors. It doesn't break the rest of the page the way others do.
12:56
<Philip`>
robburns: If they read the spec in accordance with its intent, why would they have changed their implementation when finding a test failed, rather than having the test be fixed and the spec clarified to match what was intended?
12:56
zcorpan
wonders why he is reading this discussion
12:56
<robburns>
Two well-formed numeric character references that happen to be an illegal character shouldn't break rendering of the rest of the page (the way other well-formedness errors should) That's what I'm talking about with the spirit of the spec. I agree a serializer shouldn't produce those, but that's a different situation.
12:57
<robburns>
Philip`: I'm not sure. I didn't really follow that web page you sent. I thought you were testing recent IE and it wasn't "fixed"
12:58
<robburns>
zcorpan: maybe it's like a train wreck :-)
12:59
<Philip`>
robburns: The two pages that gave conformance test results for some old (2000) versions of MSXML, and showed that a preview release failed and a slightly later release passed the test?
12:59
<robburns>
Philip`: Yeah, that's what I thought it said. But I also thought you said you tested IE and the surrogate pair references worked in 2009.
13:00
<robburns>
Philip`: and I couldn't reconcile those two things.
13:00
<Philip`>
That was IE6 (from 2001), running in Wine (so I've got no idea what version of MSXML it's using, or if it emulates it using some other code)
13:01
<robburns>
Philip`: OK I see. But didn't you say that IE8 was changing it?
13:02
<Philip`>
robburns: I said I tested in IE8 (on Vista) and it did report the error
13:02
<Philip`>
(Well, I didn't say the "on Vista" part)
13:02
<robburns>
but didn't wasn't fatal right?
13:04
<robburns>
Philip`: I mean "but it wasn't a fatal error, right?
13:05
<robburns>
"
13:06
<Philip`>
robburns: It's an error (and causes an error dialog box to appear), but (at least when I'm just navigating to the XML file directly in IE) it continues parsing the document and displays the rest of it in its usual DOM tree thing
13:06
<Philip`>
(&#0; has exactly the same effect)
13:08
<robburns>
Philip`: well that too is a different reading of the spec.
13:10
<Philip`>
If I access it via XMLHttpRequest, then responseXML is empty if I have &#0; or &#xd800;&#xdc00; etc
13:11
<Philip`>
so the error prevents the XML file from being used
13:11
<Philip`>
so it seems to be a fatal error in that context
13:11
<Philip`>
(It might just be an artifact of the default XML document display that makes it continue past some errors)
13:22
<robburns>
Philip`: which is another way of saying, a different reading of the spec :-)
13:22
<annevk5>
robburns, your way of reading specs is strange
13:23
<robburns>
annevk5: I'm sure it would to you.
13:23
<annevk5>
it seems I'm not alone
13:23
<robburns>
annevk5: no sadly.
13:24
jgraham
thinks robburns would do well as a professor of literature or simesuch
13:24
<jgraham>
*somesuch
13:29
<annevk5>
philosophy maybe?
13:29
<annevk5>
oh, he left
13:29
<annevk5>
:/
13:29
<jgraham>
I woner if I often have that effect on people
13:30
<takkaria>
rob is a professor of literature or somesuch, he's a PhD with interests in Marxist philosophy and history of thought
13:31
<annevk5>
ah, so I was close
13:33
<jgraham>
takkaria: I knew that bit don't know if it has roughly the same job requirements as Literature
13:33
<takkaria>
well, it's all much of a sameness
13:35
<jgraham>
(specifically Literature professors seem to get known for having a specific type of interpretation that they like e.g. Marxist or Feminist or whatever. Then they write about how literature fits their mode of interpretation)
13:37
<JohnResig>
Lachy: hey
13:37
wilhelm
would expect a more pragmatic, practice-based approach from a fellow marxist.
13:41
<Lachy>
JohnResig, I just wanted to check with you that it's OK I incorporate your selectors api tests directly into the official test suite, just for licencing reasons. (I'm not sure what licence the test suite will use yet, but I'll try and make it MIT or something)
13:42
<JohnResig>
Lachy: I think that's ok. I'm curious though - was there really a significant number of other tests to warrant the creation of a new suite?
13:42
<Lachy>
JohnResig, I created the stuff in CVS shortly before you created your tests
13:43
<Lachy>
then I haven't touched it much since, because I was using yours
13:43
<JohnResig>
Lachy: sure - so couldn't we just switch and use the one I created as the official one?
13:43
<Lachy>
possibly, but we would have to make it work in IE8
13:44
<JohnResig>
k, one sec
13:44
<Lachy>
that means we can't use constants like DOMException.SYNTAX_ERR, or tree walkers, and other stuff
13:44
<JohnResig>
Lachy: wait - *passes* in IE8 or *runs* in IE8?
13:45
<Lachy>
it currently doesn't run at all in IE8
13:45
<JohnResig>
lemme see
13:46
<JohnResig>
ok, let me fiddle around with it
13:46
<Lachy>
oh, and where you set the css and ecss variables, you would need to use .innerHTML rathern than .firstChild.nodeValue to get the CSS from the style elements
13:46
<JohnResig>
yeah, I just got to that line, as well :)
13:54
<JohnResig>
Lachy: eww... removing the tree walker is going to make things dicey
13:54
<JohnResig>
Lachy: since this was designed to work on document fragments as well
13:54
<JohnResig>
hmm
13:54
<Lachy>
yeah, that's the bit I got stuck on too
13:54
<JohnResig>
I'll fiddle with it
13:55
<JohnResig>
I've already fixed the CSS loading and the DOMException stuff
13:59
<gsnedders>
jgraham: ping
14:12
<yecril71>
MSIE supports objStyle.text
14:15
<jgraham>
gsnedders: I have a patch for anolis. Also I have updated pms.net to allow passing in options in some cases (specifically: in the case where one GETs a URL rather than POSTs a file) but I have no idea if it works right
14:16
<gsnedders>
jgraham: email it to me
14:16
<gsnedders>
(Sorry, now really isn't a good time for me.)
14:17
<jgraham>
gsnedders: OK
14:26
<jgraham>
gsnedders: Sent
14:27
<gsnedders>
jgraham: I'll reply later (where later means sometime in the future :))
14:31
<jgraham>
gsnedders: No panic
14:31
<Philip`>
gsnedders: That's usually what "later" means...
14:31
<jgraham>
Philip`: Except on a closed-timelike-loop when it also means sometime in the past
14:32
<Philip`>
jgraham: Good point
14:32
<gsnedders>
Philip`: Go read up on emphasis by repetition.
15:04
<Lachy>
sicking, re http://lists.w3.org/Archives/Public/public-html/2009Feb/0249.html - any existing filter that lets through unknown elements like <handler>, would be just as likely to let through new elements like <video> and new event attributes.
15:04
<Lachy>
so, e.g. <video onloadstart="xssAttack();"> would be just as problematic
15:06
<Philip`>
Lachy: They could block any attributes starting with "on"
15:08
<jgraham>
Die, Spellchecking thread, die
15:08
<Lachy>
Philip`, it's possible that they could use a proper whitelist, which would eliminate all the problems. But that doesn't mean there aren't systems out there using black lists that let unknown stuff slip through.
15:10
<Philip`>
Lachy: There might be systems that use blacklists that block some unknown stuff (like attributes starting with "on") but not all other unknown stuff (like <handler> elements)
15:12
Philip`
doesn't know if there really are any, but it doesn't seem too preposterous
15:16
<Lachy>
It would be irresponsible to assume that there aren't any such vulnerable systems. It's safer to accept their existence as a possibility
16:41
<JohnResig>
Lachy: it's running in IE8 now: http://ejohn.org/apps/selectortest/
16:41
<JohnResig>
Lachy: I'm getting 45.9% passing
16:45
<Lachy>
JohnResig, ok. Can you mail publc-webapps and let them know the result
16:45
<JohnResig>
Lachy: sure
16:47
<Lachy>
it looks like many of those failures are due to lack of support for CSS3 selectors. But there are still a few worrying ones with the API
16:47
<Lachy>
what are the "Whitespace Trim" tests testing?
16:48
<JohnResig>
Lachy: I add extra whitespace characters around the selector (spaces, tabs, etc.) all of which should be trimmed
16:48
<JohnResig>
(according to the spec)
16:48
<JohnResig>
I'm sure if they fixed that it would solve a lot of problems - along with the implementation of proper exceptions
16:48
<JohnResig>
that seems to be the majority
16:50
<Lachy>
ok, that's what I though. I was sure that issue was pointed out to them long ago. Their inconsistent handling of whitespace of one fo the reasons I discovered and specced that anyway.
16:50
<Lachy>
s/of one fo/was one of/
16:57
<JohnResig>
Lachy: email sent
16:57
<Lachy>
thanks
18:09
<yecril71>
I feel quite comfortable writing XML, especially in an editor that supports autoclose.
18:09
<yecril71>
And reading XML is much easier then reading something purportedly more readable,
18:10
<yecril71>
like bash script or wikitext, or even C++.
18:10
<yecril71>
The languages that rely on parentheses for nesting are unreadable.
18:11
<jcranmer>
LISP?
18:11
<jcranmer>
sorry
18:11
<jcranmer>
LISP *patooie*
18:12
<yecril71>
Python tries not to, but only for statements, not for expressions.
18:12
<yecril71>
OTOH, Python is unwritable (at least for me).
18:16
<yecril71>
So XML is a jolly good fellow, in spite of the rumours that some people are trying to spread :-)
18:48
<dimich>
Is XmlHttpRequest specification a part of HTML5 or some other specification? I can't find it in http://www.whatwg.org/specs/web-apps/current-work ...
18:49
<svl>
dimich: it started out there, but is now at http://www.w3.org/TR/XMLHttpRequest/
18:49
<dimich>
svl: thx!
20:01
<annevk5>
dimich, you want http://dev.w3.org/2006/webapi/XMLHttpRequest/ and http://dev.w3.org/2006/webapi/XMLHttpRequest-2/ probably
20:06
<dimich>
annevk5: thanks! I see, those are the latest ones :-)
20:07
<annevk5>
yup
20:27
<tantek>
re: hit-testing and transparency, since this effects event handling, is this something HTML5 says (should say or does say) something about? real world case today, the "Don't Click" viral attack that occurred on Twitter this morning (PST). exploit source here for your inspection: http://pastie.org/387315
20:29
<Philip`>
Hixie: Why does rowspan=0 make cells very tall, when IE just ignores rowspan=0 entirely and makes it 1 row tall?
20:30
<Philip`>
(Presumably it can't be needed for compatibility, and so it's unnecessary complexity)
20:34
<Philip`>
Oh, I suppose it's there because HTML4 said that's what rowspan=0 means
20:35
<Philip`>
Firefox already ignores it in quirks mode
20:36
<Philip`>
Safari 3.2 and IE6 and IE8 always ignore it (in quirks and standards)
20:36
<Philip`>
Opera 9.6 never ignores it
21:12
<Hixie>
lol someone on reddit told me to look up the acronym "css"
21:22
<gsnedders>
Hixie: where?
21:24
<Hixie>
http://www.reddit.com/r/worldnews/comments/7wr4i/new_eu_rule_requires_all_web_servers_to_log_ip/c07mfrb?context=3
21:25
<gsnedders>
Hixie: Yeah, I just found that by finding your profile by googling for hixie reddit :P
21:26
<gsnedders>
Hixie: Also, re:top gear, I too have see things about filming shots for the races after the actual race
21:26
<Hixie>
yeah i found a blog entry about it later
21:26
<Hixie>
see a comment i made
21:28
<Philip`>
Top Gear faking shots? That'd never happen :-(
21:28
<gsnedders>
Well, they already faked a death.
21:28
<gsnedders>
And then revealed that the dead lived.
21:29
<Hixie>
it's not really faking shots
21:29
<Hixie>
i mean the shots are real
21:29
<Hixie>
and what they depict did happen
21:29
<Philip`>
Well, faking the context of shots
21:30
<Hixie>
that's what tv is pretty much all about :-)
21:30
<Philip`>
I remember some people commenting on http://www.dailymail.co.uk/tvshowbiz/article-471541/BBC-admit-Top-Gear-caravan-blaze-fake.html actually having faked shots (simulating big fires by putting little fires in front of the camera)
21:30
<gsnedders>
This is why live TV is interesting.
21:30
<gsnedders>
A challenge of how well you can do it.
21:30
<Philip`>
(Not commenting on that article, just on the event which that article describes)
21:30
<annevk5>
Yet another series of e-mail with someone from QA about namespaces and attributes; I've enough of this fricking RDF tax
21:31
<annevk5>
Someone please take Namespaces in XML around the back and shoot it.
21:32
<Hixie>
jesus, svg 1.2 tiny makes elements focusable based on _whether there is an event listener for DOMFocusIn_
21:32
<Hixie>
not even on whether the event handler doesn't cancel the event or anything
21:34
Philip`
saw a recent remake of The Quatermass Experiment which was broadcast live, and it's probably the first (and only) live-broadcast drama show he's ever seen
21:35
<Philip`>
(It worked pretty well, except for some occasional rubbish sound balancing and a couple of wrong lines)
21:36
<gsnedders>
Philip`: Does "The Bill" count as drama? AFIAK they've done special live versions of that
21:36
<Philip`>
gsnedders: It probably does, but I've not watched it since about ten years ago :-)
21:37
<gsnedders>
I've never watched it :)
21:39
<Hixie>
so in svg... if you hook up an event listener to catch events for a group of elements (e.g. on a <g>)
21:39
<Hixie>
the element suddenly becomes focusable itself
21:39
<Hixie>
good lord
21:39
<Hixie>
that's gotta make debugging svg a pain in the ass
21:40
<gsnedders>
and then shepazu joins, right on cue.
21:41
<Hixie>
heh
21:41
<Hixie>
shepazu: any idea where in svg 1.2 tiny it says that focus is lost when the element is removed?
22:15
<Hixie>
aaaah!
22:15
<Hixie>
pimpmyspec.net broke back compat!
22:16
<annevk5>
ooh, it broke the WHATWG credo?
22:17
<Hixie>
jesus, this is going to be a pain
22:17
Hixie
tries to work out what options he wants based on the html source he's looking at
22:18
<Hixie>
jesus what a lot of options
22:18
<Hixie>
i hope there are good defaults
22:19
<Hixie>
it never ends!
22:19
<Hixie>
bad jgraham
22:19
<Hixie>
bad!
22:19
<Hixie>
:-P
22:20
<Hixie>
well whatever options i picked were the wrong options, clearly
22:20
<Hixie>
this is a 64000 line diff
22:21
<Hixie>
i wonder what i need to change
22:21
<Hixie>
let's try w3c_compat_xref_a_placement
22:22
<Hixie>
ok that helped, 44000 lines now
22:23
<Hixie>
it stopped omitting tags, hmm
22:23
Hixie
looks
22:23
<Hixie>
aha, omit_optional_tags
22:24
<Hixie>
maybe i want lxml_html
22:25
<Hixie>
oh yes, much faster
22:28
<Hixie>
no that didn't work either
22:28
<Hixie>
wtf
22:28
<Hixie>
man this is a pain
22:28
<Hixie>
i wonder how to get back to what it was like before
22:29
<Philip`>
Try using http://www.google.com/search?q=cache:mEF8fH15-joJ:pimpmyspec.net/
22:30
<Hixie>
uh huh
22:30
<Hixie>
i can't get it to act as before!
22:30
Hixie
cries
22:30
<Philip`>
What kinds of differences does it have?
22:32
<Hixie>
e.g.
22:32
<Hixie>
- </style><link href=status.css rel=stylesheet><script>
22:32
<Hixie>
+ </style>
22:32
<Hixie>
+ <link href=status.css rel=stylesheet>
22:32
<Hixie>
+ <script>
22:32
<Hixie>
or:
22:32
<Hixie>
- </script><body class=draft onload=init()>
22:32
<Hixie>
+ </script>
22:32
<Hixie>
+ </head>
22:32
<Hixie>
+ <body class=draft onload=init()>
22:33
<Hixie>
and:
22:33
<Hixie>
- <h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 12 February 2009</h2>
22:33
<Hixie>
+ <h2 class="no-num no-toc" id=draft-recommendation-\342\200\224-date:-01-jan-1901>Draft Recommendation \342\200\224 12 February 2009</h2>
22:35
<Philip`>
How odd
22:36
<annevk5>
oops, clearly there should've been stable.pimpmyspec.net or something (or this should've been on unstable.pimpmyspec.net)
22:38
<Philip`>
That sounds like a lot of effort compared to just waiting until jgraham comes back and fixes it
22:43
<heycam>
Hixie, what's the difference between http://svn.whatwg.org/webapps/index and http://specs/web-apps/current-work/
22:43
<Hixie>
the second one doesn't exist
22:43
<heycam>
oops
22:43
<Hixie>
or is that a trick question?
22:43
<Hixie>
:-P
22:44
<heycam>
insert an "www.whatwg.org/"; in there
22:44
<Hixie>
oh
22:44
<Hixie>
the former is the svn repo of the latter
22:44
<Hixie>
the latter is my working directory
22:44
<gsnedders>
ergh. almost an hour between trains.
22:44
<heycam>
ok, but i can be reasonably up to date by just "svn up"ing the former, and reading index?
22:44
<Hixie>
i edit current-work/working-copy, then when i run my update script it gets copied over to current-work/source and regenned to current-work/index, and when i commit it goes to svn.whatwg.org and dev.w3.org
22:45
<Hixie>
yes
22:45
<heycam>
ok i see
22:45
<heycam>
thanks
22:45
<Hixie>
there are three levels; last stable checkin, what i last saved and generated, and what i literally am typing right now
22:45
<Hixie>
svn is the first of those three
22:45
<Hixie>
(as is w3c cvs)
22:45
<Hixie>
if you're looking at the source of the doc, you want the /source file not /index
22:46
<Hixie>
/index has all the cross-references, etc
22:46
<heycam>
right. i just want an offline copy of the spec, so reading index is what i need, i think.
22:46
<Hixie>
k
22:46
<Hixie>
ok well since i can't work on the spec until jgraham gets back, i guess i'll go to work and get some food
22:46
<gsnedders>
Hixie: pms.net down?
22:46
<Hixie>
gsnedders: see above
22:46
Philip`
hopes jgraham hasn't been hit by a bus, because that'd be the end of the entire HTML5 endeavour
22:47
<gsnedders>
ah
22:47
<Hixie>
right, back in a bit
22:48
gsnedders
hopes he can find the right bus stop to get off at tomorrow
22:49
gsnedders
also he doesn't have such a bad cold
23:24
heycam
only just realised that the names of the CSS 2.1 appendices all begin with their appendix letter
23:29
<Philip`>
I guess that's why there's no appendix H
23:30
<heycam>
yeah, Index is a nice one to finish on
23:30
<Hixie>
there is an appendix H
23:30
<heycam>
oh
23:30
<heycam>
oops
23:30
<heycam>
i missed that...
23:30
<Hixie>
no, you didn't :-)
23:30
<heycam>
and also overlooked the fact that H is before I :)
23:31
<heycam>
H for the Hidden Appendix?
23:31
<Hixie>
almost
23:31
<Hixie>
but there actually is a page for it
23:31
<Hixie>
it's just not listed in the table of contents
23:32
<heycam>
ahaha
23:32
<Hixie>
i'm quite proud that the wg actually ended up with the joke around the appendix names
23:32
<heycam>
i see it :)
23:32
<Hixie>
it was a lot easier to slide jokes into html5 :-P
23:32
<Hixie>
selectors also has joke sections, though actually in the case of selectors it was completely unintentional
23:32
<Hixie>
(look for the section after :empty)
23:33
<Philip`>
http://www.w3.org/TR/CSS21/leftblank.html ?
23:33
<Hixie>
yup, that's H
23:33
<heycam>
i notice you can get to it from the next/previous chapter links
23:33
<Philip`>
Oh, I didn't see the next/previous links
23:34
<Hixie>
appendix E in CSS2.1, and to a less extent F, were the only ones that we had to really stretch for
23:34
<Hixie>
lesser rather
23:34
<heycam>
that section after :empty thing reminds me of the discussion about the hebrew numbering system on www-style recently
23:34
<Hixie>
heh
23:34
<Hixie>
you wouldn't believe the number of private e-mails i've gotten about that section telling me how stupid i am for leaving it blank
23:35
<heycam>
heh really
23:35
<Hixie>
but actually it was just a coincidence -- we wanted to remove that section (it defined :contains(), which we removed in CR) and we didn't want to renumber things
23:36
<Lachy>
Hixie, wasn't that section 6.6.6 in Selectors, not Appenix H in CSS21?
23:37
<Hixie>
yes, that's what i'm talking about
23:37
<Hixie>
i was responding to heycam
23:37
<Lachy>
oh, I didn't see a mention of selectors spec. Now I see he mentioned :empty
23:37
<Hixie>
so is anyone in the same country as jgraham
23:39
<Philip`>
I'm not aware of any countries with a population of 1, so almost certainly there is someone
23:39
<Lachy>
he's in Sweden. There's probalby some people from Opera's swedish office hanging around in here
23:39
<Lachy>
though zcorpan isn't here
23:40
<Hixie>
Philip`: i meant anyone here :-P
23:41
<Lachy>
Hixie, why do you need someone from the same country?
23:41
<Hixie>
so they can go and see if he's awake
23:42
<Philip`>
"This expression has type 'a * 'b * 'c * int * int but is here used with type ((int * int * int * int) * node * 'd) * int * int * int * int * ((int * int * int * int) * ((int * int * int * int) * node * 'd) * 'e) list"
23:42
<Philip`>
OCaml is great
23:43
<jwalden>
Hindley-Milner really is pretty cool, until you screw it up
23:43
<Philip`>
Oh, I forgot to add one function argument
23:44
<Lachy>
oh, so you'd want someone who also knows where he lives and is willing to go out in the cold snow, go over to his place and knock on his door. That reduces the number of candidates significantly
23:45
<Hixie>
Lachy: actually i'm not sure it really does, of the people in this channel :-)
23:45
<Lachy>
well, if it goes from 0 down to 0, then that's no change I guess
23:51
<ojan>
Hixie: ping
23:51
<Hixie>
hey
23:52
<ojan>
why did you spec execCommand("InsertHTML") to not fire mutation events?
23:52
<ojan>
is taht just what FF does?
23:59
<ojan>
just curious :)