[whatwg] ECMAScript extensions in Web Applications
chris___m at hotmail.com
Wed Oct 19 06:46:31 PDT 2005
> Are you suggesting that any
> Function object should have a .handleEvent() method in addition to its
> .call() method and its .prototype attribute? What would be the point?
Consistency. The exceptional treatment for ECMAScript described in the WD is:
1) Not merely a language binding feature. It's another DOM for another language. Variability from language to language is acceptable but differences should be justified. Let me describe an ideal situation. In my opinion it would be when a translator whose input language is X and output language is Y didn't need any knowledge of the extensions. Generic, purely syntactic rules for rewriting names of host objects, methods etc. should be enough.
More information about the whatwg