serialize / serializeArray not including input type="submit"

serialize / serializeArray not including input type="submit"

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hey guys,<div>
</div><div>I just noticed that the serialize and serializeArray methods aren't including inputs with type="submit" . Is this intentional? </div><div>
</div><div>in jquery.js:</div><div> * $Date: 2008-10-18 18:22:08 -0400 (Sat, 18 Oct 2008) $<div> * $Rev: 5891 $</div><div>
</div><div>lines 2484-2505:</div><div>
</div><div><div><span class="Apple-tab-span" style="white-space:pre"> </span>serialize: function() {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return jQuery.param(this.serializeArray());</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>},</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>serializeArray: function() {</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return this.map(function(){</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return this.elements ? jQuery.makeArray(this.elements) : this;</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>})</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>.filter(function(){</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return this.name && !this.disabled &&</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>(this.checked || /select|textarea/i.test(this.nodeName) ||</div><div><span class="Apple-tab-span" style="white-space:pre"> </span><b>/text|hidden|password/i.test(this.type)</b>);</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>})</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>.map(function(i, elem){</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>var val = jQuery(this).val();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return val == null ? null :</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>val.constructor == Array ?</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>jQuery.map( val, function(val, i){</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>return {name: elem.name, value: val};</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}) :</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>{name: elem.name, value: val};</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}).get();</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div>
</div></div><div>Submit inputs are considered successful controls[1], so I was a little surprised that they aren't included. Am I missing something?</div><div>
</div><div>[1]<a href="http://www.w3.org/TR/html401/interact/forms.html#successful-controls">http://www.w3.org/TR/html401/interact/forms.html#successful-controls</a></div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline">--Karl</div><div><br class="Apple-interchange-newline">____________</div><div>Karl Swedberg</div><div><a href="http://www.englishrules.com">www.englishrules.com</a></div><div><a href="http://www.learningjquery.com">www.learningjquery.com</a></div><div>
</div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline"></div></span> </div>
</div>