Modify ↓
Ticket #11691 (closed bug: worksforme)
.prop() doesn't return datetime attribute from <time> element
| Reported by: | lcouto87@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Tested with:
- jQuery 1.6.4 and jQuery 1.7.2
- Google Chrome (Version 20.0.1123.1 dev)
- Safari (Version 5.1.5 (7534.55.3) )
- Mozilla Firefox (12.0)
All tests were performed in MacOSX 10.7.3
Case: Try to retrieve the attribute datetime value from a <time> element, using the jQuery.fn.prop() function
What to expect: The element current attribute's value
What happens: undefined is returned
Change History
comment:1 follow-up: ↓ 2 Changed 13 months ago by rwaldron
- Status changed from new to closed
- Resolution set to worksforme
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

datetime is not a DOM property, it's an attribute - so use attr()
http://jsfiddle.net/rwaldron/85MH9/