Opened 16 years ago
Closed 16 years ago
#3516 closed Bug (fixed)
JS error in Find & Replace dialog
Reported by: | Tobiasz Cudnik | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.0 |
Component: | General | Version: | |
Keywords: | Confirmed Review+ IBM | Cc: |
Description
TC
- Use following content:
<p> ^foo<br /> </p> <p> foo<br /> </p>
- Hit find button 2 or more times
- Result:
find.js (line 216) endNode is null [Break on this error] while ( endNode.type != CKEDITOR.NODE_TEXT )
- Stack trace
updateFromDomRange() removeHighlight() find() onClick() listenerFirer() (?)() (?)() listenerFirer() (?)() (?)()
Reproduced using r3500 in FF3, IE8.
Attachments (1)
Change History (9)
comment:1 Changed 16 years ago by
Keywords: | IBM added |
---|
comment:2 Changed 16 years ago by
Keywords: | Pending added |
---|
comment:3 Changed 16 years ago by
It happens all the time in my case but whole thing is very weird. Specially L219: endNode = boundaryNodes.endNode; ...after which endNode becomes null, while boundaryNodes.endNode is not.
I can't reproduce it in Opera and Chrome. Although i can reproduce it on firebug-less FF, so that's not a debugger fault. It also happens in IE8.
Best way to reproduce it is just hitting Find, Find, Find.
Possible workaround would be securing loop conditions and assignments at L220-L222.
Can someone else please try to reproduce it ?
comment:4 Changed 16 years ago by
Sorry for no line break, pasting mentioned line again:
endNode = boundaryNodes.endNode;
comment:5 Changed 16 years ago by
Keywords: | Confirmed added |
---|---|
Owner: | set to Garry Yao |
Status: | new → assigned |
Changed 16 years ago by
Attachment: | 3516.patch added |
---|
comment:7 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
I didn't got the error besides the symptom described in #3450, or is it random?