Skip to main content

Bug Tracker

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 anonymous comment:1

Nevermind. I tried the git version and the issue seems to be fixed there.

Changed May 20, 2011 02:17PM UTC by rwaldron comment:2

resolution: → duplicate
status: newclosed

Changed May 20, 2011 02:17PM UTC by rwaldron comment:3

Duplicate of #9319.

Changed May 20, 2011 02:17PM UTC by rwaldron comment:4

component: unfiledattributes
priority: undecidedlow

Changed May 20, 2011 02:50PM UTC by timmywil comment:5

milestone: 1.next1.6.2
resolution: duplicate
status: closedreopened

Different problem than the val issue, but this was fixed in commit 25118e22a204c5396f1265feb5cbfd71f35033e3

Changed May 20, 2011 02:50PM UTC by timmywil comment:6

resolution: → fixed
status: reopenedclosed

Changed May 20, 2011 02:58PM UTC by rwaldron comment:7

@timmywil - Thanks for the clarification