Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/ie-forbids-insert-html.html

Issue 2707973002: Remove blacklist on .innerHTML and .outerHTML (Closed)
Patch Set: Typo fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698