<fieldset>
<input type="radio" name="testthree" id="start3"></input>
<input type="radio" name="errorthree" id="testthree"></input>
</fieldset>
</form>
<script class="testbody" type="text/javascript">
/** Test for Bug 343444 **/
SimpleTest.waitForExplicitFinish();
startTest();
function startTest() {
document.getElementById("start").focus(); var count=0;
while (count < 2) {
sendKey("DOWN");
is(document.activeElement.type, "radio", "radioGroup should ignore non-radio input fields");
if (document.activeElement.id == "start") {
count++;
}
}
document.getElementById("start2").focus();
count = 0;
while (count < 3) {
is(document.activeElement.name, "testtwo", "radioGroup should only contain elements with the same @name")
sendKey("DOWN");
count++;
}
document.getElementById("start3").focus();
sendKey("DOWN");
is(document.activeElement.name, "testthree", "we don't have an infinite-loop");
SimpleTest.finish();
}
</script>
</pre>
</body>
</html>
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.