Embed blog comments: testing concluded that it's just easier to override the body's height attribute for the content within an iframe before calculating it. Setting the body height to auto will allow offsetHeight to retrieve its height, while a body height of 100% inside an iframe of height 0 returns a body height of 0.