ES accessor usage guidelines (Was: Map/Set.prototype.size)
brendan at mozilla.org
Mon Oct 15 14:41:00 PDT 2012
Yehuda Katz wrote:
> * get/set accessor may have effects on 'set' (see the DOM) but
> only on the receiver object (and unobservably, any children that
> become garbage, e.g. when trimming .length on an array-like).
> DOM methods like `innerHTML=` seem to violate this particular wording
> (but perhaps not the spirit?)
Definitely the spirit!
That's one of those "children become garbage" cases, unless I
misunderstand your point. "The receiver" for .innerHTML includes all
More information about the es-discuss