I made a custom build for HTML input fields & attributes and included that on my page in the <head>
but that's not working. What else do I need to do?
Not sure what it is you are trying to accomplish, but the "Input Attributes" option adds tests for the following <input>
attributes: autocomplete
, autofocus
, list
, placeholder
, max
, min
, multiple
, pattern
, required
, and step
. -- Not sure what this has to do with <input type="datetime" ...>
elements?
The "Input Types" option does adds tests for the following type
s of <input>
elements: search
, tel
, url
, email
, datetime
, date
, month
, week
, time
, datetime-local
, number
, range
, and color
.
However, from the documentation:
These (input) types can enable native datepickers, colorpickers, URL validation, and so on. If a browser doesn’t support a given type, it will be rendered as a text field. Modernizr cannot detect that date inputs create a datepicker, the color input create a colorpicker, and so on—it will detect that the input values are sanitized based on the spec.
In general, Modernizr doesn't "do" anything (besides the HTML5 shim), it just allows you to detect for the existence of modern features on the browser.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With