check for undefined el.tagName prevents iPad error
Merge pull request #1989 from MazeMap/ipad-tagname-fix

Ipad tagname fix
Merge pull request #2 from Leaflet/master

Latest Leaflet master branch with ipad-tagname-fix