🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Test html5 i input type date

#50435
From: Peter May
Date: Tue, 21 Dec 2010 13:06
22 lines
1302 bytes
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. 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?

-- 
Peter
Technical Details
Message-ID: <ieq8p0$nda$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!.POSTED!not-for-mail
From: Peter May <peter.may@onet.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Test html5 i input type date
Date: Tue, 21 Dec 2010 14:06:34 +0100
Organization: http://onet.pl
Lines: 22
Message-ID: <ieq8p0$nda$1@news.onet.pl>
NNTP-Posting-Host: uw210.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1292936800 23978 80.55.152.210 (21 Dec 2010 13:06:40 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 21 Dec 2010 13:06:40 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pl; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit