[wp-trac] [WordPress Trac] #20420: maxlength attribute not working on new input[type=number]

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 11 23:34:31 UTC 2012


#20420: maxlength attribute not working on new input[type=number]
--------------------------+-----------------------------
 Reporter:  tbuteler      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.4
 Severity:  trivial       |   Keywords:
--------------------------+-----------------------------
 I don't know if this categorizes as a WP bug or just browser bugs, but the
 maxlength attributes on the "div.screen-options input.screen-per-page"
 elements is not working after the upgrade to 3.4 changed their type from
 "text" to "number".

 As tested on the latest versions of Chrome, Safari and Opera (which render
 a spin box on the left of the element), you can have any number you want
 inside the box. Firefox, which relies solely on keyboard input, is the
 only one that honors the maxlength of 3.

 If this change was decided so that iOS users can have a numeric keyboard,
 this seems to provide an alternative:
 [http://stackoverflow.com/a/4882479/754914]

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20420>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list