test_bug595447.html (803B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=595447 5 --> 6 <head> 7 <title>Test for Bug 595447</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=595447">Mozilla Bug 595447</a> 13 <p id="display"></p> 14 <pre id="test"> 15 <script type="application/javascript"> 16 17 /** Test for Bug 595447 */ 18 19 var fieldset = document.createElement("fieldset"); 20 21 ok("type" in fieldset, "fieldset element should have a type IDL attribute"); 22 is(fieldset.type, "fieldset", "fieldset.type should return 'fieldset'"); 23 fieldset.type = "foo"; 24 is(fieldset.type, "fieldset", "fieldset.type is readonly"); 25 26 </script> 27 </pre> 28 </body> 29 </html>