| 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('An excerpt from an early Acid3 test 65: construct a table, and see
if the table is as expected'); | 8 description('An excerpt from an early Acid3 test 65: construct a table, and see
if the table is as expected'); |
| 9 | 9 |
| 10 var table = document.createElement('table'); | 10 var table = document.createElement('table'); |
| 11 table.appendChild(document.createElement('tbody')); | 11 table.appendChild(document.createElement('tbody')); |
| 12 var tr1 = document.createElement('tr'); | 12 var tr1 = document.createElement('tr'); |
| 13 table.appendChild(tr1); | 13 table.appendChild(tr1); |
| 14 table.appendChild(document.createElement('caption')); | 14 table.appendChild(document.createElement('caption')); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 37 // or: <table><caption/><thead/><tfoot/><tbody><tr/></tbody> | 37 // or: <table><caption/><thead/><tfoot/><tbody><tr/></tbody> |
| 38 table.tHead.appendChild(tr1); | 38 table.tHead.appendChild(tr1); |
| 39 // either: <table><caption/><thead><tr/></thead><tbody><tr/></tbody><tfoot/> | 39 // either: <table><caption/><thead><tr/></thead><tbody><tr/></tbody><tfoot/> |
| 40 // or: <table><caption/><thead><tr/></thead><tfoot/><tbody><tr/></tbody> | 40 // or: <table><caption/><thead><tr/></thead><tfoot/><tbody><tr/></tbody> |
| 41 shouldBe("table.rows[0]", "table.tHead.firstChild"); | 41 shouldBe("table.rows[0]", "table.tHead.firstChild"); |
| 42 shouldBe("table.rows.length", "2"); | 42 shouldBe("table.rows.length", "2"); |
| 43 shouldBe("table.rows[1]", "table.tBodies[0].firstChild"); | 43 shouldBe("table.rows[1]", "table.tBodies[0].firstChild"); |
| 44 </script> | 44 </script> |
| 45 </body> | 45 </body> |
| 46 </html> | 46 </html> |
| OLD | NEW |