Tengo algo de HTML.Etiqueta de ancla HTML con etiqueta en cursiva
<a href="#">
<i class="some-bg" />
Some Text
</a>
Y algunos Javascript.
$("a").bind("touchstart", function (e) {
e.preventDefault();
console.log("Tag: " + e.target);
console.log("Tag Name: " + e.target.tagName);
});
La respuesta es.
Tag: [object HTMLElement]
Tag Name: I
¿Por qué? ¿No debería ser ancla?
ACTUALIZADO
$("a, a *").bind(function() {
e.stopPropagation();
// other stuff
});
Será este el truco?
¿Por qué no probar ''? – jrummell
Recuerda que 'i',' b' y 'u' no significan mucho sobre tu semántica. [Hay mejores formas] (http://www.impressivewebs.com/bold-italic-html5/) ... –