Boris Zbarsky: > For what it's worth, the way Gecko implements this is by inserting > an object into the prototype chain of the Window that handles these > property gets. This means that |var| (which defines a prop on the > Window itself) will always shadow the named props, which is the > behavior you observe.
If we solve the problem in this way, with an extra object in the prototype chain, then this could be defined in HTML without any special prose. [NoInterfaceObject] interface WindowNames { getter any (in DOMString name); }; interface Window : WindowNames { ... }; -- Cameron McCormack ≝ http://mcc.id.au/