The Disappointing Browser Support of the New HTML5 Number Input

Edit on 2013/01/09: I think the CSS3 property box-sizing: border-box could fix this issue.

I was creating a landing page for a client today and I thought I’d try an element of the HTML5 specification-in-the-making:

<input type="number" />

Basically what the number input does is provide client-side restrictions on the input as well as a browser built-in “spinner” on the field.

The issue I have is that the size must be controlled through CSS. WebKit (Chrome) claims to implement this input type, but the way it sizes the box doesn’t appear to be accurate with respect to the width and padding attributes. While this inconsistent sizing behavior may be acceptable on larger forms where the inputs are over 100 pixels, on smaller input fields, it’s simply unusable to me. The new interface takes up more space, so you either make it crammed and unusable in WebKit (not enough room to view the input), or you have a huge input field on older browsers which default to the type=”text” method.

Use jQuery for your number spinners and be certain they’ll behave how you want (assuming Javascript is enabled), at least until browsers give you an HTML/CSS-only way to have tiny inputs look consistent in newer browsers and still provide a properly sized fallback.

I would still recommend it on larger forms, if you don’t wish to use jQuery. It seemed to work fine in Chrome otherwise.

Also read...

Comments

  1. I agree Chris. I haven’t used Godaddy in a long time. I have been using 1and1.com for awhile. Ironically, now I am changing to hostgator soon. They are currently the most top rated host. I had no idea that they auto-renewed for Godaddy SSL certificates, I need to let some of my recent clients know that, I have referred a few to godaddy’s SSL system.

    Reply
  2. Thanks, Chris, this was helpful. The steps are a bit different as of 7/24/2011.

    1. Login to GoDaddy
    2. Click My Account on the top listing
    3. Click “My Payment Information” on the left side nav bar
    4. Click the small “View All Renewing Items” hyperlink on top of the grid of products that display on the next page
    5. This brings up the page “Payment Profile” where all auto-renew items are listed
    6. Click the “Auto” column header and look for any items turned “On”
    7. Check the box next to any “On” items and click “Auto Renew ” at the top
    8. On the right side of page, check “Disable Auto Renew” then “Save Changes”.

    Reply
  3. Before I found these instructions I went to what I thought wasthe obvious link “My Renewals” but this has NO SSL certificates listed. I assumed that they weren’t auto-renewing. Their 15 and 30 day reminder email messages make NO mention of auto-renew (unlike their domain renewals).

    Suddenly we had our credit card hit. Not only do they auto-renew, they do it a month BEFORE the certificate is due to expire!!! I wouldn’t normally worry but this was a Wildcard certificate that cost $200. We had to drop it because we also found their claim of 99% compatibility to be untrue. I didn’t work on versions of Safari for the iPhone.

    Definitely deceptive. I have a complaint in to them now. If they don’t resolve it I’ll have American Express reverse the charge :)

    Reply
  4. THX that is whot i nead :)
    Sory 4 my english i am from poland
    THAT IS WORKING on MK802 android mini pc (right now uUbuntu MiniPC)

    Reply
  5. Pingback: Right Click Keyboard Ubuntu | mesothelioma-lawyer168

  6. Pingback: ray ban small aviator black

  7. Pingback: Right Click With Keyboard Ubuntu | mesothelioma-lawyer168

  8. Pingback: maglia west ham roma

  9. Pingback: comprare online maglie hard rock

  10. Pingback: Looid

  11. 华夏兼职任务网:全网最便宜广告任务发布平台!

    浏览广告,点击广告,悬赏任务,
    搜索广告,商家问答,旗帜链接,

    多种类别,欢迎投放!

    充值豪礼:

    免费群发一万博客评论,无重复,提供发送记录!

    您能收到本条评论,就说明所言非虚!

    详情点击网站顶部《在线充值》查看

    http://www.hxjz.xin/

    丙申年(猴)九月初十 2016-10-10

    Reply
  12. 今天办公室里几个男女在讨论用避孕套的好处和坏处,男方坚决抵制避孕套,女方大力支持使用避孕套,双方各持一词不分伯仲,这时我们办公室一个大姐问我平日用套套吗?我说:我……我…我都是包皮打个结。当时讨论就结束了。

    Reply
  13. 增达网,看看笑话就有钱!每天收入无上限!

    收入途径:

    ①:坐等收钱,逆向网赚,上线替下线发展,不推广照样赚钱

    ②:浏览赚钱,每阅读一篇笑话就有钱,十万文章不限量观看

    ③:推广赚钱,主动推广的收入是不推广的十倍,赚钱更可观

    ④:广告提成,你的下线发布一次广告,你可得广告费的两成

    注册网址:

    http://www.zengda.xin/?ic=lbc

    无上线无法注册,请勿删除后缀!

    Reply
  14. 增达网:

    群发软件免费下,无限广告免费发,

    百万流量免费享,十级提成免费拿。

    ①:手机营销软件,QQ营销软件,博客营销软件,论坛营销软件,邮件营销软件,终生免费下载

    ②:独立二级域名,可建八个栏目,可以无限制发布自己的产品、项目、广告

    ③:您发布的广告在官网首页和全体免费会员网站显示,终生免费共享全站百万流量

    ④:逆向网赚,上线替下线发展,自动下滑,五五倍增,十级提成,不用推广也赚钱。

    注册网址:

    http://www.1688.zengda.xin/

    丁酉年(鸡)二月廿七 2017-3-24

    Reply
  15. 我赚啦:什么不用干,收入无上限。免费下载营销软件!

    ①浏览赚钱。每浏览一个广告1分钱。下线每浏览一个广告你也有1分钱。(收入无限制)

    ②坐等收钱。逆向推荐,上线替下线发展,就算不推广,照样有钱赚。(每年最多赚44286元)

    ③推广赚钱。每推荐一个VIP下线提成 5 元,三三倍增,十级提成。(每年最多赚442860元)

    ④广告赚钱。你推荐的下线发布广告你都有其广告费 20% 的提成。(收入无限制)

    营销软件,网赚揭秘,免费下载,永久更新!

    注册网址:

    http://www.wozhuan.la/?ic=cool

    无上线无法注册,请勿删除后缀!

    Reply
  16. 增达网:
    ——————————
    终生只需99元,让百万人每天浏览你的广告,每次浏览十秒时间。

    终生只需99元,免费下载群发软件,无使用限制,全部是破解版。

    终生只需99元,让你什么不干躺着就赚钱,上线替下线发展会员。
    ——————————
    群发软件免费下,无限广告免费发,

    百万流量免费享,十级提成免费拿。
    ——————————
    注册网址:

    http://www.wo.zengda.xin/
    ——————————
    免费会员,不花钱,照样赚
    ——————————

    Reply
  17. 增达网:
    ——————————
    终生只需99元,让百万人每天浏览你的广告,每次浏览十秒时间。

    终生只需99元,免费下载群发软件,无使用限制,全部是破解版。

    终生只需99元,让你什么不干躺着就赚钱,上线替下线发展会员。
    ——————————
    群发软件免费下,无限广告免费发,

    百万流量免费享,十级提成免费拿。
    ——————————
    注册网址:

    http://www.wo.zengda.xin/
    ——————————

    Reply
  18. 沃八达,逆向导购,自动下滑,三三倍增,十级提成。

    ①注册提成。有人在你网站注册你就有钱,阶梯制,最低每个 1 毛,最高 1 元。

    ②下线提成。逆向推荐模式,上线替下线发展,就算不推广,照样有钱赚,见点 5 元。

    ③直推提成。你自己每推荐一个VIP下线提成 50 元,满 3个开始下滑,但提成不会减少。

    营销软件,无限下载,每日增加,永久更新。

    免费注册网址:

    http://www.lin152.wobada.com/?Action=xm2

    沃八达

    Reply

Leave a Reply to www.yihuanghou.com Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>