This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7145 - Valid date strings should accept ambiguous inputs, like "2009" or "2007-01".
Summary: Valid date strings should accept ambiguous inputs, like "2009" or "2007-01".
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Keywords: NoReply
Depends on:
Reported: 2009-07-26 22:58 UTC by contributor
Modified: 2010-10-04 14:32 UTC (History)
4 users (show)

See Also:


Description contributor 2009-07-26 22:58:23 UTC

Valid date strings should accept ambiguous inputs, like "2009" or "2007-01".

Posted from:
Comment 1 Faruk 2009-07-26 23:07:10 UTC
(This bug was posted by me)

Currently, the HTML 5 TIME element's datetime attribute does not allow for ambiguous date inputs, such as just a year or a year and a month. These are very common occurrences on the web (archive views are full of them) and currently they could not be marked up with the TIME element in any valid form that makes sense.

Add additional options to the "valid date or time string":

* A valid date string can also be a less granular date format, such as YYYY or YYYY-MM, indicating the entirety of the year y or month m in year y.
Comment 2 Ian 'Hixie' Hickson 2009-08-09 23:06:37 UTC
This has been discussed a number of times. For an overview of the topic, please see these e-mails:

It's not clear why this:

   <p>Dolly was born in <time>2009</time>.</p> any better than this:

   <p>Dolly was born in 2009.</p>

It's not like the year is going to be used in calendar data or localised in special ways.

Without clear use cases, I don't intend to change the spec here.
Comment 3 Maciej Stachowiak 2010-03-14 14:48:32 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.