• Anton M's avatar
    Partially revert commit a64dc040. · 49f088f2
    Anton M authored
    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.
    49f088f2
attributes.js 9.92 KB