Conflicts between W3C specs and ES5?

Garrett Smith dhtmlkitchen at gmail.com
Wed Nov 18 19:20:12 PST 2009


On Wed, Nov 18, 2009 at 4:16 PM, Brendan Eich <brendan at mozilla.com> wrote:
> On Nov 18, 2009, at 3:25 PM, David-Sarah Hopwood wrote:
>
>> Brendan Eich wrote:
>>>
>>> On Nov 17, 2009, at 6:41 PM, Maciej Stachowiak wrote:
>>>
>>>>>> otherWindow.copyOfEvalFromYetAnotherWindow("...") throws
>>
>> [...]
>>>>>
>>>>> What is the rationale for throwing in this last case, rather than
>>>>> using the explicit base object (otherWindow) as |this|?
>>
>> [...]
>>>
>>> The standard ECMA-262 semantics want otherWindow -- "bound method"
>>> exceptions prove the rule.
>>
>> There are bound methods in ES implementations? I'm all ears.
>

IE's famous appendChild "performance trick":

var bodyAppendChild = document.body.appendChild;
bodyAppendChild(document.createTextNode("hello"));

http://blogs.msdn.com/ie/archive/2006/08/28/728654.aspx

The results in an error in other browsers; not IE (to be expected).

DOes that fit the definition of "bound method"?


More information about the es-discuss mailing list