| OLD | NEW |
| 1 <!doctype HTML> | 1 <!doctype HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test of HTML5 nav element</title> | 4 <title>Test of HTML5 nav element</title> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 if (window.testRunner) | 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 </script> | 9 </script> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 <h4>DOM for the above (so this test can dump as text)</h4> | 43 <h4>DOM for the above (so this test can dump as text)</h4> |
| 44 <pre id=markupArea> | 44 <pre id=markupArea> |
| 45 </pre> | 45 </pre> |
| 46 | 46 |
| 47 | 47 |
| 48 <script> | 48 <script> |
| 49 var ed = document.getElementById("editable"); | 49 var ed = document.getElementById("editable"); |
| 50 var selection = window.getSelection(); | 50 var selection = window.getSelection(); |
| 51 selection.selectAllChildren(ed); | 51 selection.selectAllChildren(ed); |
| 52 document.execCommand("FormatBlock", false, "nav"); | 52 document.execCommand("FormatBlock", false, "nav"); |
| 53 selection.collapse(); | 53 selection.removeAllRanges(); |
| 54 ed.blur(); | 54 ed.blur(); |
| 55 | 55 |
| 56 var tests = document.getElementById("testArea"); | 56 var tests = document.getElementById("testArea"); |
| 57 var markup = document.getElementById("markupArea"); | 57 var markup = document.getElementById("markupArea"); |
| 58 var textNode = document.createTextNode(testArea.innerHTML); | 58 var textNode = document.createTextNode(testArea.innerHTML); |
| 59 markup.appendChild(textNode); | 59 markup.appendChild(textNode); |
| 60 | 60 |
| 61 </script> | 61 </script> |
| 62 | 62 |
| 63 </body> | 63 </body> |
| 64 </html> | 64 </html> |
| OLD | NEW |