diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-09-18 09:41:07 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-11-07 11:37:52 -0500 |
commit | 126d596b56924613687329b7aab4f0cdf4b593b3 (patch) | |
tree | dc919662b389ba3e1acca9b46fde33a9e4b0ce2d /src/data.js | |
parent | d0b8f9fa932be3d95728a881ec63c7231887de0a (diff) | |
download | jquery-126d596b56924613687329b7aab4f0cdf4b593b3.tar.gz jquery-126d596b56924613687329b7aab4f0cdf4b593b3.zip |
Fix #14074: element id="nodeName". Close gh-1389.
Diffstat (limited to 'src/data.js')
-rw-r--r-- | src/data.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/data.js b/src/data.js index 8b4b0efca..256bed7cd 100644 --- a/src/data.js +++ b/src/data.js @@ -238,13 +238,13 @@ function internalRemoveData( elem, name, pvt ) { jQuery.extend({ cache: {}, - // The following elements throw uncatchable exceptions if you - // attempt to add expando properties to them. + // The following elements (space-suffixed to avoid Object.prototype collisions) + // throw uncatchable exceptions if you attempt to set expando properties noData: { - "applet": true, - "embed": true, - // Ban all objects except for Flash (which handle expandos) - "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" + "applet ": true, + "embed ": true, + // ...but Flash objects (which have this classid) *can* handle expandos + "object ": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" }, hasData: function( elem ) { |