Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 2 | <head> |
michael@0 | 3 | |
michael@0 | 4 | <script> |
michael@0 | 5 | |
michael@0 | 6 | var HTML_NS = "http://www.w3.org/1999/xhtml"; |
michael@0 | 7 | |
michael@0 | 8 | function foo() { |
michael@0 | 9 | var table = document.getElementById("table"); |
michael@0 | 10 | var newRow = document.createElementNS(HTML_NS, 'tr'); |
michael@0 | 11 | table.insertBefore(newRow, document.getElementById('lastrow')); |
michael@0 | 12 | } |
michael@0 | 13 | |
michael@0 | 14 | |
michael@0 | 15 | doc = document; |
michael@0 | 16 | |
michael@0 | 17 | </script> |
michael@0 | 18 | |
michael@0 | 19 | </head> |
michael@0 | 20 | |
michael@0 | 21 | |
michael@0 | 22 | <body onload="setTimeout(foo, 300);"> |
michael@0 | 23 | |
michael@0 | 24 | |
michael@0 | 25 | <h3>Tables</h3> |
michael@0 | 26 | |
michael@0 | 27 | |
michael@0 | 28 | <table id="table" border="1" style="border-collapse: collapse"> |
michael@0 | 29 | |
michael@0 | 30 | <tr> |
michael@0 | 31 | <col></col> |
michael@0 | 32 | <td rowspan="2">TD</td> |
michael@0 | 33 | </tr> |
michael@0 | 34 | |
michael@0 | 35 | <tr id="lastrow"> |
michael@0 | 36 | <td width="50%">TD</td> |
michael@0 | 37 | </tr> |
michael@0 | 38 | |
michael@0 | 39 | </table> |
michael@0 | 40 | |
michael@0 | 41 | |
michael@0 | 42 | </body> |
michael@0 | 43 | </html> |