Skip to main content

Bug Tracker

Side navigation

#4133 closed bug (invalid)

Opened February 12, 2009 09:40AM UTC

Closed May 10, 2009 04:46PM UTC

height() function not accurate in firefox

Reported by: liio Owned by:
Priority: major Milestone: 1.3.2
Component: unfiled Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:
Description

I found this in following code:

<div id="test">

<ul>

<li></li>

<li></li>

<ul>

</div>

$("#test").height();

the retreived height value is only accurate when margin and padding are all zero.

this error only occurs in Firefox.

jquery version:

1.3.1

ff version:

Mozilla/5.0 (Windows; U; Windows NT 5.2; zh-CN; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)

Attachments (0)
Change History (2)

Changed February 13, 2009 02:24AM UTC by dmethvin comment:1

When I look at that HTML in Firefox there are two empty bullets. The height returns 16. What value did you expect? When you say "margin and padding are all zero" which elements do you mean?

Changed May 10, 2009 04:46PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

Please reopen if the problem is still there and explain the expected results.