Hacker News new | past | comments | ask | show | jobs | submit login

I found that strange too. I'd probably have the date as a text node, so that there is still time information visible in the rare case when javascript is turned off.



I'd go for the microformats way of representing time, now that they've standardized it:

http://microformats.org/wiki/datetime-design-pattern

    <abbr class="foo" title="YYYY-MM-DDTHH:MM:SS+ZZ:ZZ">Date Time</abbr>

There are a lot of good alternatives proposed and debated on that page, so I'm confident that they've come up with the best way to represent the date in the DOM. Additionally, it's readable from Javascript-less environments and and uses only standard elements and attributes.


I've heard about that. I think microformats are clever but I'm still waiting on the resolution of the whole microformats vs accessibility debate.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: