On Thu, Feb 18, 2010 at 10:28 PM, Maciej Stachowiak <[email protected]> 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

Reply via email to