| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <svg height="300"> | |
| 3 <text y="10"> | |
| 4 <tspan></tspan> | |
| 5 <textPath></textPath> | |
| 6 <altGlyph>Bar</altGlyph> | |
| 7 </text> | |
| 8 </svg> | |
| 9 <script> | |
| 10 if (window.testRunner) { | |
| 11 testRunner.dumpAsText(); | |
| 12 testRunner.waitUntilDone(); | |
| 13 } | |
| 14 function insertBR(parent) { | |
| 15 parent.appendChild(document.createTextNode('foo')); | |
| 16 parent.appendChild(document.createElement('br')); | |
| 17 parent.appendChild(document.createTextNode('bar')); | |
| 18 } | |
| 19 window.onload = function() { | |
| 20 var t = document.querySelector('text'); | |
| 21 for (var child = t.firstChild; child; child = child.nextSibling) { | |
| 22 if (child instanceof Text) | |
| 23 continue; | |
| 24 insertBR(child); | |
| 25 } | |
| 26 insertBR(t); | |
| 27 setTimeout(function() { | |
| 28 if (window.testRunner) | |
| 29 testRunner.notifyDone(); | |
| 30 }, 0); | |
| 31 }; | |
| 32 </script> | |
| OLD | NEW |