- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Thu, 18 Feb 2010 22:36:10 -0600
On Thu, Feb 18, 2010 at 10:28 PM, Maciej Stachowiak <mjs at apple.com> wrote: > However, I also think 0-argument getters are a bad pattern in JavaScript. > Why not just use an attribute? > > interface HTMLFormElement : HTMLElement { > ?... > ?readonly attribute FormData formData; > ?... > }; Jonas addressed that in the original email - he (rightfully, I feel) fears that if it's an attribute, people will assume that it can be assigned to. I see absolutely nothing wrong with 0-argument getters, personally. ~TJ
Received on Thursday, 18 February 2010 20:36:10 UTC