NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 347 - replace refs to form.data.datetime with common.data.datetime + consider renaming w:datetime-tz to w:datetime
replace refs to form.data.datetime with common.data.datetime + consider renam...
Status: RESOLVED FIXED
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 normal
Assigned To: Henri Sivonen
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-08 08:06 CET by Michael[tm] Smith
Modified: 2008-12-20 18:49 CET (History)
0 users

See Also:


Attachments
patch with proposed changes (895 bytes, patch)
2008-12-08 08:07 CET, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2008-12-08 08:06:28 CET
<MikeSmith> hsivonen: seems like there's no longer any need for separate common.data.datetime and form.data.datetime -- since HTML draft specifies "valid date and time string" for all instances where schema has w:datetime-tz or w:datetime datatype
<MikeSmith> so values of attributes for <input type=datetime> can just be changed to common.data.datetime
<MikeSmith> and w:datetime-tz can probably just be renamed to w:datetime
<MikeSmith> as far as I can see
<MikeSmith> with w:datetime being defined as a full date-time, with a required time-offset 
<MikeSmith> and keeping w:datetime-local for date and time without the time-offset

see attached patch
Comment 1 Michael[tm] Smith 2008-12-08 08:07:18 CET
Created attachment 6 [details]
patch with proposed changes
Comment 2 Henri Sivonen 2008-12-17 15:09:55 CET
I have trouble believing that Hixie meant to make non-"Z" time zone designators conforming for input type=datetime. Checking.
Comment 3 Michael[tm] Smith 2008-12-19 05:02:51 CET
(In reply to comment #2)
> I have trouble believing that Hixie meant to make non-"Z" time zone designators
> conforming for input type=datetime. Checking.

Did you get any resolution from Hixie about this yet? I saw your comment:
http://krijnhoetmer.nl/irc-logs/whatwg/20081217#l-281
"<hsivonen> as far as I can tell, the fourth para under http://www.whatwg.org/specs/web-apps/current-work/#date-and-time-state says that any time zone is valid, but the third para requires UAs to produce only UTC results"

and I saw Hixie's response:
http://krijnhoetmer.nl/irc-logs/whatwg/20081217#l-415
"<Hixie> hsivonen: yeah i wanted to allow authors to use their own time zone when setting the value"

I note that a relevant part of the 3rd paragraph you cite says:
"User agents must not allow the user to set the value to a string that is not a valid global date and time string expressed in UTC, though user agents may allow the user to set and view the time in another timezone and silently translate the time to and from the UTC timezone in the value."

Strictly in terms of document conformance (conformance of a serialized HTML document), my read of that part is: A value that's a non-Z time-zone designator is in fact valid as far as document conformance; that is, a serialized HTML document that has a value with a non-Z time-zone designator is conformant/valid (but if a conformant UA encounters such a value, it must silently translate it to the UTC timezone in the DOM).

Does that sound right, or am I missing something?
Comment 4 Henri Sivonen 2008-12-20 18:49:50 CET
Checked in. Thanks. Filed bug 364 about renaming.