OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Test behavior of the HTMLTableElement tBodies attribute in cases wh
ere there is unusual nesting.'); | 8 description('Test behavior of the HTMLTableElement tBodies attribute in cases wh
ere there is unusual nesting.'); |
9 | 9 |
10 function checkTBodyNesting(tag) | 10 function checkTBodyNesting(tag) |
11 { | 11 { |
12 var table = document.createElement("table"); | 12 var table = document.createElement("table"); |
13 var container = document.createElement(tag); | 13 var container = document.createElement(tag); |
14 var tbody = document.createElement("tbody"); | 14 var tbody = document.createElement("tbody"); |
(...skipping 20 matching lines...) Expand all Loading... |
35 shouldBe('checkTBodyNesting("' + tags[i] + '")', '0'); | 35 shouldBe('checkTBodyNesting("' + tags[i] + '")', '0'); |
36 | 36 |
37 debug(''); | 37 debug(''); |
38 | 38 |
39 shouldBe('checkTBodyNesting("tbody")', '1'); | 39 shouldBe('checkTBodyNesting("tbody")', '1'); |
40 | 40 |
41 debug(''); | 41 debug(''); |
42 </script> | 42 </script> |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |