Skip to content

Conversation

nrenner
Copy link
Contributor

@nrenner nrenner commented Feb 8, 2012

Passing a DOM node as content results in an empty popup on IE (tested with IE 8), see:

http://jsfiddle.net/nrenner/ZdBtG/

This is because innerHTML = '' in IE seems not only to remove child elements, but also to clean their content [1]. As _updateContent is called twice on openPopup, the content is already emptied when the popup is shown.

[1] http://www.quirksmode.org/dom/w3c_html.html#t03

@fnicollet
Copy link
Collaborator

Hi,
Just to confirm that i reproduced this issue on IE (9) and the patch fixes the issue

Fabien

@mourner
Copy link
Member

mourner commented May 5, 2012

Sorry for not reacting for so long, will be merged in a few days!

@ErshKUS
Copy link
Contributor

ErshKUS commented Jun 7, 2012

mourner, this is resolved?
openstreetmap-ru/OpenStreetMap.ru#66

@mourner mourner merged commit c3c9810 into Leaflet:master Jun 18, 2012
@mourner
Copy link
Member

mourner commented Jun 18, 2012

Merged now, thank you for your patience!

@Malvoz Malvoz added the ie Internet Explorer label May 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ie Internet Explorer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants