zurb / foundation-apps

The first front-end framework created for developing fully responsive web apps.
http://foundation.zurb.com/apps
MIT License
1.58k stars 216 forks source link

Error when zfCloseAll directive attempts to access attributes property on SVG element in Microsoft Edge browser #800

Open cs-NET opened 8 years ago

cs-NET commented 8 years ago

It appears Microsoft Edge SVG element does not contain an attributes property which results in an exception being thrown when calling

return e in tar.attributes 

as part of the zfCloseAll directive. This will happen whenever you click an SVG element and have the zf-close-all directive on a parent element such as body.

Possible workaround is to check for existence of tar.attributes before calling in tar.attributes.