--- a/implementation.js Thu Sep 22 14:39:11 2011 -0600
+++ b/implementation.js Thu Sep 22 14:57:21 2011 -0600
@@ -7631,7 +7631,10 @@
canonicalizeWhitespace(getActiveRange().endContainer, getActiveRange().endOffset, false);
// "Call collapseToEnd() on the context object's Selection."
- getSelection().collapseToEnd();
+ //
+ // Work around WebKit bug: sometimes it blows up the selection and
+ // throws, which we don't want.
+ try { getSelection().collapseToEnd(); } catch(e) {}
getActiveRange().collapse(false);
}
};