From: Anton M Date: Tue, 9 Nov 2010 23:36:53 +0000 (+0100) Subject: Partially revert commit a64dc0405064d68c7b7cd0f0fc8ea60086cbcd21. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=49f088f2db21816f4b453ab4a22442ac031ab9bd;hp=49f088f2db21816f4b453ab4a22442ac031ab9bd;p=jquery.git Partially revert commit a64dc0405064d68c7b7cd0f0fc8ea60086cbcd21. Removing the conditional was too liberal as now attr() would even work on plain javascript objects. Keeping a check to make sure it is at least a DOM Node is appropriate. Using nodeName as in the commit which introduced the nodeType === 1 check seems plausible. ---