openlayers/openlayers — pull request #533 by jorix (2012-06-17 16:04:57+00:00)
Title: Popup.getContentDivPadding: Check if parent is an element (IE issues)

When using IE (tested from IE6 to IE9) creating a div without adding to *document*, `parentNode` can be an object. This causes "Popup.getContentDivPadding" detect a zero padding instead of right padding.

Note: In IE9 fails in all cases except using *tests/manual/popup-autoSize-w3c.html* with not compatibility mode, IE8 fails in all four cases ([quirks&w3c]*[compatibility on&off])

Where it does not work you can see that when a popup has close box this box has no padding right and top.

- - -

Have added two manual tests (quirks/w3c), works on:
* IE 8 & 9 (compatibility on&off)
* IE6 & 7
* FF 1.5 & 12.0
* Chrome 19.0
* Safari 5.1
* Opera 11.64

Note: the popup shown in the manual tests can have an incorrect padding. This is a topic for another patch that I was working when I saw this problem.