Comments (5)
Problem also exists in Firefox 58. Linux, Mac or Windows doesn't matter.
from webshim.
I've tried to analyze the problem, and it looks like Firefox >= 57 reports type of a datetime-local input element as text, so the detection fails and the input widget is not extended by webshim. You can test this with this simple html page:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>input datetime-local wrong type demonstration</title>
</head>
<body>
<input id="datetimepicker" type="datetime-local"/>
<script>window.alert(document.getElementById('datetimepicker').type);</script>
</body>
</html>
The alert should report "datetime-local", but it reports "text".
from webshim.
What solves the problem: replace line 3610 in https://github.com/aFarkas/webshim/blob/gh-pages/js-webshim/dev/shims/combos/10.js
var type = $.prop(this, 'type');
with
var type = this.getAttribute('type');
from webshim.
it looks like Firefox >= 57 reports type of a datetime-local input element as text
This is true for Firefox < 57 as well. And it's correct behavior per spec, since Firefox doesn't impement any non-text processing for those input types.
from webshim.
Just done a view tests which type is reported
- Firefox 52.6.0ESR -> text
- Firefox 53.0.3 -> text
- Firefox 54.0.1 -> text
- Firefox 55.0.3 -> text
- Firefox 56.0.2 -> text
- Firefox 57.0.4 -> text
- Firefox 58.0.2 -> text
You are right, it must be something else which causes the problem. What ever, I've done the changes in 10.js I've reported and it works. I've included the patched version in my project and Firefox 57 and 58 displays the datetime-local widget from webshim.
from webshim.
Related Issues (20)
- Failed to construct 'URL' error on Chrome 53 HOT 3
- how to prevent invalid date get wiped?
- How to set different option to different input
- IE 9: Required on input type="email" not working HOT 1
- Publish on packagist.org
- Only work once on firefox using Angular HOT 2
- How to show date in "12/12/12" format instead of "12/12/2012" format
- bower.json is not in github release version
- Typing error on search result
- Multiple Date Fields; only the last is choosable
- Cant play youtube
- Set new Max Date via JS; Selection higher than max date possible
- change event not trigger after display none in IE9
- Seconds in datetime-local? HOT 1
- Website form examples are down (unaccessable jsfiddle)
- Incorrect set first week day in header datepicker
- turkish number format is similar like Germany format
- DVLA 'Share Code' for renewal read-only
- Suggest some workaround - webshim Polyfill breaks due to jquery upgrade 3.6.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webshim.