RE: valueAsDate for input@type=datetime-local

I'm guessing the reason is because JavaScript Date is a global time (includes a timezone), and datetime-local is a "floating" time (no timezone). Without the context of a timezone, you can't convert from floating to global time.

-----Original Message-----
From: Manuel Strehl [mailto:svg@manuel-strehl.de] 
Sent: Tuesday, April 19, 2016 6:04 AM
To: public-html@w3.org
Subject: valueAsDate for input@type=datetime-local

Hi,

short question: Why does valueAsDate not apply to type=datetime-local inputs? (I.e. should return `null` as per spec.) I tried finding reasons for that in the spec, list archive, Google, ..., but was unable to unearth any.

Thanks!

--Manuel

Received on Tuesday, 19 April 2016 14:36:26 UTC