aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2013-04-24 22:15:41 +0400
committerOleg <markelog@gmail.com>2013-04-24 22:15:41 +0400
commit3a6194076b8b7ab5a9d9f5e6ec602db2ab427d3e (patch)
tree7efd7a31c9e81690b51b5f5ebffa1bea0e07d7dc /test
parent78c803f1b5198e77f77231516db3912aa9a87055 (diff)
downloadjquery-3a6194076b8b7ab5a9d9f5e6ec602db2ab427d3e.tar.gz
jquery-3a6194076b8b7ab5a9d9f5e6ec602db2ab427d3e.zip
Fix #13818: Add wrapMap entry for col element
Diffstat (limited to 'test')
-rw-r--r--test/unit/manipulation.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index c487efacb..38d38a2b6 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -2105,3 +2105,17 @@ test( "Make sure specific elements with content created correctly (#13232)", 20,
ok( jQuery.nodeName( this, results[ i ] ) );
});
});
+
+test( "Validate creation of multiple quantities of certain elements (#13818)", 44, function() {
+ var tags = [ "thead", "tbody", "tfoot", "colgroup", "col", "caption", "tr", "th", "td", "optgroup", "option" ];
+
+ jQuery.each( tags, function( index, tag ) {
+ jQuery( "<" + tag + "/><" + tag + "/>" ).each(function() {
+ ok( jQuery.nodeName( this, tag ), tag + " empty elements created correctly" );
+ });
+
+ jQuery( "<" + this + "></" + tag + "><" + tag + "></" + tag + ">" ).each(function() {
+ ok( jQuery.nodeName( this, tag ), tag + " elements with closing tag created correctly" );
+ });
+ });
+});