iframed-tests.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>iframe tests</title>
  6. <style>
  7. body {
  8. background: url(body-crash.jpg) no-repeat -999px -999px;
  9. }
  10. article {
  11. border: 2px solid #8C8;
  12. }
  13. </style>
  14. <script>
  15. (function(){
  16. window.querys = {};
  17. var name;
  18. var search= location.search.replace('?', '');
  19. if(search){
  20. search = search.split('&');
  21. for(var i = 0; i < search.length; i++){
  22. name = search[i].split('=');
  23. querys[name[0]] = true;
  24. }
  25. }
  26. })();
  27. </script>
  28. <script>
  29. if(querys.disableMethodsBefore){
  30. if(!window.html5){
  31. window.html5 = {};
  32. }
  33. window.html5.shivMethods = false;
  34. }
  35. if(querys.disableCSS){
  36. if(!window.html5){
  37. window.html5 = {};
  38. }
  39. window.html5.shivCSS = false;
  40. }
  41. if(querys.addUnknownBefore){
  42. if(!window.html5){
  43. window.html5 = {};
  44. }
  45. window.html5.elements = 'abcxyz abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video';
  46. }
  47. if(!querys.noEmbed){
  48. document.write('<script src="..\/..\/src\/html5shiv-printshiv.js"><\/script>');
  49. }
  50. </script>
  51. <script>
  52. if(querys.disableMethodsAfter){
  53. window.html5.shivMethods = false;
  54. }
  55. if(querys.addUnknownAfter){
  56. window.html5.elements = 'abcxyz abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video';
  57. html5.shivDocument(document);
  58. }
  59. </script>
  60. </head>
  61. <body>
  62. <div id="qunit-fixture">
  63. <abcxyz>
  64. <div class="inside"></div>
  65. </abcxyz>
  66. <article>
  67. <div class="inside"></div>
  68. </article>
  69. <aside>
  70. <div class="inside"></div>
  71. </aside>
  72. <figcaption>
  73. <div class="inside"></div>
  74. </figcaption>
  75. <figure>
  76. <div class="inside"></div>
  77. </figure>
  78. <footer>
  79. <div class="inside"></div>
  80. </footer>
  81. <header>
  82. <div class="inside"></div>
  83. </header>
  84. <hgroup>
  85. <div class="inside"></div>
  86. </hgroup>
  87. <nav>
  88. <div class="inside"></div>
  89. </nav>
  90. <section>
  91. <div class="inside"></div>
  92. </section>
  93. </div>
  94. </body>
  95. </html>