4 https://bugzilla.mozilla.org/show_bug.cgi?id=395915
7 <title>Test for Bug
395915</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=395915">Mozilla Bug
395915</a>
14 <div id=
"content" style=
"display: none">
18 <script class=
"testbody" type=
"text/javascript">
20 /** Test for Bug
395915 **/
21 is(document.getElementsByClassName(
"a").length,
0,
22 "Class names are case-sensitive");
23 is(document.getElementsByClassName(
"A").length,
1,
24 "Have one node of class A");
25 is(document.getElementsByClassName(
"A")[
0], document.documentElement,
28 is(document.getElementsByClassName(
"a b").length,
0,
29 "Class names are case-sensitive two");
30 is(document.getElementsByClassName(
"A B").length,
0,
31 "Class names are case-sensitive three");
32 is(document.getElementsByClassName(
"a B").length,
0,
33 "Class names are case-sensitive four");
34 is(document.getElementsByClassName(
"A b").length,
1,
35 "Have one node of class 'A b'");
36 is(document.getElementsByClassName(
"A b")[
0], document.documentElement,
37 "Root is class 'A b'");