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", "<!-- </textarea> --> This should be part of the textarea");