[whatwg] Canvas: dash list API

2012-12-22 Thread Anne van Kesteren
Is there not some way we can have a lineDash attribute that returns a manipulatable object that inherits from Array rather than the current Java-like API? I remember this was discussed when getLineDash() and setLineDash() were added, but I think it's worth taking another look at this. (For URLs I

Re: [whatwg] A plea to Hixie to adopt main, and main element parsing behaviour

2012-12-22 Thread Steve Faulkner
Hi Ian, in regards to your post about how main is defined: http://lists.w3.org/Archives/Public/public-whatwg-archive/2012Dec/0239.html the main element [2] is being standardised at the w3c not the whatwg and as such, the whatwg list moderator has requested that discussion not continue on this

Re: [whatwg] what use-case is there for the name-attribute on a fieldset?

2012-12-22 Thread Evert Van dansen
From: Ian Hickson i...@hixie.ch There's no advantage. In fact it is an entirely useless feature as far as I can tell. :-) Ok, thank you. At least that makes sense...in a weird sort of way.

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Cameron McCormack
On 22/12/12 10:06 PM, Anne van Kesteren wrote: Is there not some way we can have a lineDash attribute that returns a manipulatable object that inherits from Array rather than the current Java-like API? I remember this was discussed when getLineDash() and setLineDash() were added, but I think

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Anne van Kesteren
On Sat, Dec 22, 2012 at 2:12 PM, Cameron McCormack c...@mcc.id.au wrote: Does it need to inherit from Array? I think we can do this as long as the canvas context object does not need to watch the Array object for changes. (This is technically already possible by just using object as the type,

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Cameron McCormack
On 23/12/12 12:40 AM, Anne van Kesteren wrote: I guess dashList is somewhat simpler, but I think it would be nice if it still did type coercion. In that case, I guess we are reliant on whatever ES-allowed Array extending is possible, and I haven't followed that for a bit. Is this actually

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Anne van Kesteren
On Sat, Dec 22, 2012 at 2:43 PM, Cameron McCormack c...@mcc.id.au wrote: On 23/12/12 12:40 AM, Anne van Kesteren wrote: I guess dashList is somewhat simpler, but I think it would be nice if it still did type coercion. In that case, I guess we are reliant on whatever ES-allowed Array extending

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Tobie Langel
On Sat, Dec 22, 2012 at 2:57 PM, Anne van Kesteren ann...@annevk.nl wrote: On Sat, Dec 22, 2012 at 2:43 PM, Cameron McCormack c...@mcc.id.au wrote: On 23/12/12 12:40 AM, Anne van Kesteren wrote: I guess dashList is somewhat simpler, but I think it would be nice if it still did type

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Cameron McCormack
On 23/12/12 1:01 AM, Tobie Langel wrote: Array-like objects which don't inherit from the Array object and are thus missing methods one would expect to find on them (forEach, join, etc.) is one of the biggest WTF of the Web platform. We should be doing whatever it takes to fix this. I agree

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Anne van Kesteren
On Sat, Dec 22, 2012 at 3:07 PM, Cameron McCormack c...@mcc.id.au wrote: If we don't have the type checking of array elements, and also don't need any noticing of individual element assignments, then we can just have a reference to a plain Array object and look at its elements at the time the

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Ian Hickson
On Sat, 22 Dec 2012, Anne van Kesteren wrote: Is there not some way we can have a lineDash attribute that returns a manipulatable object that inherits from Array rather than the current Java-like API? I remember this was discussed when getLineDash() and setLineDash() were added, but I

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Jussi Kalliokoski
On Sat, Dec 22, 2012 at 8:04 PM, Ian Hickson i...@hixie.ch wrote: On Sat, 22 Dec 2012, Anne van Kesteren wrote: Is there not some way we can have a lineDash attribute that returns a manipulatable object that inherits from Array rather than the current Java-like API? I remember this was

Re: [whatwg] Canvas: dash list API

2012-12-22 Thread Boris Zbarsky
On 12/22/12 6:07 AM, Cameron McCormack wrote: If we don't have the type checking of array elements, and also don't need any noticing of individual element assignments, then we can just have a reference to a plain Array object and look at its elements at the time the dash array is needed. Look

Re: [whatwg] A plea to Hixie to adopt main, and main element parsing behaviour

2012-12-22 Thread Ian Yang
Hi Steve, Thanks for the info. I had sent it to public-html-comme...@w3.org and had added new info to Bugzilla. Regards, Ian Yang On Sat, Dec 22, 2012 at 7:20 PM, Steve Faulkner faulkner.st...@gmail.comwrote: Hi Ian, in regards to your post about how main is defined: