Bug Tracker

Opened 11 years ago

Closed 11 years ago

#13538 closed bug (notabug)

height() method returns different values in Chrome and Firefox

Reported by: meriial Owned by: meriial
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

Instead of a jsfiddle, I'm including a link to the api docs, which exhibit the bug

If I go to

http://api.jquery.com/height/#example-0

and click 'Get Paragraph Height', I get 36px in Chrome v25 and 34px in Firefox v19.

Change History (3)

comment:1 Changed 11 years ago by dmethvin

Owner: set to meriial
Status: newpending

Why is that a bug?

comment:2 Changed 11 years ago by meriial

Status: pendingnew

Why would I get a different value from the same function on the same page in different browsers?

comment:3 Changed 11 years ago by dmethvin

Resolution: notabug
Status: newclosed

They have different default stylesheets? I don't see anything in the example that specifies all the paragraph properties in a way that ensures you get the same height. Seems fine to me. Ask around on StackOverflow and see what the hive mind thinks of that assertion.

Note: See TracTickets for help on using tickets.