readium/readium-shared-js — pull request #1 by marcuswu (2013-08-19 18:56:05+00:00)
Title: Fixing indexing and text offset problems in injectCFIMarkerIntoText.

This change fixes a couple of situations where injectCFIMarkerIntoText would index into the text node list or calculate offsets into text incorrectly. It also makes the method more CFI spec compliant by allowing for injection after the last character of a text node.