Side navigation
#9362 closed bug (fixed)
Opened May 20, 2011 10:07AM UTC
Closed May 20, 2011 02:50PM UTC
Last modified March 08, 2012 06:12PM UTC
.attr("value") does not work for meter elements
Reported by: | aaron.grunthal@mhm-hr.com | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.6.2 |
Component: | attributes | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
After updating to jquery 1.6.1 (from 1.4.something) i noticed my html5-shim for meter elements was broken. It seems that $("meter").attr("value") returns undefined, despite the attribute node being present in the DOM while $("meter").attr("min") works just fine to get the minimum.
I assume this breaks because jquery tries to be "clever" in its handling of input elements. But this is not an input element.
jQ should probably check if the value property is actually present before it tries to redirect the attribute lookup to it.
Attachments (0)
Change History (7)
Changed May 20, 2011 10:14AM UTC by comment:1
Changed May 20, 2011 02:17PM UTC by comment:2
resolution: | → duplicate |
---|---|
status: | new → closed |
Changed May 20, 2011 02:17PM UTC by comment:4
component: | unfiled → attributes |
---|---|
priority: | undecided → low |
Changed May 20, 2011 02:50PM UTC by comment:5
milestone: | 1.next → 1.6.2 |
---|---|
resolution: | duplicate |
status: | closed → reopened |
Different problem than the val issue, but this was fixed in commit 25118e22a204c5396f1265feb5cbfd71f35033e3
Changed May 20, 2011 02:50PM UTC by comment:6
resolution: | → fixed |
---|---|
status: | reopened → closed |
Changed May 20, 2011 02:58PM UTC by comment:7
@timmywil - Thanks for the clarification
Nevermind. I tried the git version and the issue seems to be fixed there.