This is how you render a time element (see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time):
<time datetime="2001-05-15 19:00">May 15</time>
but react throws away the 'datetime' attribute if you do:
React.DOM.time({datetime: "2001-05-15 19:00"}, "may 15")
That is bad because screenreaders/microformats use it to get semantic meaning from it.
You should use dateTime, DOM properties are camelCased in React. Also see console, it warns you with:
Warning: Unknown DOM property datetime. Did you mean dateTime?
Oh, duh. thank you
On Jun 27, 2014 1:57 AM, "Andrey Popp" [email protected] wrote:
You should use dateTime, DOM properties are camelCased in React. Also see
console, it warns you with:Warning: Unknown DOM property datetime. Did you mean dateTime?
—
Reply to this email directly or view it on GitHub
https://github.com/facebook/react/issues/1749#issuecomment-47317327.
Most helpful comment
You should use
dateTime, DOM properties are camelCased in React. Also see console, it warns you with: