Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / script-tests / comment-in-textarea.js
blob34f63df00b77fdf4a513ce98dba0c0dd50d94342
1 description("Test that the HTML parser correctly parses the comment-like string in the textarea.");
3 var element = document.createElement("div");
4 element.innerHTML = "<textarea><!-- </textarea> --> This should be part of the textarea</textarea>";
5 document.body.appendChild(element);
7 var textAreas = document.getElementsByTagName("textarea");
8 shouldBe("textAreas.length", "1");
9 shouldBeEqualToString("textAreas[0].innerHTML", "&lt;!-- &lt;/textarea&gt; --&gt; This should be part of the textarea");