Closed Bug 679459 Opened 9 years ago Closed 9 years ago
End Offset is beyond the end of this node" in ns Range::Content Inserted
###!!! ASSERTION: mEndOffset is beyond the end of this node: 'static_cast<PRUint32>(mEndOffset) <= aInfo->mChangeEnd', file content/base/src/nsRange.cpp, line 305
I added this assertion in bug 191864. I'll investigate...
Assignee: nobody → matspal
OS: Mac OS X → All
Hardware: x86_64 → All
The problem is that nsRange::CutContents uses SplitData internally in a different way than splitText, in some case it removes the new node: http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsRange.cpp#1395 Calling SetTextInternal with NULL in that case makes us use the old path in nsRange::CharacterDataChanged that doesn't try to change the boundary point.
Attachment #558235 - Flags: review?(Olli.Pettay)
Attachment #558235 - Flags: review?(Olli.Pettay) → review+
Target Milestone: --- → mozilla9
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.