TiddlySpace / tiddlyspace

A discoursive social model for tiddlers
http://tiddlyspace.com
Other
106 stars 38 forks source link

[clean1] use standard markup for modified timestamp #1089

Closed FND closed 11 years ago

FND commented 11 years ago

<span class="date modified" data-modified="Mon, 24 Jun 2013 19:06:25 GMT">Mon, 24 Jun 2013 19:06:25 GMT</span>

that seems wrong because non-standard

there's an agreed HTML5 standard for this sort of thing - though I don't recall what it is now (there's been too much back and forth); needs investigation

pads commented 11 years ago

I think this could use the time tag: http://html5doctor.com/the-time-element/

colmjude commented 11 years ago

Yeah there is the time tag or at least there was. I seem to remember there being a big discussion about the time tag and it being replaced by a data tag... Not 100% sure if this has been fully resolved.

FND commented 11 years ago

I think this describes the current state of the art/spec: http://www.brucelawson.co.uk/2012/best-of-time/

cdent commented 11 years ago

If this is going to be done we either need a jinja filter to make the right output for the datetime attribute or need a macro within the templates to properly output the proper time info.

In fact a few macros for this class of thing would be quite useful.

cdent commented 11 years ago

The macro and changed timestamp info has been deployed.

There are some issues with parental HTML but these should be dealt with on separate issues, so closing.