00:10
<JonathanNeal>
If I had a text selection plugin that selected text from X to Y, would you think that Y was a length or an absolute distance like X?
00:11
<Philip`>
Yes
00:12
<JonathanNeal>
Yes to which?
00:12
<Philip`>
I wouldn't assume one particular behaviour - JS isn't even self-consistent, with substr vs substring
00:12
<Philip`>
so I'd check the documentation
00:48
<MikeSmith>
karlcow: thanks for catching the td/@scope thing
00:48
<MikeSmith>
fixed now
00:49
<karlcow>
thanks!
00:49
<MikeSmith>
the reason validator.nu didn't have that same bug is that the mistake was in the assertions.sch (Schematron) file, which v.nu doesn't actually use (it uses some workalike Java code now)
04:54
<othermaciej>
does CORS limit what headers can be sent cross-site using a whitelist or a blacklist?
04:54
<othermaciej>
I guess it's a whitelist unless you opt into more
05:18
<Hixie>
othermaciej: anything interesting on the hybi list today? i saw masses of traffic but haven't read it yet
05:19
<othermaciej>
Hixie: useful info about close handshake and what it takes to make one that actually works (depending on what you are trying to achieve)
05:19
<Hixie>
cool
05:19
<othermaciej>
several server authors conceding that header ordering / capitalization is their only practical problem with "not really HTTP"
05:19
<othermaciej>
I sent a more detailed comment outlining the security risks that my nonce proposal was meant to address, as well as a more detailed description of how it could work
05:19
<othermaciej>
I will ask abarth to look at the latter as soon as it appears in the archives
05:21
<Hixie>
cool
07:03
<hsivonen>
:-( the jQuery team still talks about "access control" instead of CORS
07:17
<Hixie>
i've decided to take a new approach to the whole "Flash is ready now, HTML5 won't be ready til 2022" thing.
07:18
<Hixie>
"2022 is the date I estimate there'll be two complete and bug-free implementations of HTML5. What's the estimated date for when there'll be two complete and bug-free implementations of Flash?"
07:25
<hsivonen>
Hixie: is Adobe Flash Player axiomatically bug-free?
07:25
<hsivonen>
can reference impls have bugs?
07:26
<hsivonen>
but, yeah, that's the appropriate response
07:27
<annevk>
I thought Flash was over?
07:28
<hsivonen>
annevk: do you have it installed?
08:09
<Lerc>
wayhay! Logfile says... Output_String(ae8ff128)
08:09
<Lerc>
All Done!
08:09
<Lerc>
BAD!! :vxproc_run trap 0xe
08:09
<Lerc>
Plugin Thread Terminating
08:10
<Lerc>
Logfile generated from running this code --> http://pastebin.ca/1776349
08:10
<Lerc>
in this browser plugin --> http://i.imgur.com/5tGBv.png
08:10
<annevk>
hsivonen, I think so, though it's either disabled/not working in my day-to-day browser
08:11
Lerc
too, is planning a way to give Flash a kick in the guts.
08:13
<Lerc>
With a bit of luck I can also be finished by 2022.
08:13
<annevk>
with what?
08:14
<Lerc>
said browser plugin above ^^^
08:16
<hsivonen>
annevk: I am weak. I still unblock Flash for YouTube, Google Maps and thedailyshow.com
08:16
<meledin>
youtube.com/html5?
08:16
<hsivonen>
but I've disabled Flash in Fennec on my N800
08:17
<hsivonen>
meledin: I use a browser that doesn't support proprietary codecs except via NPAPI
08:17
<Hixie>
hsivonen: yeah i did consider that one of the possible follow-ups would be to say something like "i'm feeling generous. How about an ETA for _one_ bug-free implementation?" but that's not really the point I wanted to make. :-)
08:17
<annevk>
I still don't understand how non-ASCII cookies work
08:18
<annevk>
I guess I'm missing something
08:19
<hsivonen>
looks like my flashblock whitelist has 8 sites on it
08:19
<hsivonen>
and one of them isn't even available to IP addresses associated with Finland
08:19
<hsivonen>
looks like I whitelisted hulu while traveling
08:20
<hsivonen>
the whitelist being google.com, hulu.com, lufthansa.com, thedailyshow.com, vimeo.com, youtube.com, google.fi and sony.fi
08:21
<hsivonen>
so one airline whose online check-in is implemented cluelessly
08:21
<matijsb>
unbelievable
08:21
<hsivonen>
one product catalog site that is implemented cluelessly
08:21
<hsivonen>
Google Maps
08:21
<hsivonen>
plus video sites
08:22
<hsivonen>
I'm sure other people have other kinds of lists, but it seems that everything on my list could already be done with browser-native features in Firefox, Chrome and Safari (and soon Opera)
08:22
<meledin>
All I know is I developed a disdain for Flash once I realised it was the cause of 100% CPU use on one core whenever it activated, no matter what it was doing
08:23
<meledin>
Also that gave me a handy excuse to ignore any youtube links
08:25
<matijsb>
Flash has been abused for the wrong purpose too many times
08:32
<Peter->
definitely
08:32
<Peter->
a co-worker of mine recently said "Flash is here to replace GIF"
08:34
<annevk>
I guess the non-ASCII thread is not about DOMString to byte mapping at all
08:34
<annevk>
Fronteers invading #whatwg or has it always been like this? :)
08:35
<matijsb>
Been evesdropping a bit up until now ;)
08:35
<matijsb>
eavesdropping even
08:39
<meledin>
Been trying to eavesdrop but irssi-proxy was being annoying
08:43
<Hixie>
othermaciej: i'm getting "can't send to channel" on #webkit for some reason
08:43
<Hixie>
othermaciej: any idea why?
08:44
<othermaciej>
Hixie: it might be set to require registration
08:44
<Hixie>
ah
08:44
<othermaciej>
to protect against flooding
08:44
<othermaciej>
is your nick registered?
08:44
<othermaciej>
I can try to fix it if I remember how
08:44
<Hixie>
i thought it was
08:44
<Hixie>
let me try reconnecting
08:45
<Hixie>
hm, that fixed it
08:58
<hsivonen>
MikeSmith: http://pastebin.mozilla.org/700863
09:00
<MikeSmith>
hsivonen: thanks
09:01
<hsivonen>
MikeSmith: I don't see a BOM on the first line of the files it complains about
09:01
<hsivonen>
so can't be that
09:01
<hsivonen>
if the datatype lib isn't loading, there's no explicit error about that
09:01
<MikeSmith>
hsivonen: ah, I'm pretty sure that's because of the misguided monkeying I did with the entity-map.txt
09:02
<MikeSmith>
I think you might have to do the thing of running the build twice
09:02
<MikeSmith>
to rebuild the local-entities jar file
09:02
<MikeSmith>
I think
09:02
hsivonen
runs localent
09:05
<hsivonen>
ok. that fixes the schemas
09:05
<hsivonen>
now I get
09:05
<hsivonen>
Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at java.util.LinkedList.entry(LinkedList.java:365) at java.util.LinkedList.get(LinkedList.java:315) at nu.validator.messages.MessageEmitterAdapter.<clinit>(MessageEmitterAdapter.java:136)
09:05
hsivonen
investigates
09:05
<annevk>
othermaciej, agreed that the credentials thing is just a bug
09:06
<MikeSmith>
hsivonen: yeah, I am getting that same error too
09:06
<annevk>
othermaciej, I was never quite sure how to spell it out so I guess I sort of forgot...
09:06
MikeSmith
looks also
09:06
<othermaciej>
annevk: should I file it somewhere?
09:06
<othermaciej>
annevk: the way UMP spells it out seems fine to me
09:07
<annevk>
usually I just keep track of email and delete email once I fixed the bug
09:07
<hsivonen>
is the wiki down or something
09:07
<annevk>
we have an issue tracker if you prefer to have an issue number associated with it
09:07
<MikeSmith>
hsivonen: looks to be up
09:08
<hsivonen>
so it's failing when loading the alt advice
09:08
<annevk>
othermaciej, http://www.w3.org/2006/webapi/track/
09:08
<MikeSmith>
maybe http://wiki.whatwg.org/wiki/Validator.nu_alt_advice changed in an unexpected way
09:08
<hsivonen>
and alt advice is unchanged
09:08
<MikeSmith>
yeah
09:08
<hsivonen>
the content at least
09:08
hsivonen
wonder if MediaWiki around it changed
09:08
<hsivonen>
yay for distributed failures
09:08
<othermaciej>
annevk: I hate using the tracker as a bug tracker but ok
09:09
<othermaciej>
annevk: actually I don't appear to have the power to raise issues in that one
09:09
<annevk>
oh, sorry
09:10
<annevk>
we switched WGs :)
09:10
<annevk>
http://www.w3.org/2008/webapps/track/ is it
09:10
<MikeSmith>
Hixie, Lachy - was the whatwg Wiki backend updated recently?
09:10
<hsivonen>
annevk: whoa. that tracker has a lot of people on it
09:11
<othermaciej>
does XHR send Referer?
09:12
<othermaciej>
If so, that's a third way in which UMP might not be a CORS subset (unless CORS is taken to give license to exclude it)
09:13
<othermaciej>
http://www.w3.org/2008/webapps/track/issues/114
09:14
<Lachy>
MikeSmith, yes
09:14
<MikeSmith>
ah
09:14
<Lachy>
AryehGregor updated it to 1.6 beta
09:14
<othermaciej>
annevk: should CORS with a unique identifier Origin strip Refer, or would that happen automatically?
09:14
<MikeSmith>
OK
09:15
<MikeSmith>
Lachy: the change seems to have possibly broken the mechanism that validator.nu uses for parsing out the alt-advice from the Wiki
09:15
<annevk>
othermaciej, it would not happen automatically
09:15
<othermaciej>
what Refer (if any) gets sent when you have a unique identifier origin?
09:15
<othermaciej>
er, Referer
09:15
<MikeSmith>
Lachy: and maybe also the code for retrieving microsyntax info
09:15
<othermaciej>
it's so hard to type the misspelling!
09:16
<annevk>
othermaciej, heh
09:16
<annevk>
othermaciej, I'm not sure really
09:16
<annevk>
I've no idea how Referer is constructed usually
09:16
<othermaciej>
does XHR specify anything about Referer?
09:17
<annevk>
Only that authors cannot manipulate it iirc
09:17
<annevk>
Yup, that's all
09:18
<othermaciej>
does HTML5 specify the Refer to use when the origin is a unique identifier? (and would that apply to XHR or CORS?)
09:18
hsivonen
wonders if the old MediaWiki used <h2> for "Contents"
09:18
<othermaciej>
(I'm trying to figure out what bugs if any I need to file)
09:18
<Hixie>
othermaciej: look for the "fetch" algorithm
09:18
<Hixie>
othermaciej: it says how to determine Referer
09:18
<Hixie>
othermaciej: let me know if it needs changing
09:19
<hsivonen>
maybe the code needs to scrape span class="mw-headline" instead of h2
09:19
<othermaciej>
Hixie: no hits on the term "fetch algorithm"
09:19
<Hixie>
http://www.whatwg.org/specs/web-apps/current-work/complete.html#fetch
09:19
<othermaciej>
well there are, but all relating to media elements
09:20
<othermaciej>
it looks like the computation of Referer does not specifically consider whether the origin is a unique identifier
09:21
<othermaciej>
"Generate the address of the resource from which Request-URIs are obtained as required by HTTP for the Referer (sic) header from the document's current address of the appropriate Document as given by the following list."
09:22
<Hixie>
i guess it just always gives the full URL currently
09:22
<Hixie>
data: and all
09:22
<othermaciej>
Hixie: I think it should probably say that no Referer should be sent if the origin is a unique identifier
09:22
<annevk>
XMLHttpRequest does not use "fetch"
09:22
<othermaciej>
both for the sake of data: and for the sake of sandboxed iframes
09:23
<annevk>
I tried, but it did not work out for some reason
09:23
<othermaciej>
annevk: XHR probably needs to spec Referer itself then
09:23
<hsivonen>
hmm. weird. the first list item has the right content at least at the start
09:23
<othermaciej>
or rather, what URI to use for Referer as required by HTTP
09:23
<Hixie>
othermaciej: can you enter a bug using the review feedback tool?
09:24
<annevk>
othermaciej, yeah :/
09:24
<othermaciej>
Hixie: doing it the old fashioned way
09:24
<MikeSmith>
hsivonen: yeah, I noticed the same thing
09:25
<Hixie>
othermaciej: thanks
09:25
<Hixie>
anyone know if the fullscreen thread has reached a conclusion i can spec? was the security problem figured out?
09:26
<Hixie>
i have 300 e-mails on video that i should get around to replying to
09:26
<Hixie>
and 143 on parsing
09:26
<othermaciej>
I need to read the video thread
09:26
<othermaciej>
the fullscreen thread rather
09:26
<othermaciej>
and the es-discuss threads on modules
09:27
<annevk>
I thought the fullscreen thread was awaiting some input from WebKit
09:27
<annevk>
but maybe I missed something
09:27
<othermaciej>
then I better read it
09:27
<othermaciej>
though I know Simon posted
09:28
<annevk>
oh yeah, hmm
09:28
<othermaciej>
I believe that for subtle reasons the fullscreen video API we have in WebKit is secure, but I would much prefer a general fullscreen API (not sure why we did not do that) and that might be a harder problem
09:28
<othermaciej>
filed http://www.w3.org/Bugs/Public/show_bug.cgi?id=8869
09:29
<othermaciej>
annevk: I'm not sure if CORS needs to specify Referer behavior in addition to XHR
09:29
<Hixie>
i'd love to know how it's secure :-)
09:29
<hsivonen>
MikeSmith: it looks like the condition for moving out of IN_PROSE is brittle
09:30
<othermaciej>
Hixie: I think you can't use it to fool the user into thinking it's the OS because it has a distinct animation going into it (so it's clear what is happening), because it shows controls when it first pops up, and because it requires a user event to pop it up (so it can't just go fullscreen while you are AFK)
09:30
<othermaciej>
it also doesn't accept keyboard input
09:30
<othermaciej>
I am not sure what other security risks people are worried about
09:30
<hsivonen>
this is not as bad as reading one's old Perl code, but I wish I had written down what I was thinking when I wrote the exit condition for IN_PROSE
09:31
<hsivonen>
aah. now I remember
09:31
<MikeSmith>
heh
09:31
<Hixie>
othermaciej: ew, not allowing keyboard input is a pretty coarse solution
09:31
<Hixie>
othermaciej: effective, mind you
09:31
<hsivonen>
MediaWiki has moved to id='foo' and gotten rid of the <a name> cruft
09:31
<hsivonen>
so yay, I guess
09:32
<annevk>
so they're up to 2000 standards now?
09:32
<annevk>
good for them!
09:32
<othermaciej>
annevk: http://www.w3.org/2008/webapps/track/issues/115
09:33
<othermaciej>
Hixie: well, it's sufficient for <video>, but not really for arbitrary full-screen
09:33
<annevk>
yay, issues
09:33
<annevk>
we'll do eternal WD for XHR
09:33
<othermaciej>
Hixie: a full-screen video should not need the ability to handle arbitrary user events (since in our current model at least it gets built-in standard controls)
09:33
<othermaciej>
annevk: I don't think that one warrants coming out of CR or redoing LC or whatever
09:33
<annevk>
sometimes it would be nice to have a WHATWG copy I could mark as Draft Standard so people would implement it
09:34
<othermaciej>
is anyone currently unwilling to implement it due to the current status?
09:34
<annevk>
Boris Zbarsky has indicated that, though maybe it is no longer true
09:34
<annevk>
not sure about the IE guys either
09:35
<annevk>
(of course Firefox does implement all the new features)
09:35
<Hixie>
annevk: i've suggested setting something up so i can import XHR into the complete.html spec on the fly :-)
09:35
<othermaciej>
if Firefox is refusing to implement the bug fixes because the spec is not CR, that is major weaksauce
09:35
<othermaciej>
like I said though I don't think the Referer issue should block CR
09:36
<hsivonen>
Hixie: wouldn't that contaminate the spec's license?
09:36
<othermaciej>
it is not an error per se, just a case where something is underspecified by the other relevant specs
09:36
<annevk>
no, it's more that he's not interested in spending much time on it
09:36
<othermaciej>
I guess if it goes CR it can be in Acid4
09:36
<Hixie>
hsivonen: well anne would have to relicense it, yeah
09:36
<annevk>
Acid4 hopefully has new criteria
09:37
<othermaciej>
then, after copious whining about how acid tests suck, Mozilla and IE would conform to the spec
09:37
<annevk>
and yeah, it should test every single bug, twice
09:37
<annevk>
we'll get to REC in no time :)
09:38
<annevk>
othermaciej, you think we still want UMP if we can get AnonXMLHttpRequest?
09:38
<othermaciej>
annevk: I don't buy Tyler's arguments for why we need it if CORS clearly has a mode that is equivalent to UMP
09:38
<annevk>
othermaciej, if so I'm not sure AnonXMLHttpRequest or XMLHttpRequest(anon=true) is worth it
09:39
<annevk>
k
09:39
<othermaciej>
annevk: his argument that CORS should be written as a UMP extension in particular does not sway me, since UMP is not written in a way that seems to allow extensions
09:39
Hixie
strongly prefers an argument and not a whole new object
09:39
<othermaciej>
whether AnonXMLHttpRequest uses UMP or a CORS mode doesn't really matter much to me though
09:39
<Hixie>
i guarantee a whole new object will result in a whole set of new bugs
09:40
<annevk>
it's a new constructor
09:40
<othermaciej>
I have mixed feelings
09:40
<annevk>
not object
09:40
<othermaciej>
benefits of new object:
09:40
<annevk>
it's not a new object!
09:40
<annevk>
:)
09:40
<othermaciej>
1) slightly easier for Caja-like things to do their thing
09:40
<othermaciej>
2) could remove or further restrict APIs that you are not allowed to use for an anonymous request
09:41
<othermaciej>
for example, it could completely lack the ability to set the credentials flag
09:41
<othermaciej>
instead of having to specify that for the anon case, it is ignored or raises an exception
09:41
<othermaciej>
should lack the ability to set custom headers other than the whitelist too
09:41
<othermaciej>
but that wouldn't remove API, just add more restrictions
09:41
<hsivonen>
so wasn't Caja supposed to be magic that makes advertising JS safe on exising browsers?
09:42
<hsivonen>
and new Caja requires changes to the browser platform?
09:42
<hsivonen>
s/new/now/
09:42
<othermaciej>
it doesn't require changes
09:42
<Hixie>
annevk: JS constructors are objects
09:42
<Hixie>
annevk: so technically... :-P
09:42
<othermaciej>
right now if you wanted to use a Caja-like solution that allowed XHR, you would have to write an elaborate facade
09:42
<othermaciej>
with XMLHttpRequest(anon=true), the facade would be a lot simpler
09:43
<Hixie>
i'm sure if you were writing Caja you'd want control over the API anyway, so you'd write the facade either way
09:43
<othermaciej>
with AnonXMLHttpRequest(), it could be even simpler than that
09:43
hsivonen
hasn't read all the UM stuff carefully
09:45
hsivonen
wonders if it were easier for Google to tell advertisers to write Java to a tiny API and run a trusted copy of the GWT compiler with JSNI disabled for advertiser-originated code at Google's end
09:45
<hsivonen>
seems easier to lock down $ENTIRE_DIFFERENT_LANGUAGE compiled to JS than JS itself
09:50
<annevk>
boo, Nexus One is done by Vodafone in the Netherlands
09:51
<Hixie>
hsivonen: hat's what Caja is
09:51
<Hixie>
er
09:51
<Hixie>
that's, even
09:51
<Hixie>
annevk: isn't it an unlocked device?
09:55
<hsivonen>
Hixie: oh. Is Caja's $ENTIRE_DIFFERENT_LANGUAGE just a JS lookalike?
09:55
jgraham
doesn't like any solution with GWT as a component
09:56
<Hixie>
hsivonen: yeah
09:56
<hsivonen>
jgraham: because the GWT toolkit is bad for the Web?
09:56
<hsivonen>
jgraham: the GWT *compiler* is cool
09:56
<jgraham>
Because GWT is bad for my sanity
09:56
hsivonen
disapproves of the toolkit
09:56
<Hixie>
hsivonen: i think in fact it _is_ JS
09:56
<Hixie>
hsivonen: just running in a different context
09:56
<Hixie>
hsivonen: which is then compiled to run on the web context
09:56
<jgraham>
(specifically debugging problems in GWT generated code is bad for my sanity)
09:57
<hsivonen>
jgraham: I see
09:57
<Hixie>
doesn't GWT have a debugger?
09:57
<jgraham>
(which is a very self-centred viewpoint but there you have it)
09:57
<hsivonen>
jgraham: I thought you disapproved of Opera-unfriendliness of the browser-specific code paths in the toolkit
09:57
<Hixie>
oh you mean other people's code
09:57
<jgraham>
hsivonen: That too
09:58
hsivonen
wishes someone wrote a competitive GUI toolkit for GWT without browser sniffing
09:58
<jgraham>
Although I don't really know how much that is endemic to the toolkit and how much is application-specific
09:58
<hsivonen>
my only use of GWT deliberately exorcises the toolkit and browser sniffing
09:59
<hsivonen>
jgraham: I thought building in Web Worst Practices in the toolkit was a major performance selling point
09:59
<hsivonen>
(loading code on a per-browser basis for 3 browsers)
10:00
<hsivonen>
(or maybe 4)
10:00
<jgraham>
hsivonen: I have never really investigated the sasuage factory, just picked apart some of the sasuages
10:04
hsivonen
wonders if the V8 hidden classes feature manages to reidentify the Java classes
10:05
<annevk>
Hixie, ah yeah, there's that
10:05
<annevk>
Hixie, I read an article that just talked about Vodafone... didn't really think further (also, it's not out yet)
10:06
<annevk>
all this global market but local rules stuff makes me sad
10:15
<hsivonen>
Web5 exists already http://web5.w3.org/
10:15
<annevk>
Web4 too, by that measure :)
10:54
<annevk>
omg, drama over nothing
11:08
<hsivonen>
annevk: ?
11:09
<annevk>
over at the neighbors in #html-wg
11:09
<hsivonen>
hmm. the BBC is endin their Real Media feeds
11:10
<hsivonen>
I can't recall when I've last played Real Media
11:10
<hsivonen>
annevk: I see
11:12
<annevk>
I wish there were better text heuristic tools. We could feed them lots of IRC logs and email and make a whine-o-meter
11:13
<hsivonen>
I see a potential 20% time Google project
11:53
<zcorpan>
using favicon in notifications makes svg favicons more useful
12:00
hsivonen
wonders where the API docs are for making this UI show up: http://i.msdn.microsoft.com/Aa511497.notifications16%28en-us,MSDN.10%29.png
12:01
<boogyman>
hsivonen: unless you're building a desktop application, CSS3 can handle drop shadows... ask over in #css for more information
12:03
<hsivonen>
boogyman: I meant the Windows API for showing such a notification
12:05
<boogyman>
I am sure there is a #microsoft based channel that can solve your inquiry
12:06
<annevk>
prolly no need to tell hsivonen how to search :)
12:06
<zcorpan>
hsivonen: i'm under the impression that there's no standard api for notifications in windows, since different apps seem to have different options and style for notifications
12:07
<zcorpan>
but then again i don't know anything about windows apis
12:07
<Hixie>
ok well i should sleep
12:07
<Hixie>
nn
12:07
<boogyman>
t/c Hixie
12:10
<hsivonen>
zcorpan: http://msdn.microsoft.com/en-us/library/aa511497.aspx makes it look like there's an OS service
12:10
<hsivonen>
but they don't bother linking to the APIs
12:48
<Philip`>
hsivonen: Shell_NotifyIcon seems to be the OS-provided way
12:49
<Philip`>
(but then everyone implements their own different versions)
12:49
<virtuelv>
fwiw, on h.264 vs. Theora:
12:49
<virtuelv>
http://www.reddit.com/r/programming/comments/axhld/no_you_cant_do_that_with_h264/c0jwnjx
12:51
<annevk>
so does YouTube pay for all those people encoding their videos?
12:51
<annevk>
hmm
12:51
<annevk>
but yeah, non-free exchange standards suck
12:51
<hsivonen>
virtuelv: Freedom Zero FTW
12:51
<hsivonen>
Philip`: thanks
12:53
<hsivonen>
annevk: a more interesting question is: does Blip.tv pay MPEG-LA when the users of the service run the H.264 encoders
12:55
<hsivonen>
I always think "legacy" when I see "DWORD"
12:55
<virtuelv>
hsivonen: a more interesting question is "does anyone who encodes h.264 have to pay"
12:55
<virtuelv>
the answer to that seems to be clear
12:56
<virtuelv>
and buying software to do so, doesn't buy you that freedom, it seems
12:56
<virtuelv>
I wonder what kind of license h.264 as encoded by my camera has
12:56
<virtuelv>
can I actually distribute those videos without re-encoding them?
12:56
<meledin>
For personal, non-commercial use? Probably
12:57
<meledin>
Commercially I think they use some form of "broadcast territory" notion when dealing with internet streaming
12:57
<meledin>
(Though what broadcast or territory means for the internet is conspicuously undefined)
12:57
<hsivonen>
the blip.tv ToS has nothing about "MPEG"
12:58
<jgraham>
So if I were to use my camera to make a promo video for some company, I might have to unexpectedly pay MPEG-LA?
12:59
<hsivonen>
my camera outputs Motion JPEG...
12:59
<virtuelv>
jgraham: that's my question
12:59
<virtuelv>
my camera does avchd
13:00
<virtuelv>
or even: If my camera allows such distribution, I'm screwed if I have to edit off-camera
13:01
<virtuelv>
what if I transcode from an original h.264 source to, say Ogg? Am I in trouble then too?
13:02
<hsivonen>
looks like nessy has published a paper about this: http://www.ifosslr.org/ifosslr/article/view/21/45
13:02
<meledin>
According to
13:02
<meledin>
eek
13:03
<meledin>
copy/paste fail
13:03
<meledin>
According to this pdf on mpegla's site they don't seem interested in collecting fees for anything other than codec manufacturers and broadcasters
13:03
<meledin>
(This doesn't imply that you are off the hook ofc, just that they aren't interested in small fries)
13:04
<hsivonen>
meledin: they count Web sites as "broadcasting"
13:04
<meledin>
Yeah, I said that
13:04
<meledin>
And they don't specify what a "broadcast market" is w.r.t. internet
13:05
<meledin>
However, for internet broadcast they've generously waived the royalty until 31 Dec this year
13:05
<meledin>
(And I use the word 'generously' very... generously)
13:05
<hsivonen>
hmm. It's February now
13:06
<hsivonen>
did the MPEG-LA publish the terms for 2011 by the end of January 2010?
13:06
<jgraham>
The temperature is above zero for the first time since mid December!
13:06
jgraham
just noticed
13:06
<gsnedders>
WHAT!?
13:07
<gsnedders>
I go away and you get positive temperatures!?
13:07
<annevk>
could you leave Oslo before Monday gsnedders? :)
13:07
<meledin>
The MPEG-LA as far as I can see only shows a /summary/ of the license on their website
13:07
<jgraham>
hsivonen: http://www.mpegla.com/Lists/MPEG%20LA%20News%20List/Attachments/226/n-10-02-02.pdf
13:07
<annevk>
or actually, maybe you should stay another week so I can go skiing first :)
13:08
<gsnedders>
annevk: I leave in, uh, an hour and a half
13:08
<meledin>
oic
13:08
<meledin>
This is news, good catch jgraham
13:09
<meledin>
'course, it doesn't say what happens 2017
13:09
<annevk>
gsnedders, maybe you should tell the weather forecast: http://www.google.com/search?q=weather+oslo
13:11
<gsnedders>
annevk: OK, I've told it.
13:11
<meledin>
Pfft
13:11
<annevk>
as a PDF
13:11
<annevk>
wtf
13:11
<annevk>
my hope for good news here is 17 feb
13:12
<annevk>
but I have a feeling that is way too early to tell
13:12
<annevk>
well, I'm pretty sure
13:12
<meledin>
Good news being?
13:12
<annevk>
google on2 deal
13:14
<hsivonen>
jgraham: thanks
13:15
<annevk>
on http://www.google.com/intl/en/about.html Google Chrome is still in beta...
13:15
<annevk>
guess they don't look often at that page
13:16
<meledin>
Comparatively I guess there's not much traffic there, no.
13:20
<zcorpan>
i thought google is always in beta
13:22
<Dashiva>
Gmail has a pref to add back the 'beta' label
13:24
hsivonen
finds <div id="msg" />
13:24
<hsivonen>
in the V8 test suite
13:35
<virtuelv>
meledin: the point, I think, is «when do I become a broadcaster»?
13:44
<MikeSmithX>
hsivonen: is the empty string a valid IRI?
13:48
<hsivonen>
MikeSmithX: it's a valid IRI reference (aka. relative URL), IIRC, but not a valid IRI (aka. absolute URL)
13:48
<MikeSmithX>
OK
13:54
<AryehGregor>
MikeSmithX, I guess this breakage is related to the question you asked me before about whether there's any way to scrape the contents of sections from a wiki page?
13:55
<MikeSmithX>
AryehGregor: no, that was actually something different
13:55
<AryehGregor>
Oh.
13:56
<AryehGregor>
Well, the HTML output is really intended for human consumption, it's not exactly stable . . . for this use-case, if I'm getting what you're doing here, maybe you could just do http://wiki.whatwg.org/index.php?title=Validator.nu_alt_advice&action=raw and split on "=="?
13:57
<jgraham>
AryehGregor: I was under the impression that a bunch of wikipedia scrapers used the (X)HTML? Wasn't that the reason you had to revert the HTML5 change at first?
13:57
<AryehGregor>
jgraham, well, yes. They break all the time too, and yell at us, and then we yell at them for screen-scraping and tell them to use the API. :)
13:58
<AryehGregor>
And then they tweak their bots instead to adapt to the new HTML output instead.
13:58
<Philip`>
You should emit a large number of random variations of HTML output
13:58
<MikeSmithX>
AryehGregor: yeah, maybe it could be worthwhile to take some to time to change the relevant parts of the validator.nu to use the actual MediaWiki API instead of the current scraping mechanism it uses, which is fairly fragile
13:58
<Philip`>
and carefully design is so that they can't reliably use regexps to skip over the randomness
13:58
<AryehGregor>
Philip`, it would be easier to just stop emitting well-formed XML, that would stop most of them.
13:58
<AryehGregor>
Well, yeah, then they'd use regexes.
13:59
<MikeSmithX>
AryehGregor: so what would be the right way to get the contents of the page in XML using the API?
13:59
<hsivonen>
AryehGregor: I don't want to scrape wikitext
13:59
<AryehGregor>
MikeSmithX, what sort of XML do you want?
13:59
<hsivonen>
AryehGregor: but I would like to scrape a wikitext to HTML output without all the surrounding UI
14:00
<AryehGregor>
hsivonen, http://wiki.whatwg.org/wiki/Validator.nu_alt_advice?action=render
14:00
<AryehGregor>
hsivonen, you can also fetch wikitext and then feed it back as strings to api.php to get a parsed version.
14:00
<hsivonen>
AryehGregor: ooh. nice. thanks
14:00
<MikeSmithX>
AryehGregor: whatever form of XML output is the most guaranteed to not change again in the future
14:01
<hsivonen>
AryehGregor: is there a way to make the TOC go away, too?
14:01
<AryehGregor>
MikeSmithX, API formats are quite stable, as far as I know. That's really their whole purpose in life.
14:01
<AryehGregor>
hsivonen, well, you could remove it altogether by adding __NOTOC__ somewhere on the page. If you only want the bot to not get it, then not that I can think of, no.
14:01
<MikeSmithX>
good to hear, if that's an actual policy
14:02
<hsivonen>
AryehGregor: ok. thanks
14:02
<AryehGregor>
MikeSmithX, it is, although I don't actually work on the API at all, so I can't *personally* vouch for it. I've seen some breaking changes, but my understanding is they're very rare.
14:02
<MikeSmithX>
AryehGregor: some projects don't seem to understand so well that that's what APIs are for
14:02
<hsivonen>
MikeSmithX: fwiw, I thought I fixed the scraper, then it seemed that I didn't, then I had switched context to Firefox bugs
14:02
<MikeSmithX>
twitter seems to change their API whenever the whim strikes them
14:02
<hsivonen>
MikeSmithX: but I still intend to fix it
14:03
<AryehGregor>
http://wiki.whatwg.org/api.php?action=parse&text=''Some%20text%20to%20parse''&format=xml
14:04
hsivonen
debugs again now
14:05
<AryehGregor>
This also might be useful: view-source:http://wiki.whatwg.org/api.php?action=parse&page=Validator.nu_alt_advice&format=xml&prop=sections
14:05
<AryehGregor>
Er, sans view-source:. :P
14:05
<MikeSmithX>
hsivonen: np -- I guess it's not terrifically urgent. was just musing about whether it might be worthwhile to switch to using the mediawiki API as long as you're going in to touch the code
14:06
<MikeSmithX>
AryehGregor: that reminds me about what I had asked you before
14:06
<AryehGregor>
Right, this whole thing reminded me.
14:07
<MikeSmithX>
that gives you the section titles, but not the section content
14:07
<AryehGregor>
I'm sure that could be easily added.
14:07
<AryehGregor>
Since we're running trunk anyway, I could commit it and then just sync the WHATWG wiki to the latest revision.
14:07
<MikeSmithX>
I think what I had wanted to do before was, given a section title, return just the content of that section
14:08
<AryehGregor>
Would it work to just have it return XML for all the sections on the page?
14:08
<hsivonen>
XML doesn't really help compared to HTML
14:08
<AryehGregor>
Like: http://wiki.whatwg.org/api.php?action=parse&page=Validator.nu_alt_advice&format=xml&prop=sectionshtml returning a list of all the sections' HTML wrapped in XML tags?
14:09
<hsivonen>
AryehGregor: that would make things harder
14:09
<AryehGregor>
So like this, maybe, but with each <s> containing the section's (XML-escaped) HTML: http://wiki.whatwg.org/api.php?action=parse&page=Validator.nu_alt_advice&format=xml&prop=sections
14:09
<AryehGregor>
Why? Maybe I'm misunderstanding what you need it for?
14:09
<MikeSmithX>
hsivonen: I guess I was thinking the API XML output would help if it were stable
14:09
<MikeSmithX>
it seems there are no guarantees of stability for the HTML
14:10
<AryehGregor>
What info are you getting out of the HTML?
14:10
<hsivonen>
AryehGregor: Validator.nu wants the HTML content as XHTML tree fragments
14:10
<hsivonen>
AryehGregor: the stuff between the headings
14:10
<MikeSmithX>
ah yeah
14:10
<hsivonen>
AryehGregor: so adding more XML just complicates things
14:11
<AryehGregor>
Okay, so that's what I suggested, except of course that you could have <div><h2>Foo</h2></div> and then it wouldn't be well-formed.
14:11
<hsivonen>
given that the HTML parser needs to be involved anyway
14:11
<MikeSmithX>
hmm, so what would be good would be addition of stable HTML output from the API
14:12
<MikeSmithX>
HTML as an API output format
14:12
<AryehGregor>
But I'm saying that instead of <h2>Foo</h2> <p>Bar</p> <h2>Baz</h2> <p>Quuz</p> you'd get <s name="Foo">&lt;p>Bar&lt;/p></s><s name="Baz">&lt;p>Quuz&lt;/p></s>
14:12
<AryehGregor>
Or something like that.
14:12
<AryehGregor>
I'm not clear what sort of HTML you want.
14:13
<MikeSmithX>
AryehGregor: something guaranteed to be free of changes like replacing <a name> instances with id attributes instead
14:14
<AryehGregor>
The "like" is the tricky bit here.
14:14
<hsivonen>
AryehGregor: the HTML format itself is fine as long as it doesn't change in structure
14:14
<AryehGregor>
What other changes would qualify?
14:14
<AryehGregor>
Maybe you'd want something like what we have now, but with just <h2> or such for headings and no fancy id's and edit links and such added?
14:15
<AryehGregor>
And TOCs and so forth?
14:15
<MikeSmithX>
AryehGregor: yeah, that sounds like something that would be generally useful
14:15
<AryehGregor>
That might be a more intrusive change for us, it'd probably end up touching the actual parser and adding a new mode to it.
14:15
<hsivonen>
AryehGregor: any change that introduces or deletes markup between the end of a section and the heading for the next section
14:15
<hsivonen>
or that changes how section headings are marked up
14:16
<hsivonen>
or that introduces markup between the heading of a section and the section content
14:16
<MikeSmithX>
AryehGregor: so like the action=render output but without the edit links and TOC, as you say
14:16
<AryehGregor>
And without the added id's and divs and other weird stuff we put on the headers, I guess.
14:18
<MikeSmithX>
AryehGregor: I think that stuff is mostly ignorable, but it would make the HTML cleaner to work with programatically for somebody going it to write a processing app for it
14:18
<hsivonen>
well, right now the code expects to see the spans and classes on the headings :-)
14:18
<hsivonen>
but a stable format would ideally have only <h2>
14:18
<AryehGregor>
HTML-fragments-in-XML (or other format of your choice) really seems like a simpler way to do this unless you've already written an app that expects to be dealing with the HTML headings.
14:19
<AryehGregor>
Which you have, of course.
14:19
<AryehGregor>
But for a new app it seems like a suboptimal approach.
14:19
<MikeSmithX>
that part could be changes
14:19
<MikeSmithX>
*changed
14:19
<MikeSmithX>
but HTML-fragments-in-XML would seem to me to be a good way
14:19
<MikeSmithX>
or HTML-fragments-whatever
14:20
<MikeSmithX>
or HTML-fragments-in-whatever
14:20
<AryehGregor>
The only question is, what if you have <div><h2>...</h2></div>?
14:20
<MikeSmithX>
ah, as you wrote -- "or other format of your choice"
14:20
<hsivonen>
HTML-fragments-in-whatever needs two parsers, so while it might be stable, it wouldn't be simpler
14:20
<AryehGregor>
It depends what you're using the fragments for. You might not need to actually parse them.
14:21
<hsivonen>
AryehGregor: V.nu is definitely going to parse them
14:21
<AryehGregor>
Also, if you're asking for XHTML-in-XML, it's only really one parser.
14:21
<AryehGregor>
Well, okay.
14:21
<hsivonen>
HTML in divs or XHTML in XML would work
14:22
<AryehGregor>
I'm still not clear what the expected behavior is if the contents of the section, taken by themselves, are not well-formed.
14:23
<hsivonen>
AryehGregor: this stuff goes through an HTML5 parser that is set to coerce its output to be a well-formed infoset
14:24
<AryehGregor>
In your case, yes, but if someone is going to add a feature to MediaWiki, it's not just going to be for validator.nu. Most people don't use HTML5 parsers at this point.
14:25
<hsivonen>
hmm. so it seems Eclipse is showing me one file and running another
14:25
<hsivonen>
that's why my debugging is going nowhere
14:25
<MikeSmithX>
well, for both validator.nu and in general, I think what would be ideal is what I mentioned - given a section title, return just the child HTML content of that section
14:25
<AryehGregor>
There are two options for what sort of HTML to output: 1) whatever happens to lie between the section tags in the actual page, and 2) what you get by running the section's wikitext through the parser (which will strip mismatched tags and such).
14:26
<AryehGregor>
(2) seems more sensible to me if you're looking at each section by itself.
14:26
<hsivonen>
#2
14:27
<AryehGregor>
MikeSmithX, the easiest way to do that would just be to return all the page's sections at once, surely? You probably want more than one section from the page anyway. You can get it wrapped in JSON or YAML or whatnot instead of XML if you want an easier-to-parse wrapper format.
14:27
<AryehGregor>
Also, there can be two sections with the same name on the page.
14:28
<MikeSmithX>
ah
14:28
<AryehGregor>
There can even be two sections with the same id if you do something tricky like == Foo == == Foo == == Foo 2 ==, although we usually manage to avoid that.
14:29
<AryehGregor>
(that particular bug would be pretty easy to fix, but there are probably more important things to do)
14:33
<hsivonen>
http://wiki.whatwg.org/wiki/Validator.nu_alt_advice?action=render is fine as long as random UI doesn't start appearing there
14:34
<AryehGregor>
That's the HTML output meant for browsers, it's not meant for machine parsing and isn't guaranteed to be stable at all.
14:34
<AryehGregor>
It's very likely that the exact format of the headings will be adjusted again in the future, it's happened multiple times before.
14:35
<MikeSmithX>
AryehGregor: I suppose for the case of multiple sections with the same title, the simple thing to do would be to just have the API return the contents of all the sections (each just appended after the other in the output)
14:35
<AryehGregor>
MikeSmithX, what's wrong with returning all the sections on the page with some thin wrapper in the format of your choice?
14:37
Philip`
wonders if this wiki HTML output parsing thing is really solving the right problem
14:37
<MikeSmithX>
AryehGregor: nothing wrong, but it would just be good to have an HTML wrapper be one of the available formats
14:37
<Philip`>
Wouldn't it be better if the original input data was in a more easily machine-readable format?
14:37
<AryehGregor>
Philip`, yes, but then we have millions of pages that need to be reformatted somehow, not to mention countless editors who've gotten used to the current wikitext format.
14:38
<AryehGregor>
It's doable, but it would be a huge change given the need for backward compatibility.
14:38
<Philip`>
AryehGregor: I mean for validator.nu, not for Wikipedia :-p
14:38
<AryehGregor>
Oh.
14:38
hsivonen
emerges from the classpath battle victoriously
14:38
Philip`
wouldn't willing suggest rewriting the entire content of Wikipedia
14:38
<Philip`>
*willingly
14:38
<AryehGregor>
You mean, like, tell people to make that specific page in some validator.nu-specific format instead of wikitext?
14:38
<jgraham>
hsivonen: You can never win
14:38
<AryehGregor>
That would make a lot of sense.
14:39
<hsivonen>
anyway, fixing the scraper was simple
14:39
<hsivonen>
the hard part was that the source code and the running code didn't agree
14:39
<Philip`>
AryehGregor: If I haven't misfollowed the conversation, I expect it's for any validators that want to use the normative data currently encoded in the wiki, not just validator.nu
14:40
<Philip`>
but they'd all have basically the same requirements so that's okay
14:40
<AryehGregor>
Well, the point is the same, surely.
14:41
<Philip`>
Surely it wouldn't be hard to find someone who knows Ruby on Rails and can type in two lines of code to set up a publicly-editable structured database for all these registries and lists
14:41
<Philip`>
with an HTML view so people can check the data makes sense, and an XML/JSON view for machines
14:42
<hsivonen>
finally running the deployment script
14:47
<MikeSmithX>
Philip`: yeah, agreed. yet that's not happened so far, for whatever reason
14:48
<Philip`>
AryehGregor: With the proposed RDFa changes in MediaWiki, does anything prevent people writing <p xmlns:foo="http://www.w3.org/XML/1998/namespace">; and getting it echoed out through the XML API and causing a WF error?
14:48
<MikeSmithX>
maybe the hoopla about the link registry can help motivate us to get something like that set up for that, and the reusable for the existing stuff
14:49
<MikeSmithX>
(above comment was just about the structured-database idea)
14:50
<hsivonen>
MikeSmithX: deployed! <figcaption> validates. thank you.
14:50
<MikeSmithX>
cool
14:50
<MikeSmithX>
thanks man
14:53
<hsivonen>
does anyone happen to have the reverse of Hixie's data URL kitchen?
14:54
<annevk>
view source?
14:54
<annevk>
i.e. the adress bar
14:57
<MikeSmithX>
hsivonen: btw, about the earlier build problem, it seems like adding a call to prepareLocalEntityJar() at the beginning of buildAll() might prevent that
14:58
<Lachy>
hsivonen, if you want an online version, see http://dean.edwards.name/weblog/2005/06/base64-ie/
14:58
<Lachy>
that's basically a data: URL proxy built for IE
14:58
<MikeSmithX>
hsivonen: let me know if you think we should add that to build.py
15:08
<hsivonen>
MikeSmithX: it seems like a useful addition
15:08
<hsivonen>
annevk: good point (view source)
15:13
<Dashiva>
Return of the ogg permathread(?)
15:37
<Philip`>
"Apple will be held accountable by an army of bloggers" - they should face off against the army of bloggers that unequivocally praise everything Apple does, in an epic battle to decide the matter once and for all
15:38
<Dashiva>
Battle of the Blogs
15:48
<boblet>
MikeSmithX: hey Mike, are you planning to do your validator speech in 2 weeks in Japanese?
16:05
<boblet>
MikeSmithX: you there?
16:07
<boblet>
Semantic q: It’s fairly common to have a citation note at the end of a blockquote, however the spec mentions the content inside the blockquote must be quoted…
16:08
<boblet>
Since small can be used for attribution, would adding <small>(<cite>book title, page number</cide>)</small> at the end of a blockquote be kosher?
16:09
<boblet>
(great to see UAs should expose citation links btw)
16:09
boblet
wonders what the hell the cide element does
16:10
<boogyman>
http://lmgtfy.com/?q=html5+cide
16:13
<boblet>
boogyman: heh, that should prolly be lmstfy.com (except the domain is already taken—no speling help for me)
16:14
<boogyman>
s?
16:15
<boblet>
boogyman: for spell (it was a typo)
16:16
<boblet>
boogyman: unless there really is a <cide> element I’m unaware of?
16:17
<boogyman>
I haven't had a chance to read the HTML5 specification so I am not sure. I do know there is a CITE element though
16:18
<boblet>
boogyman: hehehe. np, forget I typed (just for the record there’s no cide element btw ;-)
16:21
<boblet>
hrm. will ask again when more ppl are awake. nn
20:42
<annevk>
wow, news reporting is somewhat shitty
20:43
<roc>
you've only just noticed?
20:43
<annevk>
article talks about http://dev.chromium.org/chromium-os/user-experience/form-factors/tablet and mentions it's not a Google operated site so just speculation what Google might do ... blah blah
20:44
<annevk>
one search for the name mentioned on that page reveals he's the lead UI for Chrome
20:44
<annevk>
at Google
20:56
jwalden
wonders how often html5.validator.nu is updated, given that figcaption happened last Friday, h.v.n "still" didn't reflect figcaption a day or so ago, and it does now
20:57
<jgraham>
jwalden: hsivonen pushed it today (obviously). I guess how often it is updated depends on how busy he is rewriting your parser :)
21:24
<annevk>
Adobe is getting desperate, lol, http://twitter.com/bobspace/status/8603836976
22:02
jwalden
is unsure whether or not <figcaption> is growing on him, or at least gradually growing less cringe-inducing
22:06
<jgraham>
annevk: No, really?
22:23
<quuxman>
so what i the lesser of two "evils": laying out HTML with table tags or with JavaScript?
22:23
<TabAtkins>
<table>
22:24
<TabAtkins>
But neither is a good solution. Do it properly.
22:24
<Hixie>
depends on the JS
22:25
<jgraham>
Depends on the content
22:26
<TabAtkins>
I say <table> just because I use it myself (a single two-element layout table to do columns).
22:27
<quuxman>
TabAtkins: yes, tables are by far the most sane way to layout things in columns and center things vertically, and sometimes horizontally
22:27
<Hixie>
it's definitely better to go from a single-page layout to a two-column layout done in CSS dynamically using JS, than to use tables, imho
22:27
<quuxman>
I'm aware there are CSS hacks to do all of these things, but they're horrific and extremely time consuming
22:27
<TabAtkins>
Nah, for centering and most layout tasks I use CSS properly.
22:28
<TabAtkins>
It's just the major two-column layout happens to have requirements that are perfectly met by tables, and very badly met by CSS.
22:28
<TabAtkins>
But it's part of my mission to fix that. ^_^
22:30
<quuxman>
Hixie: Currently I'm using JavaScript for a couple layout things, but I'm realizing if I use tables I could relatively easily make the site pretty usable without JavaScript
22:34
<annevk>
quuxman, yay, more Opera invasion of #whatwg
22:46
<annevk>
oh wait, pablo uses the nick quuxbaz, nm
23:38
<Dashiva>
Does it make sense to say "RAND royalty-free license"?
23:39
<TabAtkins>
No. No it doesn't.
23:39
<TabAtkins>
It is an attempt to trick people.
23:40
<roc>
who's saying that?
23:41
<Dashiva>
It's in a comment in a h264-and-theora blog post
23:42
<Dashiva>
Talking about On2's release
23:42
<TabAtkins>
Something new about On2?
23:43
<Dashiva>
No, the basis for Theora
23:44
<Dashiva>
So it seems MPEG-LA has granted us another five years of h264...
23:47
<Dashiva>
I haven't found anything in the logs, so I assume it hasn't been covered yet
23:47
<Dashiva>
"royalties for Internet Video that is free to end users (known as Internet Broadcast AVC Video)"
23:48
<Dashiva>
That seems to let youtube off the hook
23:49
<Dashiva>
By 2016, I'd assume Dirac would be mature as well
23:51
<Lachy>
Dashiva, dirac is not really aimed at internet video. It's aimed more at production quality video
23:53
<Lachy>
but the extra 6 years for royalty free h.264 content distribution doesn't have much effect at all, beyond saving companies like YouTube and Vimeo 6 years worth of licensing fees
23:54
<Dashiva>
And every normal internet user too
23:55
<TabAtkins>
Not quite. Us normal internet users can just use Theora. We just miss out on people using Safari, shrug.