4 https://bugzilla.mozilla.org/show_bug.cgi?id=598833
7 <title>Test for Bug
598833</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=598833">Mozilla Bug
598833</a>
15 <select id=
"s" multiple required
>
20 <div id=
"content" style=
"display: none">
24 <script type=
"application/javascript">
26 /** Test for Bug
598833 **/
28 is(s.matches(
":invalid"), false,
"Disabled select should not be invalid");
29 is(s.matches(
":valid"), false,
"Disabled select should not be valid");
32 is(s.matches(
":invalid"), true,
33 "Required valueless select not in tree should be invalid");
34 is(s.matches(
":valid"), false,
35 "Required valueless select not in tree should not be valid");
38 is(s.matches(
":invalid"), true,
39 "Required valueless select should be invalid");
40 is(s.matches(
":valid"), false,
41 "Required valueless select should not be valid");