Add new html5 input types to list of serializable types. Older browers handle these as type="text" so they should be consistently serialized on both old and new browsers. Fixes #5667.

This commit is contained in:
Dave Methvin 2009-12-17 10:02:58 +08:00 committed by John Resig
parent 6bc222e7a1
commit b31b9bd756
2 changed files with 12 additions and 5 deletions

View file

@ -1,7 +1,7 @@
var jsc = now(),
rscript = /<script(.|\s)*?\/script>/g,
rselectTextarea = /select|textarea/i,
rinput = /text|hidden|password|search/i,
rinput = /color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,
jsre = /=\?(&|$)/,
rquery = /\?/,
rts = /(\?|&)_=.*?(&|$)/,