Here is an example.
alert(document.querySelectorAll('span').hasOwnProperty('length'));
Here is an example.
alert(document.querySelectorAll('span').hasOwnProperty('length'));
Probably because hasOwnProperty does not work the same cross-browser, especially since the change in April 2015 (for Chrome here...):
Check and/or update your Safari, but it still might not work since obviously they are making changes.
Perhaps you can use a different approach which works the same cross-browser such as
if ('prop' in obj)
if ('undefined' !== typeof obj['prop'])
There's slight difference in performance which shouldn't be an issue for you I think. See also this page for a reference.
See this question/answer also.