height() returns incorrect value of inline elements in Safari

height() returns incorrect value of inline elements in Safari

I just discovered a problem in Safari 4.0.5 (Windows 7 x64) using $("#myID").height() to get the height of an inline-styled element (a div in this case) which contains other elements (several paragraphs in this case).

A quick research has not revealed any posts about it therefore I’m posting it here. All major browsers return the right he height, except Safari. This problem doesn't occur if the div contains no (block-level?) elements or if the div isn't styled as an inline-element.

From my point of view it's a bug, although it's not valid to put block-level elements inside an inline element, but the div was just set by CSS as an inline element.