HTMLElement was indicated as allowable type of content in L.Popup.setCon...

...tent()

In accordance with https://github.com/Leaflet/Leaflet/issues/9