aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-12-06 17:26:39 -0800
committerJohn Resig <jeresig@gmail.com>2009-12-06 17:26:39 -0800
commit209278915592fc63bd62039e246046d446d329e0 (patch)
tree6cce0f9614f3703f53c9f603151224988afca92b /test
parentfbc73d45b487dd863886c7fd3f0af1fd4dec261b (diff)
downloadjquery-209278915592fc63bd62039e246046d446d329e0.tar.gz
jquery-209278915592fc63bd62039e246046d446d329e0.zip
Added in support for injecting area elements into map elements. Fixes #4484.
Diffstat (limited to 'test')
-rw-r--r--test/unit/manipulation.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index 75a1baa1f..44fafa92b 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -659,7 +659,7 @@ test("val(Function)", function() {
})
var testHtml = function(valueObj) {
- expect(20);
+ expect(22);
jQuery.scriptorder = 0;
@@ -693,6 +693,10 @@ var testHtml = function(valueObj) {
equals( $div2.html("x" + insert).html(), "x" + insert, "Verify escaped insertion." );
equals( $div2.html(" " + insert).html(), " " + insert, "Verify escaped insertion." );
+ var map = jQuery("<map/>").html(valueObj("<area id='map01' shape='rect' coords='50,50,150,150' href='http://www.jquery.com/' alt='jQuery'>"));
+
+ equals( map[0].childNodes.length, 1, "The area was inserted." );
+ equals( map[0].firstChild.nodeName.toLowerCase(), "area", "The area was inserted." );
reset();