Код: Выделить всё
<script>
function test_error() {
var inp = document.createElement("INPUT");
inp.type="checkbox";
inp.checked=true;
document.body.appendChild(inp);
}
function test_ok() {
var inp = document.createElement("INPUT");
inp.type="checkbox";
document.body.appendChild(inp);
inp.checked=true;
}
</script>
<body onload="test_error();test_ok();">
</body>
Может быть кто-нибудь сможет мне разумно обьяснить,
какого чёрта эти умники из Майкрософта очищают (не клонируют?) аттрибут "checked" во время добавления элемента к документу?