make it work when there's a dot in the attribute selector
Merge pull request #30 from ljie-PI/master

make it work when there's a dot in the attribute selector