improve hasMask with getCurrentElementAttribute
Merge remote-tracking branch 'origin/master'