Re: [whatwg] Validator.nu: Attribute role not allowed on element h2 at this point.

2012-03-13 Thread Simon Pieters
On Tue, 13 Mar 2012 02:16:29 +0100, Charles Pritchard ch...@jumis.com wrote: Warnings are generally not useful. Either something is fine and we should support it, or it's wrong and we should alert the author. I think must is very much the appropriate requirement level here. From the

Re: [whatwg] Validator.nu: Attribute role not allowed on element h2 at this point.

2012-03-13 Thread Charles Pritchard
On 3/12/12 11:42 PM, Simon Pieters wrote: On Tue, 13 Mar 2012 02:16:29 +0100, Charles Pritchard ch...@jumis.com wrote: Warnings are generally not useful. Either something is fine and we should support it, or it's wrong and we should alert the author. I think must is very much the

Re: [whatwg] [media] startOffsetTime, also add startTime?

2012-03-13 Thread Philip Jägenstedt
On Fri, 09 Mar 2012 15:40:26 +0100, Philip Jägenstedt phil...@opera.com wrote: let me first try to summarize what I think the spec says: * currentTime need not start at 0, for streams it will typically represent for how long the server has been serving a stream. * duration is not the

Re: [whatwg] Validator.nu: Attribute role not allowed on element h2 at this point.

2012-03-13 Thread Scott González
It's my understanding that authors should only apply ARIA via script. The redundancy cases seem to be the most reasonable use cases I've heard of for wanting ARIA in the initial markup, but even that seems wrong. What happens when you have type=range and role=slider, the UA doesn't understand the

Re: [whatwg] Validator.nu: Attribute role not allowed on element h2 at this point.

2012-03-13 Thread Hugh Guiney
On Mon, Mar 12, 2012 at 8:52 PM, Ian Hickson i...@hixie.ch wrote: The validator is probably just not up to date. Note that that in this case the validator is probably right. If it's just presentational, why are you using h2? It doesn't seem presentational to me. I think you are incorrectly

Re: [whatwg] Validator.nu: Attribute role not allowed on element h2 at this point.

2012-03-13 Thread Kornel Lesiński
On Tue, 13 Mar 2012 15:57:57 -, Hugh Guiney hugh.gui...@gmail.com wrote: The validator is probably just not up to date. Note that that in this case the validator is probably right. If it's just presentational, why are you using h2? It doesn't seem presentational to me. I think you

Re: [whatwg] Validator.nu: Attribute role not allowed on element h2 at this point.

2012-03-13 Thread Benjamin Hawkes-Lewis
2012/3/13 Scott González scott.gonza...@gmail.com: It's my understanding that authors should only apply ARIA via script. No. Where do you understand that from? The redundancy cases seem to be the most reasonable use cases I've heard of for wanting ARIA in the initial markup, but even that

[whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Jonas Sicking
Hi All, Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof) into a decoded string. Similarly being able to encode a string into an ArrayBuffer (or part thereof). Something as simple as DOMString

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Tab Atkins Jr.
On Tue, Mar 13, 2012 at 3:49 PM, Jonas Sicking jo...@sicking.cc wrote: Hi All, Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof) into a decoded string. Similarly being able to encode a string into an

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Ian Hickson
On Tue, 13 Mar 2012, Jonas Sicking wrote: Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof) into a decoded string. Similarly being able to encode a string into an ArrayBuffer (or part thereof).

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Kenneth Russell
Joshua Bell has been working on a string encoding and decoding API that supports the needed encodings, and which is separable from the core typed array API: http://wiki.whatwg.org/wiki/StringEncoding This is the direction I prefer. String encoding and decoding seems to be a complex enough

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Jonas Sicking
On Tue, Mar 13, 2012 at 3:58 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Mar 13, 2012 at 3:49 PM, Jonas Sicking jo...@sicking.cc wrote: Hi All, Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof)

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Jonas Sicking
On Tue, Mar 13, 2012 at 4:08 PM, Kenneth Russell k...@google.com wrote: Joshua Bell has been working on a string encoding and decoding API that supports the needed encodings, and which is separable from the core typed array API: http://wiki.whatwg.org/wiki/StringEncoding This is the

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Glenn Maynard
On Tue, Mar 13, 2012 at 5:49 PM, Jonas Sicking jo...@sicking.cc wrote: Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof) into a decoded string. Similarly being able to encode a string into an ArrayBuffer

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Kenneth Russell
On Tue, Mar 13, 2012 at 6:10 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Mar 13, 2012 at 4:08 PM, Kenneth Russell k...@google.com wrote: Joshua Bell has been working on a string encoding and decoding API that supports the needed encodings, and which is separable from the core typed array

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Ian Hickson
On Tue, 13 Mar 2012, Jonas Sicking wrote: Unfortunately I suspect getting anything added on the String object will take a few years given that it's too late to get into ES6 (and in any case I suspect adding ArrayBuffer dependencies to ES6 would be controversial). We can just define it

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Joshua Bell
On Tue, Mar 13, 2012 at 4:11 PM, Glenn Maynard gl...@zewt.org wrote: On Tue, Mar 13, 2012 at 5:49 PM, Jonas Sicking jo...@sicking.cc wrote: Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof) into a

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Joshua Bell
On Tue, Mar 13, 2012 at 4:11 PM, Glenn Maynard gl...@zewt.org wrote: On Tue, Mar 13, 2012 at 5:49 PM, Jonas Sicking jo...@sicking.cc wrote: Something that has come up a couple of times with content authors lately has been the desire to convert an ArrayBuffer (or part thereof) into a

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Ian Hickson
On Tue, 13 Mar 2012, Joshua Bell wrote: On Tue, Mar 13, 2012 at 4:10 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Mar 13, 2012 at 4:08 PM, Kenneth Russell k...@google.com wrote: Joshua Bell has been working on a string encoding and decoding API that supports the needed encodings,

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Ian Hickson
On Tue, 13 Mar 2012, Joshua Bell wrote: WHATWG makes sense, I just hadn't gotten around to shopping for a home. (Administrivia: Is there need to propose a charter addition?) You're welcome to use the WHATWG list for this. Charters are pointless and there's no need to worry about them here.

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Tab Atkins Jr.
On Tue, Mar 13, 2012 at 4:08 PM, Jonas Sicking jo...@sicking.cc wrote: On Tue, Mar 13, 2012 at 3:58 PM, Tab Atkins Jr. jackalm...@gmail.com wrote: On Tue, Mar 13, 2012 at 3:49 PM, Jonas Sicking jo...@sicking.cc wrote: Hi All, Something that has come up a couple of times with content authors

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Tab Atkins Jr.
On Tue, Mar 13, 2012 at 4:11 PM, Glenn Maynard gl...@zewt.org wrote: The API on that wiki page is a reasonable start.  For the same reasons that we discussed in a recent thread ( http://lists.w3.org/Archives/Public/public-webapps/2011JulSep/1589.html), conversion errors should use replacement

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Ian Hickson
On Tue, 13 Mar 2012, Joshua Bell wrote: For both of the above: initially suggested use cases included parsing data as esoteric as ID3 tags in MP3 files, where encoding unspecified and is guessed at by decoders, and includes non-Unicode encodings. It was suggested that the encoding

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread Glenn Maynard
Using Views instead of specifying the offset and length sounds good. On Tue, Mar 13, 2012 at 6:28 PM, Ian Hickson i...@hixie.ch wrote: - What's the use case for supporting anything but UTF-8? Other Unicode encodings may be useful, to decode existing file formats containing (most likely at a

Re: [whatwg] API for encoding/decoding ArrayBuffers into text

2012-03-13 Thread John Tamplin
On Tue, Mar 13, 2012 at 8:19 PM, Glenn Maynard gl...@zewt.org wrote: Using Views instead of specifying the offset and length sounds good. On Tue, Mar 13, 2012 at 6:28 PM, Ian Hickson i...@hixie.ch wrote: - What's the use case for supporting anything but UTF-8? Other Unicode encodings