Modify ↓
Ticket #4133 (closed bug: invalid)
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: | ||
| Blocking: | Blocked by: |
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)
Change History
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.

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?