Partially revert commit a64dc0405064d68c7b7cd0f0fc8ea60086cbcd21.
authorAnton M <haskell_noob-github@yahoo.de>
Tue, 9 Nov 2010 23:36:53 +0000 (00:36 +0100)
committerAnton M <haskell_noob-github@yahoo.de>
Tue, 9 Nov 2010 23:36:53 +0000 (00:36 +0100)
commit49f088f2db21816f4b453ab4a22442ac031ab9bd
treeedd4d9baacabe971d8b7e7532194a630f02f385d
parenta64dc0405064d68c7b7cd0f0fc8ea60086cbcd21
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.
src/attributes.js