JSCS fixes in editor.js.
Tests: Written support for empty text nodes in bookmark tests and tests itself.
Tests: Written tests for node.getIndex which might return -1 when normalizing.
Added handling empty text nodes in node.getIndex and node.getAddress methods.
Added handling empty text nodes in normalize function for createBookmark2 method.
Tests: Added extra ones for bookmarks.
Docs: Mentioned about -1 result for node.getIndex method.
Codestyle and JSLint.
Improved API docs.
Tests: Cleanup and simplifications.
Code refactoring: Extracted the fast path when normalize==false because it is a most common usage.
Fixed some incorrect tests, removed a duplicate and added a new one.
Handle the empty text nodes case before handling normal cases. This allowed to revert to the previous algorithm.
After simplifying the code it is possible to merge back the fast track code.
Reverted the unnecessary change.
Changed the expected normalization solution, removed unnecessary dots and added more tests.
Handled the empty text node cases with a more straightforward algorithm. Covered far more cases.
IE8 is not able to run these tests.
All IEs have a bug that setting innerHTML will not remove empty text nodes.