Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-20 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: Maciej Stachowiak wrote: It seems arbitrary to me that functions implemented in native code (internal functions in ECMA-262 terms) There's no such thing as an internal function, in ECMA-262 terms. Sorry, I'm mistaken here. Just ignore this; it wasn't relevant to

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-20 Thread David-Sarah Hopwood
Maciej Stachowiak wrote: On Nov 20, 2008, at 12:24 AM, David-Sarah Hopwood wrote: Maciej Stachowiak wrote: On Nov 19, 2008, at 11:37 PM, David-Sarah Hopwood wrote: Maciej Stachowiak wrote: On Nov 18, 2008, at 11:00 AM, Mark S. Miller wrote: I also don't see a problem with David-Sarah's

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-20 Thread Mark S. Miller
On Thu, Nov 20, 2008 at 1:43 AM, Maciej Stachowiak [EMAIL PROTECTED] wrote: If all non-ECMAScript-coded methods in the DOM, or other add-on interfaces, can be Native internal functions rather than Host objects, even if they have behavior that does not match any predefined native Function,

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-19 Thread Brendan Eich
On Nov 19, 2008, at 6:08 AM, Maciej Stachowiak wrote: I also don't see a problem with David-Sarah's suggestion of forbidding host objects from having [[Class]] Function. Most places in the spec care only about whether something is callable (has a [[Call]] property), not whether it has

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-18 Thread Maciej Stachowiak
On Nov 17, 2008, at 9:24 PM, David-Sarah Hopwood wrote: Maciej Stachowiak wrote: On Nov 14, 2008, at 4:48 PM, David-Sarah Hopwood wrote: Should host objects be required not to have [[Class]] Function? No, I do not think this is a sounds requirement. All native functions in the DOM are

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread Blake Kaplan
On 11/15/2008 09:40 PM, Garrett Smith wrote: Standardizing an MSIE property that works differently than in MSIE creates compatibility problems on the web. A better alternative would be to use a different property name. Who is supposed to use the better name here? Mozilla added undetectable

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread Garrett Smith
On Mon, Nov 17, 2008 at 12:17 PM, Blake Kaplan [EMAIL PROTECTED] wrote: On 11/15/2008 09:40 PM, Garrett Smith wrote: Standardizing an MSIE property that works differently than in MSIE creates compatibility problems on the web. A better alternative would be to use a different property name.

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread Cameron McCormack
Hi Garrett and other list members. Garrett Smith: The better name would be something other than filter on a CSSStyleDeclaration. Maybe svgFilter. Yes, that’s a possible solution to the issue, especially since it’s not particularly likely that many existing SVG documents use CSSStyleDeclaration

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: In ES3, the 'document.all' and 'filter' hacks are both clearly nonconformant, because an IfStatement checks only the result of ToBoolean applied to its condition, and ToBoolean is required to return true for all objects and non-zero-length strings. ... and note that

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread Maciej Stachowiak
On Nov 17, 2008, at 8:38 PM, David-Sarah Hopwood wrote: Blake Kaplan wrote: On 11/15/2008 09:40 PM, Garrett Smith wrote: Standardizing an MSIE property that works differently than in MSIE creates compatibility problems on the web. A better alternative would be to use a different property

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-17 Thread David-Sarah Hopwood
Maciej Stachowiak wrote: On Nov 14, 2008, at 4:48 PM, David-Sarah Hopwood wrote: David-Sarah Hopwood wrote: Caveat: [section 15] # The value of the [[Class]] property of a host object may be any value, # even a value used by a built-in object for its [[Class]] property. So any random host

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-15 Thread Garrett Smith
On Sat, Nov 15, 2008 at 5:19 AM, Mike Shaver [EMAIL PROTECTED] wrote: 2008/11/14 Maciej Stachowiak [EMAIL PROTECTED]: Specifically, we expose a filter property on CSSStyleDeclaration, in support of the SVG filter CSS property. However, many sites test for filter to detect support for MSIE's

Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-14 Thread David-Sarah Hopwood
David-Sarah Hopwood wrote: Waldemar Horwat wrote: Mark S. Miller wrote: [Kona 15.3.4.5] 11. If the [[Class]] property of /G/ is *Function*, then 1. Get the *length* property of /G/. 2. Let /L/ be Result(11a) minus the length of /A/. [These substeps

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-14 Thread Mark S. Miller
On Fri, Nov 14, 2008 at 8:25 PM, Maciej Stachowiak [EMAIL PROTECTED] wrote: [...] WebKit has a host class that is identical to the native String class in every way, except that it compares equal to null and undefined, vended in rare circumstances.[...] == or ===? Could you say more about

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-14 Thread Maciej Stachowiak
On Nov 14, 2008, at 8:30 PM, Mark S. Miller wrote: On Fri, Nov 14, 2008 at 8:25 PM, Maciej Stachowiak [EMAIL PROTECTED] wrote: [...] WebKit has a host class that is identical to the native String class in every way, except that it compares equal to null and undefined, vended in rare

Re: Should host objects be able to have [[Class]] Function, Array etc.?

2008-11-14 Thread David-Sarah Hopwood
Maciej Stachowiak wrote: Specifically, we expose a filter property on CSSStyleDeclaration, in support of the SVG filter CSS property. However, many sites test for filter to detect support for MSIE's proprietary filter property, which sadly has the same name but completely incompatible syntax.