okfn/annotator — Issue #96: bug in range.js:normalize when selection ends on <br/>
Author: savinos
Created: 2012-02-20 23:42:52+00:00
State: open

I am not able to annotate when I select text that ends on an end line: I have an error logged in the js console and the annotator popup won't show up.

I tracked down the issue to the method in the title, on these lines:

while (node.nodeType !== 3) { //this raises an exception as node is null
node = node.firstChild;
}

This is happening on chrome and firefox too.