Page MenuHomePhabricator

add class to dynamic dates
Closed, ResolvedPublic

Description

Dynamic dates (autoformatted dates) are emitted into the page as standard links. As they are a distinctly different type of link, it would be helpful if the emitted html identifies them as dynamic dates.

Two method come to mind. Either add a class to the the anchor tags, or add a span element around the dynamic date.

This would allow custom styles to be applied by either the skin or individual editors, and would permit JavaScript to readily access and manipulate these elements of the content.

bug 8226 could be easily solved in there was a span element around the dynamic date with the date placed into the title attribute in a sortable format like YYYYMMDD.


Version: unspecified
Severity: enhancement

Details

Reference
bz17785

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:33 PM
bzimport set Reference to bz17785.

Created attachment 5887
Proposed patch

Attached patch would implement the requested behaviour.

Whether or not we want to actually implement it is a separate question, which is why I haven't committed this patch yet.

Attached: