chjj/zest — Issue #6: Selecting `:not(.foo)` fails
Author: fgnass
Created: 2012-02-27 17:08:35+00:00
State: open

... with the following error:

```javascript
TypeError: Property '1' of object function () {
return true;
},,function (el) {
var attr;
switch (key) {
case 'for':
attr = el.htmlFor;
break;
case 'class':
attr = el.className;
break;
case 'href':
attr = el.getAttribute('href', 2);
break;
default:
attr = el[key] != null
? el[key]
: el.getAttribute(key);
break;
}
return attr != null && op(attr + '', val);
} is not a function
at file://localhost/Users/flx/js/zest/test/zest.js:316:21
at file://localhost/Users/flx/js/zest/test/zest.js:294:14
at file://localhost/Users/flx/js/zest/test/zest.js:378:18
at file://localhost/Users/flx/js/zest/test/zest.js:417:9
at file://localhost/Users/flx/js/zest/test/zest.js:493:12
at file://localhost/Users/flx/js/zest/test/test.js:117:31
at file://localhost/Users/flx/js/zest/test/test.js:119:5
at file://localhost/Users/flx/js/zest/test/test.js:146:3
```

The problem is that the selector gets split at the nested dot. Any idea how to fix that elegantly?