On 16-02-2012 16:50, Jørgen Farum Jensen wrote:
> Den 16-02-2012 12:21, Leif Neland skrev:
>> Findes der en javascript-pakke, der kan emulere html5's validering af
>> inputtyper i de browsere, der endnu ikke forstår det?
>>
http://www.w3schools.com/html5/html5_form_input_types.asp
>> Så man kan bruge html5-typerne som number, email og url iflg
>> standarderne,
>> uden at skulle hægte mere på inputfields?
>>
>> Leif
>>
>>
>
> Hvad med
>
http://www.modernizr.com/
> ?
>
Nej modernizr kan ikke..
Input Types
HTML5 introduces thirteen new values for the <input>'s type attribute.
They are as follows: search, tel, url, email, datetime, date, month,
week, time, datetime-local, number, range, color.
These 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 the case of WebKit, we have
received confirmation that sanitization will not be added without the UI
widgets being in place.