add `attr` event to docs