<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 26, 2010, at 11:37 AM, Michael Nordman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="gmail_quote"><div>Sure, but a better name could help a bit. For example, this produces a 'shared' object:</div>

<div><br></div><div><div>document.getElementById("foo")</div><div><br></div></div><div>while this creates a new one:</div><div><br></div><div>myFormElement.getFormData()</div><div><br></div><div>It might be ok, but it is a bit inconsistent.</div>

<div><br></div><div>Why not:</div><div>formData = new FormData();</div><div>formData = new FormData(myFormElement);</div></div></div></blockquote><div><br></div><div>ah... +1 the ctor </div></div></blockquote><br>Indeed, constructor syntax makes it very clear that you are getting a new object. I like.</div><div><br></div><div> - Maciej</div><div><br></div></body></html>