mdn / content

The content behind MDN Web Docs
https://developer.mozilla.org
Other
9.22k stars 22.5k forks source link

Attribute is called `dateTime`, not `datetime` #36844

Closed kleinesfilmroellchen closed 4 days ago

kleinesfilmroellchen commented 4 days ago

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time

What specific section or headline is this issue about?

Attributes

What information was incorrect, unhelpful, or incomplete?

The property dateTime is incorrectly listed as being called datetime.

What did you expect to see?

dateTime

Do you have any supporting links, references, or citations?

See IDL in https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-time-element

Do you have anything more you want to share?

No response

MDN metadata

Page report details * Folder: `en-us/web/html/element/time` * MDN URL: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/html/element/time/index.md * Last commit: https://github.com/mdn/content/commit/835c199410845eed61aaf8439cb2e9719e7e9f98 * Document last modified: 2024-08-15T23:43:52.000Z
Josh-Cena commented 4 days ago

HTML content attributes are always lowercase. The JavaScript IDL property is documented in web API, not HTML: https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime