attr() should return undefined or name for booleans