Closed ranma42 closed 3 years ago
Currently the setDiv method always fails if it is performed on an element which belongs to the document body, because of an inverted check.
setDiv
The check can be trivially fixed. Should we also handle explicitly the case in which there is no offsetParent (as in the Map constructor?)
offsetParent
Map
Oops. Thank you.
Currently the
setDiv
method always fails if it is performed on an element which belongs to the document body, because of an inverted check.The check can be trivially fixed. Should we also handle explicitly the case in which there is no
offsetParent
(as in theMap
constructor?)