diff options
author | Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com> | 2012-02-10 16:17:12 -0500 |
---|---|---|
committer | Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com> | 2012-02-10 16:17:12 -0500 |
commit | 8db3fb13a536f69b8eb6c39962fac5af534376cc (patch) | |
tree | 1a4ef8abfed8aaa5ad938b3b0a78d6973b37fa49 | |
parent | 8618487c536f7128222e3d0fefca933cc3e94298 (diff) | |
download | jquery-8db3fb13a536f69b8eb6c39962fac5af534376cc.tar.gz jquery-8db3fb13a536f69b8eb6c39962fac5af534376cc.zip |
Fix whitespace mismatch introduced in bf7a4df22a
-rw-r--r-- | src/manipulation.js | 2 | ||||
-rw-r--r-- | test/unit/manipulation.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index b295f4b7e..602076a1b 100644 --- a/src/manipulation.js +++ b/src/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, diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 48618258f..49402b8a3 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -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); |