LearnBoost/expect.js — pull request #19 by tmont (2012-05-01 02:36:48+00:00)
Title: Fix for Chrome bug trying to access `selectionStart` on certain `<input>` elements

Chrome would explode with the following error while trying to inspect hidden and file inputs:

```
TypeError: Accessing selectionStart on an input element that cannot have a selection.
at http://localhost:3030/expect.js:639:34
at Array.map (native)
at map (http://localhost:3030/expect.js:744:34)
at format (http://localhost:3030/expect.js:615:20)
at i (http://localhost:3030/expect.js:702:12)
at Assertion.property (http://localhost:3030/expect.js:365:25)
at Context. (http://localhost:3030/test/expect.js:533:27)
at Test.run (http://localhost:3030/support/mocha.js:3001:32)
at Runner.runTest (http://localhost:3030/support/mocha.js:3305:10)
at http://localhost:3030/support/mocha.js:3349:12
```

The `selectionEnd` and `selectionDirection` properties had the same effect.