W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2004

[whatwg] typed values accessible through scripting

From: Olav Junker Kjr <olav@olav.dk>
Date: Thu, 18 Nov 2004 14:09:17 +0100
Message-ID: <419C9EFD.2010103@olav.dk>
When integrating custom scripting with WF2, it would be very convenient 
if the typed values of the input controls were exposed.

Eg. the value property of a datetime contol is a string in ISO datetime 
format, while the typed value would be a javascript Date object.

The WF2 implementation would probably have to parse the date-string into 
some kind of Date object anyway, to assure that the date is valid, to 
handle "step" and so on. If the page author want to add custom 
validation to the field (like checking that the date isn't a monday for 
example), he would have to parse the string value anyway and build his 
own Date object.

Olav Junker Kj?r
Received on Thursday, 18 November 2004 05:09:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:20 UTC