[wp-trac] [WordPress Trac] #17863: HTML5 input type=number in admin settings

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 10 19:01:01 UTC 2012


#17863: HTML5 input type=number in admin settings
----------------------------+------------------------------
 Reporter:  niallkennedy    |       Owner:  georgestephanis
     Type:  task (blessed)  |      Status:  reopened
 Priority:  normal          |   Milestone:  3.4
Component:  Administration  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:24 nacin]:
 > There's no requirement for upload_url_path to be an absolute URL.

 Perhaps the "label" should be fixed there too. "Full URL path..." doesn't
 sound right if a relative URL can be used.

 > I'm wondering if some of the type="number" step="1" min="1" should
 instead be min="0".

 Image dimension settings (in options-media.php) and number of items
 (posts/comments) per page cannot be 0 (zero). That would reset these
 fields to the default number. Perhaps 0 can be user as "reset to default"
 setting there (the browsers also accept empty fields for type="number"
 that would reset to default).

 Replying to [comment:25 toscho]:
 > `type=email` will be validated different in various browsers... (IDN)
 Works in Opera, fails in Chrome (17.0.963.78 m) and Firefox (10.0.2).

 Seems that IDN email addresses currently fail validation in the back-end.
 The benefit of having type="email" is that on mobile devices when the
 field is focused the onscreen keyboard would contain the @ button. On the
 other hand we shouldn't be using "buggy" email address validation, perhaps
 better to revert these fields and test again in 3.5, hopefully Chrome and
 FF will get that right by then.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17863#comment:26>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list