diff options
author | timmywil <timmywillisn@gmail.com> | 2011-11-08 00:05:33 -0500 |
---|---|---|
committer | timmywil <timmywillisn@gmail.com> | 2011-11-08 00:05:33 -0500 |
commit | 41b31d7386cf00e714d703db773ffa73b6bd8b24 (patch) | |
tree | 8a350912c39800ea7d4f2ca63a28bf542ccab8fa /src/support.js | |
parent | f8eba6ee2530e540cb30512bb724ac6bfe6c8142 (diff) | |
parent | 92c840401271ba42543845a836f17c63aa28ef34 (diff) | |
download | jquery-41b31d7386cf00e714d703db773ffa73b6bd8b24.tar.gz jquery-41b31d7386cf00e714d703db773ffa73b6bd8b24.zip |
Remove test of the invalid object for IE9's sake; Rewrite the appropriate support test for html5 clone caching. Fixes #10682
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/support.js b/src/support.js index 7f49516f8..df8e41f91 100644 --- a/src/support.js +++ b/src/support.js @@ -24,7 +24,7 @@ jQuery.support = (function() { // Preliminary tests div.setAttribute("className", "t"); - div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>"; + div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; all = div.getElementsByTagName( "*" ); @@ -69,9 +69,6 @@ jQuery.support = (function() { // (IE uses styleFloat instead of cssFloat) cssFloat: !!a.style.cssFloat, - // Make sure unknown elements (like HTML5 elems) are handled appropriately - unknownElems: !!div.getElementsByTagName( "nav" ).length, - // Make sure that if no value is specified for a checkbox // that it defaults to "on". // (WebKit defaults to "" instead) @@ -87,6 +84,10 @@ jQuery.support = (function() { // Tests for enctype support on a form(#6743) enctype: !!document.createElement("form").enctype, + // Makes sure cloning an html5 element does not cause problems + // Where outerHTML is undefined, this still works + html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>", + // Will be defined later submitBubbles: true, changeBubbles: true, |