【问题标题】:autocapitalize="none" doesn't work for <input type="search"> in Firefox on Androidautocapitalize="none" 不适用于 Android 上 Firefox 中的 <input type="search">
【发布时间】:2020-02-16 19:39:46
【问题描述】:

这个简单的代码在 Android 上的 Firefox 中无法正常运行:

&lt;input type="search" autocapitalize="none"&gt;

预期行为:输入值不会自动大写

实际行为:输入值大写

是我遗漏了什么还是 Android 上的 Firefox 中的错误?


附言。我刚刚注意到 SO 代码 sn-ps 在移动设备上不起作用,这是用于测试目的的现场演示:https://gleaming-kitty.glitch.me/

【问题讨论】:

  • 看起来很像一个错误。输入类型文本在 Firefox android 中不会自动大写。也许您可以将其用作后备?
  • 输入类型文本按预期工作,但我不能将其用作后备

标签: html html-input firefox-android autocapitalize


【解决方案1】:

这实际上似乎是 Firefox for Android 上缺少的功能。这是错误报告。随意投票并将自己添加到 CC 中(或者甚至贡献一个补丁)。

https://bugzilla.mozilla.org/show_bug.cgi?id=1425291

我还做了一个简单的demo来测试autocapitalize属性:

https://jsitor.com/t3mzs47BZ

【讨论】:

    【解决方案2】:

    我会同时尝试autocapitalize="none"autocapitalize="off"

    如果这仍然不起作用,那么您使用的 Firefox for Android 版本可能存在错误。

    【讨论】:

    猜你喜欢
    • 2016-05-23
    • 1970-01-01
    • 2016-07-18
    • 1970-01-01
    • 2011-05-10
    • 1970-01-01
    • 2020-02-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多