Fixes #3934

Added attr() instead prop().