var el = document.createElement("div");
el.setAttribute("class", "foobar1");
is(el.className, "foobar1", "Wrong className!");
el.className += " foobar2 ";
is(el.className, "foobar1 foobar2 ", "Appending to className didn't work!");
el.className += "foobar3";
is(el.className, "foobar1 foobar2 foobar3", "Appending to className didn't work!");
var el = document.createElement("div");
el.setAttribute("class", " foobar1 ");
is(el.className, " foobar1 ", "Wrong className!");
el.className += "foobar2";
is(el.className, " foobar1 foobar2", "Appending to className didn't work!");
el.setAttribute("class", " ");
is(el.getAttribute("class"), " ", "class attribute didn't store the right value!");
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.16Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.