| OLD | NEW |
| (Empty) |
| 1 description('Test behavior of the HTMLTableElement tBodies attribute in cases wh
ere there is unusual nesting.'); | |
| 2 | |
| 3 function checkTBodyNesting(tag) | |
| 4 { | |
| 5 var table = document.createElement("table"); | |
| 6 var container = document.createElement(tag); | |
| 7 var tbody = document.createElement("tbody"); | |
| 8 table.appendChild(container); | |
| 9 container.appendChild(tbody); | |
| 10 return table.tBodies.length; | |
| 11 } | |
| 12 | |
| 13 var tags = [ | |
| 14 "col", | |
| 15 "colgroup", | |
| 16 "div", | |
| 17 "form", | |
| 18 "script", | |
| 19 "table", | |
| 20 "td", | |
| 21 "tfoot", | |
| 22 "th", | |
| 23 "thead", | |
| 24 "tr", | |
| 25 ]; | |
| 26 | |
| 27 for (i = 0; i < tags.length; ++i) | |
| 28 shouldBe('checkTBodyNesting("' + tags[i] + '")', '0'); | |
| 29 | |
| 30 debug(''); | |
| 31 | |
| 32 shouldBe('checkTBodyNesting("tbody")', '1'); | |
| 33 | |
| 34 debug(''); | |
| OLD | NEW |