Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernizr.inputtypes.date false on FirefoxOS #1030

Closed
sime opened this issue Sep 2, 2013 · 13 comments
Closed

Modernizr.inputtypes.date false on FirefoxOS #1030

sime opened this issue Sep 2, 2013 · 13 comments

Comments

@sime
Copy link

sime commented Sep 2, 2013

I have just used Modernizr.inputtypes.* for the first time today and have discovered that testing for the date input type is false for FirefoxOS, when in fact date fields are supported.

I've started looking into the source, but it will take some time for me to wrap my head around Modernizr before I can produce a patch.

Cheers!

@patrickkettner
Copy link
Member

Hey sime!
Could you try my modified date branch, and let me know if that helps?

@patrickkettner
Copy link
Member

It doesnt help =[. It also is failing for datetime, time, and datetime-local.

@stucox
Copy link
Member

stucox commented Sep 20, 2013

Does FirefoxOS show a datepicker widget for a [type=date] field?

@patrickkettner
Copy link
Member

@stucox
Copy link
Member

stucox commented Sep 23, 2013

Firefox for Android 23.0 returns true for Modernizr.inputtype.date… I'm guessing we're talking about native apps here rather than the browser?

Could you tell me what the results are from this Pen on FFOS? http://codepen.io/stucox/pen/erBuI (I guess you may have to drop the code into a test app)

I haven't got an FFOS device available at the mo.

@sime
Copy link
Author

sime commented Sep 23, 2013

@stucox Screenshot attached.

2013-09-23-18-38-29

@stucox
Copy link
Member

stucox commented Sep 23, 2013

That first result means that if you set <input type="date">, it automatically changes it to <input type="text">, so I don't see how that can support the date input type?!

Or is there a major difference between the browser environment and the native app environment? Which environment supports type=date?

@sime
Copy link
Author

sime commented Sep 23, 2013

You can get Firefox OS Simulator as an FF extension:
https://addons.mozilla.org/en-US/firefox/addon/firefox-os-simulator/

Should help if you don't have a device.

On Mon, Sep 23, 2013 at 6:55 PM, Stu Cox notifications@github.com wrote:

That first result means that if you set , it
automatically changes it to , so I don't see how that
can support the date input type?!

Or is there a major difference between the browser environment and the
native app environment? Which environment supports type=date?


Reply to this email directly or view it on GitHubhttps://github.com//issues/1030#issuecomment-24911849
.

Simon Males

@patrickkettner
Copy link
Member

Gross, seems like this is a known issue.

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

perhaps @codepo8 could weigh in?

@patrickkettner
Copy link
Member

Reached out to @autonome on twitter.

@patrickkettner
Copy link
Member

This was fixed in 1.2. Considering how low the penetration for firefox os is, and that all major phones have upgrades available, I'm just going to close this out.

@sime
Copy link
Author

sime commented Mar 1, 2014

Thanks, I can confirm that the above codepen.io all return True on FirefoxOS 1.2.

@stucox
Copy link
Member

stucox commented Mar 1, 2014

Cheers for the heads-up on the emulator plugin @sime 👍 I’ve got a real device in my office now too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants