Permalink
Browse files

Merge pull request #679 from rwldrn/fix-ws

Fix whitespace mismatch introduced in bf7a4df
  • Loading branch information...
dmethvin committed Feb 14, 2012
2 parents 8618487 + 8db3fb1 commit a8dd45547cb32a6c5505e139ece70b71cfc97ee8
Showing with 6 additions and 6 deletions.
  1. +1 −1 src/manipulation.js
  2. +5 −5 test/unit/manipulation.js
@@ -24,7 +24,7 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
rhtml = /<|&#?\w+;/,
rnoInnerhtml = /<(?:script|style)/i,
rnocache = /<(?:script|object|embed|option|style)/i,
rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),
// checked="checked" or checked
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
rscriptType = /\/(java|ecma)script/i,
@@ -1219,14 +1219,14 @@ test("clone() on XML nodes", function() {
}

test("clone() on local XML nodes with html5 nodename", function() {
expect(2);
expect(2);

var $xmlDoc = jQuery( jQuery.parseXML( "<root><meter /></root>" ) ),
var $xmlDoc = jQuery( jQuery.parseXML( "<root><meter /></root>" ) ),
$meter = $xmlDoc.find( "meter" ).clone();

equal( $meter[0].nodeName, "meter", "Check if nodeName was not changed due to cloning" );
equal( $meter[0].nodeType, 1, "Check if nodeType is not changed due to cloning" );
} );
equal( $meter[0].nodeName, "meter", "Check if nodeName was not changed due to cloning" );
equal( $meter[0].nodeType, 1, "Check if nodeType is not changed due to cloning" );
});

test("html(undefined)", function() {
expect(1);

0 comments on commit a8dd455

Please sign in to comment.