Re: [whatwg] Archive API - proposal

2012-08-14 Thread Glenn Maynard
(Please remember to trim quotes.) On Tue, Aug 14, 2012 at 4:05 PM, Tobie Langel wrote: > How are nested directories handled in your counter proposal? > The ZIP directory is simply a list of files anyway. Just store the complete path of the file in .name: zipFile.files[0].name == "file.txt" zip

Re: [whatwg] Archive API - proposal

2012-08-14 Thread Tobie Langel
On Aug 14, 2012, at 21:21, Glenn Maynard wrote: > (I've reordered my responses to give a more logical progression.) > > On Tue, Jul 17, 2012 at 9:23 PM, Andrea Marchesini wrote: > >> // The getFilenames handler receives a list of DOMString: >> var handle = this.reader.getFile(this.result[i]); >>

Re: [whatwg] Archive API - proposal

2012-08-14 Thread Glenn Maynard
(I've reordered my responses to give a more logical progression.) On Tue, Jul 17, 2012 at 9:23 PM, Andrea Marchesini wrote: > // The getFilenames handler receives a list of DOMString: > var handle = this.reader.getFile(this.result[i]); > This interface is problematic. Since ZIP files don't hav

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread Ryosuke Niwa
On Tue, Aug 14, 2012 at 12:53 PM, Tab Atkins Jr. wrote: > On Tue, Aug 14, 2012 at 12:13 PM, Ryosuke Niwa wrote: > > I'm asking how we're supposed to implement this pseudo-classes given that > > the only way to know whether an element can receive the item is by firing > > dragenter and/or dragover

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread Tab Atkins Jr.
On Tue, Aug 14, 2012 at 12:13 PM, Ryosuke Niwa wrote: > I'm asking how we're supposed to implement this pseudo-classes given that > the only way to know whether an element can receive the item is by firing > dragenter and/or dragover events. e.g. No, we can know it declaratively via the dropzone

Re: [whatwg] StringEncoding: Allowed encodings for TextEncoder

2012-08-14 Thread Glenn Maynard
On Tue, Aug 14, 2012 at 9:42 AM, Simon Pieters wrote: > On Thu, 09 Aug 2012 19:42:07 +0200, Joshua Bell > wrote: > > > http://wiki.whatwg.org/wiki/**StringEncodinghas > been updated to restrict the >> supported encodings for encoding to UTF-8, UTF-1

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread Ryosuke Niwa
On Tue, Aug 14, 2012 at 11:04 AM, Tab Atkins Jr. wrote: > On Mon, Aug 13, 2012 at 11:55 PM, Ryosuke Niwa wrote: > > On Mon, Aug 13, 2012 at 9:19 PM, fantasai >wrote: > >> The CSSWG discussed drag-and-drop pseudo-classes today. The current > >> proposal is to have three pseudo-classes: > >> > >>

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread fantasai
On 08/14/2012 03:03 AM, Sebastian Zartner wrote: * One for all elements representing possible drop targets that could receive the item. * One for all elements representing drop targets that do not accept this type of item. This sounds like these two pseudo-classes

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread fantasai
On 08/13/2012 11:55 PM, Ryosuke Niwa wrote: On Mon, Aug 13, 2012 at 9:19 PM, fantasai mailto:fantasai.li...@inkedblade.net>> wrote: The CSSWG discussed drag-and-drop pseudo-classes today. The current proposal is to have three pseudo-classes: * One for the element representing the

Re: [whatwg] Archive API - proposal

2012-08-14 Thread Jonas Sicking
On Tue, Jul 17, 2012 at 7:23 PM, Andrea Marchesini wrote: > Hi All, > > I would like to propose a new javascript/web API that provides the ability to > read the content of an archive file through DOMFile objects. > I have started to work on this API because it has been requested during some > Mo

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread Tab Atkins Jr.
On Tue, Aug 14, 2012 at 3:03 AM, Sebastian Zartner wrote: >> * One for all elements representing possible drop targets >> that could receive the item. >> * One for all elements representing drop targets that do >> not accept this type of item. > > This sounds like these two pseudo-clas

Re: [whatwg] [selectors4] drag-and-drop pseudo-classes

2012-08-14 Thread Tab Atkins Jr.
On Mon, Aug 13, 2012 at 11:55 PM, Ryosuke Niwa wrote: > On Mon, Aug 13, 2012 at 9:19 PM, fantasai > wrote: >> The CSSWG discussed drag-and-drop pseudo-classes today. The current >> proposal is to have three pseudo-classes: >> >> * One for the element representing the drop target that >> wou

Re: [whatwg] StringEncoding open issues

2012-08-14 Thread Joshua Bell
On Mon, Aug 6, 2012 at 5:06 PM, Glenn Maynard wrote: > I agree with Jonas that encoding should just use a replacement character > (U+FFFD for Unicode encodings, '?' otherwise), and that we should put off > other modes (eg. exceptions and user-specified replacement characters) > until there's a cl

Re: [whatwg] StringEncoding: Allowed encodings for TextEncoder

2012-08-14 Thread Jonas Sicking
I think the main reason would be if there are modern formats which use UTF16 which we want to allow people to create documents in. I asked on twitter for such formats and got some responses: https://twitter.com/SickingJ/status/234060964058763264 / Jonas On Tue, Aug 14, 2012 at 7:42 AM, Simon Pie

Re: [whatwg] StringEncoding: Allowed encodings for TextEncoder

2012-08-14 Thread Simon Pieters
On Thu, 09 Aug 2012 19:42:07 +0200, Joshua Bell wrote: http://wiki.whatwg.org/wiki/StringEncoding has been updated to restrict the supported encodings for encoding to UTF-8, UTF-16 and UTF-16BE. I'm tempted to take it further to just UTF-8 and see if anyone complains. I was going to sugg

Re: [whatwg] register*Handler and Web Intents

2012-08-14 Thread Henri Sivonen
On Thu, Aug 9, 2012 at 10:11 AM, Maciej Stachowiak wrote: >action="edit" Making it http://hsivonen.iki.fi/

Re: [whatwg] Was is considered to use JSON-LD instead of creating application/microdata+json?

2012-08-14 Thread Henri Sivonen
On Fri, Aug 10, 2012 at 1:39 PM, Markus Lanthaler wrote: >> > Well, I would say there are several advantages. First of all, JSON-LD >> is >> > more flexible and expressive. >> >> More flexible and expressive than what? > > Than application/microdata+json. That's a problem right there. It means th

Re: [whatwg] Why does CanvasRenderingContext2D.drawImage not draw a video's poster?

2012-08-14 Thread Simon Pieters
On Sat, 21 Jul 2012 22:20:09 +0200, Silvia Pfeiffer wrote: Why? onmetadataloaded provides a sufficiently stable stuation: either the poster img or video frame is then loaded (if @preload is not "none") or it's black (if @poster is not set and @preload is "none"). That's not how it's current