.attr("value") does not work for meter elements
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.
Change History (7)
Resolution: |
→ duplicate
|
Status: |
new →
closed
|
Component: |
unfiled →
attributes
|
Priority: |
undecided →
low
|
Milestone: |
1.next →
1.6.2
|
Resolution: |
duplicate
|
Status: |
closed →
reopened
|
Resolution: |
→ fixed
|
Status: |
reopened →
closed
|
Nevermind. I tried the git version and the issue seems to be fixed there.