aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2011-09-19 16:42:36 -0400
committertimmywil <timmywillisn@gmail.com>2011-09-19 16:42:36 -0400
commit9ecdb2472be7661477564e46bce51432d4a5a84e (patch)
tree5059797d940cc0b009b30141b023caa2afcb5523 /src/support.js
parentbba3d610c7e3b611fe1eb89178c91106a156a5dc (diff)
downloadjquery-9ecdb2472be7661477564e46bce51432d4a5a84e.tar.gz
jquery-9ecdb2472be7661477564e46bce51432d4a5a84e.zip
Landing pull request 490. 1.7 HTML5 Support for innerHTML, clone & style. Fixes #6485.
More Details: - https://github.com/jquery/jquery/pull/490 - http://bugs.jquery.com/ticket/6485
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js
index 6608d9125..ad1bd9a57 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'/>";
+ div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";
all = div.getElementsByTagName( "*" );
@@ -69,6 +69,9 @@ 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)