Page MenuHomePhabricator

Wikidata time DataType should emit HTML <time>
Open, LowPublic

Description

We should make use of the HTML 5 <time> tag. W3C recommendation and WhatWG living standard.

Presently, the HTML emitted is something of the following sort:

<div class="wikibase-snakview-value wikibase-snakview-variation-valuesnak">13 November 2007</div>

It should probably be something like:

<div class="wikibase-snakview-value wikibase-snakview-variation-valuesnak"><time datetime="2007-11-13">13 November 2007</time></div>

Take into account dates and times in the W3C specification.

Related Objects

Event Timeline

Sounds like another calendar model trap (W3C spec requires Gregorian)

Sounds like another calendar model trap (W3C spec requires Gregorian)

I agree. Also, Wikibase emits lots of stuff. This task does not sufficiently specify the context in which some thing like "<div class="wikibase-snakview-value wikibase-snakview-variation-valuesnak">13 November 2007</div>" is emitted.

Sounds like another calendar model trap (W3C spec requires Gregorian)

I agree. Also, Wikibase emits lots of stuff. This task does not sufficiently specify the context in which some thing like "<div class="wikibase-snakview-value wikibase-snakview-variation-valuesnak">13 November 2007</div>" is emitted.

Well, I think it's a good assumption that it's the HTML view of the data.... and it's a problem for all time datatypes.

Sounds like another calendar model trap (W3C spec requires Gregorian)

Of course! :)