Working example and correction to _setAttribute logic (fix for [ff08074318]).