A small blog.

Event Delegation in iOS Safari - Event Bubbling Safari Quirk

A recent quirk I found with coding for iOS Safari Mobile using event delegation and bubbling in Javascript:

In some cases you may want to perform some event bubbling so that when triggering an event on a DOM element, that event bubbles up to a parent element where you can capture and decide how to react on that event.  This is useful if you are capturing events on DOM elements NOT yet present in the DOM on page load, but later inserted into the DOM by some JS you are running.

In my instance, I was running a search autocomplete pulling results from an externa ...
Read More ...
Tags:   ios  safari  mobile  event bubbling  body