Closed Bug 596910 Opened 14 years ago Closed 14 years ago

Should use datetime attribute correctly

Categories

(Input :: General, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stephend, Assigned: wenzel)

References

()

Details

Trivial, but the TITLE attribute text on http://input.stage.mozilla.com/en-US/opinion/433967 seems to be missing a space:

<time title="2010-09-13T13:44:59Z">2 days, 18 hours ago</time>
A space? Where? What's *rather* possible is that this should be the datetime attribute and not "title". Or the ISO 8601 time should be in datetime and a more human-readable equivalent in the title tag.
(In reply to comment #1)
> A space? Where? What's *rather* possible is that this should be the datetime
> attribute and not "title". Or the ISO 8601 time should be in datetime and a
> more human-readable equivalent in the title tag.

You're right -- I hadn't heard of that before; cool.
Severity: trivial → normal
Summary: TITLE attribute for timestamp seems to be missing a space → Should use datetime attribute correctly
Is this still something that needs to be fixed?
For the sake of "real" HTML5, yes. P3 though.
Priority: -- → P3
That'll somewhat magically be fixed as part of bug 598029.
Assignee: nobody → fwenzel
Target Milestone: --- → 2.0
This is included here: http://github.com/fwenzel/reporter/commit/0aa0181

The title attribute now contains a localized, full date and time. The datetime attribute, however, contains an ISO timestamp, like the HTML 5 standard wants us to have.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Component: Input → General
Product: Webtools → Input
You need to log in before you can comment on or make changes to this bug.