kossnocorp / role

jQuery plugin to provide easy way to handle DOM elements by role attribute

Home Page:http://code.nocorp.me/role/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parse @ in attribute values correctly

tonyganch opened this issue · comments

Assuming i have this element in DOM:

<div data-email="panda@nani.com"></div>

when I try to find it with jQuery:

$('[data-email="panda@nani.com"]').length;

I get nothing:

> 0

Thanks for reporting! I'll try to write correct regexp to get round this problem.