node-js-libs / node.io

MIT License
1.8k stars 140 forks source link

node.io query with attribute selector containing dashes doesn't work #125

Closed ackalker closed 9 years ago

ackalker commented 12 years ago
node.io query "http://www.nu.nl/" "li[data-vr-contentbox] a" href

throws an error: 'No elements matching 'li[data-vr-contentbox] a', but the classic example:

node.io query "http://www.nu.nl/" "input[type=text]"

works, as do other attribute selectors whose attribute names don't have any dashes in them.

The above selectors all work in Chrome developer tools' search box. Is this a limitation of node.io? node-soupselect? bug?