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