News for hackers. Stuff that matters.
Re:The Sad State of HTML Email Input Fields and IDNs by janci on Sunday October 23, 2016 @09:51AM (#12773550)
Not only date/datetime/time fields are broken. Also type=number does not work consistently across different locales and different browsers. Some don't let you type decimal comma.
Re:The Sad State of HTML Email Input Fields and IDNs by zbraniecki on Sunday October 23, 2016 @08:52PM (#12776173)
Hi, I'm one of the engineers working on date/time fields [0] (you can see the design document for them here[1]) for Firefox. We're on the way to support them and hopefully support them well.

Now, I also happen to be working on refactor of our Intl code, so I should be able to help with the number field being inconsistent. If you can file a bug and prepare a minimized testcase, I'd be happy to fix it! :)

[0] https://bugzilla.mozilla.org/show_bug.cgi?id=888320 [1] https://bugzilla.mozilla.org/show_bug.cgi?id=1069609

Re:The Sad State of HTML Email Input Fields and IDNs by err4nt on Sunday October 23, 2016 @10:45PM (#12776520)
Hey @zbraniecki, thanks for the work you're doing. I use type=number cautiously for self-built tools for my own use, but so far have avoided it in production code. Thanks to your effort maybe someday I'll be able to use this 'for real'!
Re:The Sad State of HTML Email Input Fields and IDNs by freditup on Sunday October 23, 2016 @06:54PM (#12775824)
Also with type=number fields: some support showing a leading "0" while others don't. Seems like a small detail, but it all adds up to death by a thousand cuts and custom implementations of everything.
Re:The Sad State of HTML Email Input Fields and IDNs by edoceo on Sunday October 23, 2016 @06:12PM (#12775675)
IE doesn't understand max attribute. Sometimes marks an error with large (but inconsistent) value.

Id est: use max="100000". Then on one IE/Edge 16000 is an error but 15000 is OK. Different IE/Edge box its 18000 cap.

I have to make a custom UI component to make this work (riotjs)

Re:The Sad State of HTML Email Input Fields and IDNs by adrianratnapala on Sunday October 23, 2016 @01:52PM (#12774554)
Is a "decimal comma" a thausands separator, or is it a decimal-point for locales where that is expressed by a comma?
Re:The Sad State of HTML Email Input Fields and IDNs by rhizome on Sunday October 23, 2016 @06:02PM (#12775640)
I'm not sure this is universal, but locales which use a period for a thousands separator use a comma as a decimal point, and vice-versa.
Re:The Sad State of HTML Email Input Fields and IDNs by m_t on Monday October 24, 2016 @04:53AM (#12777434)
It's not universal, that wouldn't be complicated enough!
Re:The Sad State of HTML Email Input Fields and IDNs by heinrich5991 on Sunday October 23, 2016 @02:29PM (#12774721)
It's the separator between the whole and fractional parts of the number.