Re: [XBL] Introduction

Cameron McCormack:
> >   Bindings can contain event handlers that watch for events on the bound
> >   element, an implementation of new methods, properties and fields that
> >   become accessible from the bound element, shadow content that is
> >   inserted underneath the bound element, and associated resources such
> >   as scoped style sheets and precached images, sounds, or videos.
> > 
> > Maybe s/from the bound element/from the bound element’s DOM object/?

Ian Hickson:
> I don't understand the intent of this change.

I think I was trying to make a distinction between the element in the
document and the DOM object that represents it.  I’ve since realised
that not many other people make the distinction, so it’s not important.

> > Some strange (get/set) syntax is used in the example in this section. 
> > According to section 2.1, the default scripting language is ECMAScript 
> > 3rd Edition.  The example should be changed so that it does not have 
> > incorrect syntax.
> 
> Unfortunately, ECMA262 doesn't have syntax for getters and setters, and 
> there isn't yet something more up to date to refer to. I'll update the 
> spec when I can with the new reference.
> 
> 
> > Ah I see later on in section 2.3 it is mentioned these come from 
> > JavaScript 1.5.  Examples that use this syntax should have 
> > script-type="text/javascript;version=1.5" or something.  Better would be 
> > just to stick to ECMAScript.
> 
> I don't see why script-type="text/javascript;version=1.5" would be needed. 
> As noted above, ECMA 262 doesn't have getters and setters, so we can't not 
> use them.

I don’t see how it follows that since ECMA 262 doesn’t have getters and
setters, they must be used.

Anyway, currently the spec says that the default script language is ECMA
262.  Many of the examples in the document use features of JavaScript
1.5, which aren’t in ECMA 262.  So, either those examples should have
script-type set so that the examples are actually in the language
specified, or the examples should be changed not to use the getters and
setters.

Thanks,

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
 xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

Received on Saturday, 13 January 2007 04:42:19 UTC