test_bug595447.html 834 B

123456789101112131415161718192021222324252627282930
  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 type="application/javascript" 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. /** Test for Bug 595447 **/
  17. var fieldset = document.createElement("fieldset");
  18. ok("type" in fieldset, "fieldset element should have a type IDL attribute");
  19. is(fieldset.type, "fieldset", "fieldset.type should return 'fieldset'");
  20. fieldset.type = "foo";
  21. is(fieldset.type, "fieldset", "fieldset.type is readonly");
  22. </script>
  23. </pre>
  24. </body>
  25. </html>