Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../../../resources/js-test.js"></script> | |
| 5 </head> | |
| 6 <body> | |
| 7 <script> | |
| 8 description("This tests that 'insertText' and friends match IE's behavio r on certain element types."); | |
| 9 | |
| 10 // List taken from HTMLElement::isForbidsInsertHTML. There's no spec for this, obviously. | |
| 11 var types = ['area', 'base', 'basefont', 'br', 'col', 'embed', 'frame', 'hr', 'image', 'img', 'input', 'link', 'meta', 'param', 'source', 'wbr']; | |
| 12 | |
| 13 types.forEach(function(type) { | |
| 14 shouldThrow("document.createElement('" + type + "').innerText = 'Thr ow!';"); | |
| 15 shouldThrow("document.createElement('" + type + "').outerText = 'Thr ow!';"); | |
| 16 }); | |
| 17 </script> | |
| 18 </body> | |
| 19 </html> | |
| OLD | NEW |