diff options
author | Oleg <markelog@gmail.com> | 2012-12-20 03:56:33 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2012-12-24 03:04:18 +0400 |
commit | 0d16158f699b715d137094aa427378381e827aec (patch) | |
tree | 6937a4b8942c700d94965d6f8269b5be343da85e /src | |
parent | 3eb1f64966a869b84e40606932e049063376c3a0 (diff) | |
download | jquery-0d16158f699b715d137094aa427378381e827aec.tar.gz jquery-0d16158f699b715d137094aa427378381e827aec.zip |
Revert changes in support module
Diffstat (limited to 'src')
-rw-r--r-- | src/support.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js index f55cc6ae8..c99bb3922 100644 --- a/src/support.js +++ b/src/support.js @@ -5,7 +5,7 @@ jQuery.support = (function() { // Setup div.setAttribute( "className", "t" ); - div.innerHTML = "<a href='/a'>a</a><input type='checkbox'/>"; + div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; // Support tests won't run in some limited or non-browser environments all = div.getElementsByTagName("*"); @@ -24,10 +24,17 @@ jQuery.support = (function() { // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7) getSetAttribute: div.className !== "t", + // IE strips leading whitespace when .innerHTML is used + leadingWhitespace: div.firstChild.nodeType === 3, + // Make sure that tbody elements aren't automatically inserted // IE will insert them into empty tables tbody: !div.getElementsByTagName("tbody").length, + // Make sure that link elements get serialized correctly by innerHTML + // This requires a wrapper element in IE + htmlSerialize: !!div.getElementsByTagName("link").length, + // Get the style information from getAttribute // (IE uses .cssText instead) style: /top/.test( a.getAttribute("style") ), @@ -55,6 +62,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>", + // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode boxModel: document.compatMode === "CSS1Compat", |