Active selection display was broken

Removed hasAttribute which broke the selection display and added
hasOwnProperty  which was the one meaned to be there.