4 https://bugzilla.mozilla.org/show_bug.cgi?id=742549
8 <title>Test for Bug
742549</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <script type=
"application/javascript" src=
"reflect.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
14 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=742549">Mozilla Bug
742549</a>
16 <div id=
"content" style=
"display: none">
20 <script type=
"application/javascript">
22 /** Test for Bug
742549 **/
23 var els = [ document.createElement(
"script"),
24 document.createElementNS(
"http://www.w3.org/2000/svg",
"script") ]
26 for (var i =
0; i < els.length; ++i) {
27 reflectLimitedEnumerated({
29 attribute: { content:
"crossorigin", idl:
"crossOrigin" },
30 //
"" is a valid value per spec, but gets mapped to the
"anonymous" state,
31 // just like invalid values, so just list it under invalidValues
32 validValues: [
"anonymous",
"use-credentials" ],
34 "",
" aNOnYmous ",
" UsE-CreDEntIALS ",
"foobar",
"FOOBAR",
" fOoBaR "
36 defaultValue: { invalid:
"anonymous", missing: null },