Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/ DTD/xhtml11.dtd"> | |
|
Julien - ping for review
2013/07/24 23:47:39
Let's use HTML5 doctype: <!DOCTYPE html>
| |
| 2 <html> | |
| 3 <style> | |
| 4 .inlineBlock { display: inline-block; } | |
| 5 .runin { display: run-in; } | |
| 6 </style> | |
| 7 <script> | |
| 8 if (window.testRunner) | |
| 9 testRunner.dumpAsText(); | |
| 10 function boom() { | |
| 11 figure = document.createElement('figure'); | |
| 12 figure.setAttribute('class', 'runin'); | |
| 13 document.documentElement.appendChild(figure); | |
| 14 fieldSet = document.createElement('fieldset'); | |
| 15 document.documentElement.appendChild(fieldSet); | |
| 16 document.body.offsetTop; | |
| 17 fieldSet.setAttribute('class', 'inlineBlock'); | |
| 18 } | |
| 19 window.onload = boom; | |
| 20 </script> | |
| 21 <body> | |
| 22 <div> | |
| 23 This test has PASSED if it did not crash. | |
| 24 </div> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |