html snippet wrapped in span instead of div
implemented event capture/bubble phases