Hallo mixmastertobsi,
Also es ist völlig egal was ich mache.
$("*").data("atr","1"); var el = $( "*[data-atr]"); console.log(el.length); // ERGEBNIS 0 var el = $( "*"); console.log(el.length); // ERGEBNIS 5
also wird daraus eben nicht <p data-atr="1">...</p>
wie du es erwartest. Schau doch mal, welches HTML generiert wird,
Bis demnächst
Matthias