Merge pull request #18 from sirLisko/master

fixed compatibility with safari when white-space nowrap is specified
Fixed issue infinite loop

Infinite loop if startposition and endposition were both 0 fixed.
Create README.md
Bugfix lack of whitespace

Should fix issue 24 where the text was incorrectly truncated if no
whitespace is used in the HTML
Correctly skip empty document-text chunks

This patch makes filter out stuff having `nodeType` 3 and `data` equal to " ". It's especially important when it comes to `after` element – empty text chunks appear to capture the `after` container making it show up after the last tag and not inside of it.
Merge pull request #25 from inossidabile/patch-1

Correctly skip empty document-text chunks
bugfix version
merged with 1.6.3