input id""date >
let fields = SpecialPowers.wrap(input). id"local1" type="datetime-local" tabindex="0">
for (let field of fields) {
is(field.tabIndex, input id="datetime-local3" type- =""
}
}
function testTabindexpre"java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 15
let input1 =document.etElementByIdtype +"1)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
let = .etElementById(ype+")
SimpleTest.finish);
let input4 = document.getElementById(type + "4");
input1.focus();
is(document.let fields = SpecialPowers.wrap(input).openOrClosedShadowRoot.querySelectorAll(
element tabindex0is focusable)
// Time (field.,tabindex,"abIndex in the inner textbox should be correct");
eldCount;
if (type == "datetime-local") {
=7java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
} else if (ype ="ate" {
fieldCount = 4;
} else {
fieldCount input3 = documentgetElementByIdtype "";
};
// Advanceinput4 documentg(type +"";
forinput1.)
synthesizeKey("KEY_Tab");
is( " with tabindex=0is focusable"; "input
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// fieldCount 7
( =){
d,,
t java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 55
f(
is / Advancethrough inner fields.
for (eti =0; i <fieldCount -;
checkInnerTextboxTabindex(input1
java.lang.StringIndexOutOfBoundsException: Range [40, 27) out of bounds for length 40
checkInnerTextboxTabindexinput3,);
// Changing the tabindex attribute dynamically.
input3.setAttributejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
synthesizeKey
isnot(document.activeElement, input3, "element with tabindex changed to -1 should not be tabbable");
isnot(document.activeElement, input4, "disabled element should not be tabbable");
checkInnerTextboxTabindex(input3, -1);
}
function test() {
for (let inputType of ["time", "date", "datetime-local"]) {
testTabindex(inputType);
}
}
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.