aboutsummaryrefslogtreecommitdiffstats
path: root/src/data
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-09-18 09:41:07 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-11-07 11:57:41 -0500
commitc66a5e70f2745048b30b7e7e8801d70ce9c640c7 (patch)
tree885c0fc898223b5e8c1c4753af85e1657b3818bf /src/data
parentff365d305fc22f40f4df9c4a6c7b1ca6c3c9800d (diff)
downloadjquery-c66a5e70f2745048b30b7e7e8801d70ce9c640c7.tar.gz
jquery-c66a5e70f2745048b30b7e7e8801d70ce9c640c7.zip
Fix #14074: element id="nodeName". Close gh-1389.
(cherry picked from commit 126d596b56924613687329b7aab4f0cdf4b593b3) Conflicts: src/data.js src/data/accepts.js test/unit/core.js test/unit/data.js
Diffstat (limited to 'src/data')
-rw-r--r--src/data/accepts.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/accepts.js b/src/data/accepts.js
index f3abe06af..291c7b475 100644
--- a/src/data/accepts.js
+++ b/src/data/accepts.js
@@ -12,8 +12,8 @@ jQuery.acceptData = function( owner ) {
// - Node.DOCUMENT_NODE
// - Object
// - Any
- return owner.nodeType ?
- owner.nodeType === 1 || owner.nodeType === 9 : true;
+ /* jshint -W018 */
+ return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
};
return jQuery.acceptData;