[whatwg] Timestamps for <dialog>s

On 12/20/06, Karl Dubost <karl at w3.org> wrote:
> An attribute to qualify semantics content seems better  than adding
> yet another element which will be more difficult to implement in
> editing tools and more constraining.
> [...]
> or something like
> <span property="dc:date" content="2006-12-04">mardi 4 d?cembre 2004</
> span>

The HTML 5 spec already defines a <time> element in section 3.12.11.
According to the spec, Karl's example would be:

<time datetime="2006-12-04">mardi 4 d?cembre 2004</time>

Current user agents that do not understand the <time> element will
ignore it, future user agents can get a machine-readable time from the
datetime attribute. The format of the datetime attribute is defined in
section 3.2.3.

The <time> element can be used anywhere inline content is accepted, so
it already works with Simon's <dialog> time stamp idea.

-William

Received on Wednesday, 20 December 2006 18:36:01 UTC