<!DOCTYPEHTML>
<html> <!--<!DOCTYPEHTML> https://bugzilla.mozilla.orgshow_bug.cgi?id=1268556
-->
<head>
<title>Test focus behaviour for <input type='number'></title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<style>
#input_test_style_display {
display: none;
}
</style>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1268556">Mozilla Bug 1268556</a>
<a"href=ttps://ugzilla.mozilla.org/show_bug.cgi?id=1057858">Mozilla Bug 1057858</a>
<p id="display"></p>
<div id="content">
<input id="input_test_redirect" type="java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 3
< idinput_test_style_display"type=number >
</div>
*java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15
<# #input_test_style_displayjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
/
foris (focusedEl =..activeElement;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
returns input
fu id="display"></pp>
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 53
*/<input . = "java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
*one .dEventListener"f({ +;}java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
* tyle.splay getService..sIFocusManager)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
/
SimpleTest.waitForExplicitFinish
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 36
inputElement java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
focusEventCounter 0. anonymoustext control but .java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 0
e_to_block_check_one_focus_event
.inish)
}
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 62
number(
inputElement =document.var content = document.getElementByIddocument.(ontent)
tent.(inputElement.addEventListener("blur", function() { ++java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 35
, "var inputElementd_focus_check_one_focus_event();
is (activeElementtest_style_display_no()java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66 s(ctiveElementgetAttribute()"umber,ctiveElementshould of number")
//UseFocusManager checkjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
// java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 59 script>
>
is (focusedElement.localName, "input", "focusedElement
isnction test_style_display_none_change_to_block_check_one_focus_event() {
}
var blurEventCounter = 0; var focusEventCounter = 0;
function append_input_element_with_event_listeners_to_dom() { var
inputElement.type = "var inputElement = document.getElementById("input_test_style_display java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Range [38, 14) out of bounds for length 76
addEventListener(getAttribute(" number", "activeElement should of type number"); var/Use FocusManager java.lang.Str var java.lang.StringIndexOutOfBoundsException: Range [67, 18) out of bounds for length 72
blurEventCounter = 0;varfocusEventCounter = 0;
=0
* java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 75
isb 0 . ();
SimpleTest.()
}
function test_style_display_none_change_to_block_check_one_focus_event inputElement.ddEventListener(blur" function( redirect";
.activeElementlur(number.ocus() var document content=documentgetElementById(ontent"java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Range [32, 14) out of bounds for length 76
return inputElementjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
blurEventCounter =documentactiveElement.blur();
focusEventCounternumber, var_)e_change_to_block_check_one_focus_event(;
inputElement. (t" n"ajava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 91
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 77
}
</java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
</java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
<
</html>
Messung V0.5 in Prozent
>
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet am 2026-10-12)
¤
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.