搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Input type date placeholder text not localized

  • 1 个回答
  • 1 人有此问题
  • 10 次查看
  • 最后回复者为 knickum

more options

No matter what combination of settings for Windows regions and languages, FF region download and navigator.userAgent, the placeholder text (as in, the text that shows before any value is entered, or when attribute value="") for an input field of type date always shows non-localized MM/DD/YYYY.

Reproduce: 1. Put 'data:text/html, <input type="date">' into the FF location. 2. Notice the text box shows 'mm/dd/yyyy' regardless of Windows and FF settings 3. Click in the box, select a date from the date picker, the result will be properly localized (e.g., select English (Canadian)/en-ca, or Chinese (Simplified)/ch-zh) and the date selected clearly doesn't match MM/DD/YYYY format.

No matter what combination of settings for Windows regions and languages, FF region download and navigator.userAgent, the placeholder text (as in, the text that shows before any value is entered, or when attribute value="") for an input field of type date always shows non-localized MM/DD/YYYY. Reproduce: 1. Put 'data:text/html, <input type="date">' into the FF location. 2. Notice the text box shows 'mm/dd/yyyy' regardless of Windows and FF settings 3. Click in the box, select a date from the date picker, the result will be properly localized (e.g., select English (Canadian)/en-ca, or Chinese (Simplified)/ch-zh) and the date selected clearly doesn't match MM/DD/YYYY format.

所有回复 (1)

more options