🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #50436

Re: Test html5 i input type date

#50436
From: Paweł Piskorz
Date: Tue, 21 Dec 2010 15:34
35 lines
1885 bytes
On 2010-12-21 14:06, Peter May wrote:
> Sprawdzam, czy przeglądarka obsługuje właściwość "date" dla "input"-a tak:
>
> var elm = document.createElement("input");
> elm.setAttribute("type", "date");
>
> if(elm['type'] != "text")
> {
> return true;
> }
> return false;
>
> To pokazuje mi, że Chrome 8.0.552.224 obsługuje input type date.

GChrome tak obsługuje input[type=date] jak GMail pisanie pod cytatem.

> Ale z kolei tutaj widzę:
>
> http://miketaylr.com/code/html5-forms-ui-support.html
>
> że nie Chrome nie obsługuje input type date.
>
> Ja mam błąd w kodzie? Czy w powyższym URL-u test jest nieprawidłowy?

http://www.w3.org/TR/html5/states-of-the-type-attribute.html#date-state
"User agents must not allow the user to set the value to a string that 
is not a valid date string."
Jaka "data" widnieje w polach daty w GChrome "obsługującym" 
input[type=date]?


-- 
message[autor="PablO"]::after {
	content:"Pozdrawiam";
}
Technical Details
Message-ID: <ieqhf4$h4p$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <ieq8p0$nda$1@news.onet.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Paweł Piskorz <nie.ma.maila@psikre.nie?>
Newsgroups: pl.comp.lang.javascript
Subject: Re: Test html5 i input type date
Date: Tue, 21 Dec 2010 16:34:56 +0100
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 35
Message-ID: <ieqhf4$h4p$1@inews.gazeta.pl>
References: <ieq8p0$nda$1@news.onet.pl>
NNTP-Posting-Host: 87-205-176-195.adsl.inetia.pl
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1292945701 17561 87.205.176.195 (21 Dec 2010 15:35:01 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Tue, 21 Dec 2010 15:35:01 +0000 (UTC)
X-User: uhorek
In-Reply-To: <ieq8p0$nda$1@news.onet.pl>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 Hamster/2.1.0.11
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit