/**
* Test for Bug 841941
* This test checks that the order in which @min/@max/@step are specified in
* markup makes no difference to the value that <input type=range> will be
* given. Basically this checks that sanitization of the value does not occur
* until after the parser has finished with the element.
*/
SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function() {
test();
SimpleTest.finish();
});
function test() { var ranges = document.querySelectorAll("input[type=range]");
for (var i = 0; i < ranges.length; i++) {
is(ranges.item(i).value, "1.5", "Check sanitization order for range " + i);
}
}
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.