test_mod_attributes_reflection.html 922 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Test for HTMLModElement attributes reflection</title>
  5. <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  6. <script type="application/javascript" src="reflect.js"></script>
  7. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  8. </head>
  9. <body>
  10. <p id="display"></p>
  11. <div id="content" style="display: none">
  12. </div>
  13. <pre id="test">
  14. <script type="application/javascript">
  15. /** Test for HTMLModElement attributes reflection **/
  16. // .cite (URL)
  17. reflectURL({
  18. element: document.createElement("ins"),
  19. attribute: "cite",
  20. })
  21. reflectURL({
  22. element: document.createElement("del"),
  23. attribute: "cite",
  24. })
  25. // .dateTime (String)
  26. reflectString({
  27. element: document.createElement("ins"),
  28. attribute: "dateTime",
  29. })
  30. reflectString({
  31. element: document.createElement("del"),
  32. attribute: "dateTime",
  33. })
  34. </script>
  35. </pre>
  36. </body>
  37. </html>