Update 'should' devDependency.
Fix node 0.11 incompatibility in w3c test harness.

The rewritten `vm` package in node 0.11 doesn't create a new unique
context for every call to vm.createContext(foo) any more; instead it
just "contextifies" foo. This caused confusion as every test suite was
sharing the same context.

Do a shallow clone into the context to fix the issue.
Update mocha/should dependencies.

Tested that latest releases of `mocha` and `should` do not cause any
problems with domino's test suite.
Merge pull request #40 from cscott/update-deps

Update mocha/should dependencies; fix node 0.11 incompatibility.
Add height/width attributes to HTMLImageElement.
Element.classList.length should be 0 if there's no 'class' attribute.
Update mocha dependency to 1.16.x.
Release domino 1.0.14.
Bump version in package.json.
Add Element.matches() method.

See https://developer.mozilla.org/en-US/docs/Web/API/Element.matches
Update mocha dependency to 1.17.x.
Fix CSS [lang], [dir], etc selectors.

Be more careful when testing for the presence of an attribute which is
also a 'magic' property of HTMLElement; use Element.getAttribute() to
avoid being confused by the default value.  For other attributes, make
use we use Element.hasAttribute() when possible to avoid getting
confused by methods and other properties on the element.
Fix Element.matches() when selector contains a comma.

We need to loop through all the comma-separated selectors to see if any
of them match.
Clean up travis configuration.

Node version 0.4, 0.7, and 0.9 are no longer provided by travis.

Node version 0.6 is no longer supported; see
https://github.com/npm/npm/issues/4391

Use 'mocha -R spec' when running under travis, to provide better
logs of what was tested.
Release domino 1.0.15.
Bump version in package.json.
Performance tweak: Add fast path to escapeAttr

At least in node 0.10 a test is cheaper than constructing a new string with
replace. Since the common case for attributes is that there's nothing to
escape, it makes sense to add a fast path that leaves the string untouched.