mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-13 09:03:10 +00:00
add test to guarantee that getEncodedText does not return html
This commit is contained in:
parent
d816fe1ec1
commit
9acbcb3b15
2 changed files with 2 additions and 0 deletions
|
|
@ -121,5 +121,6 @@
|
|||
test( "$.fn.getEncodedText should return the encoded value where $.fn.text doesn't", function() {
|
||||
same( $("#encoded").text(), "foo>");
|
||||
same( $("#encoded").getEncodedText(), "foo>");
|
||||
same( $("#unencoded").getEncodedText(), "foo");
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
@ -32,6 +32,7 @@
|
|||
<div id="parent"></div>
|
||||
<div id="dependent"></div>
|
||||
<div id="encoded">foo></div>
|
||||
<div id="unencoded"><script>foo</script></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Reference in a new issue