Menu

#1037 element offsetHeight with internal element

Latest SVN
closed
None
5
2012-10-21
2010-02-25
chris frost
No

Set display none style on an element, and set the height of its child to something greater than 0, then the offsetHeight should return 0 for the parent element. HtmlUnit returns the height the child is set to and FF3 and IE8 both return 0. Attached html as example.

Discussion

  • chris frost

    chris frost - 2010-02-25

    offsetHeight problem with alert

     
  • Daniel Gredler

    Daniel Gredler - 2010-02-25

    Fixed in SVN, thanks for the tiny test case! You can wait for 2.8 to be released, or you can download the snapshot JAR from http://build.canoo.com/htmlunit/artifacts/ after the next successful build.

     

Log in to post a comment.