#2368 closed Bug (fixed)
IE: Protected source for comments is broken
Reported by: | Frederico Caldeira Knabben | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.6.3 |
Component: | General | Version: | SVN (FCKeditor) - Retired |
Keywords: | Confirmed IE Review+ | Cc: | Scott McNaught |
Description
The fix for #2263 is breaking source protection in IE SVN nightly.
To replicate:
- Click source.
- Add <!-- test --> to the source.
- Press Source again to revert to design mode.
- Press Source again, and you have a "null" cannot be null.
Attachments (2)
Change History (11)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Sorry, Trac didn't like my inline diff... here you have it: http://pastebin.com/f637ed2bf
comment:3 Changed 16 years ago by
Owner: | set to Martin Kou |
---|---|
Status: | new → assigned |
comment:4 Changed 16 years ago by
Ok... apart from the weird IE bug in which you can't put a bare comment inside a node and expect it to appear in the DOM... there's also the issue that FCKeditor puts protected code as plain text into FCKTempBin, and those plain text should never be converted to DOM nodes at all.
Proposing a patch to fix both issues.
Changed 16 years ago by
Attachment: | 2368.patch added |
---|
comment:5 Changed 16 years ago by
Keywords: | Review? added |
---|
comment:6 Changed 16 years ago by
Keywords: | Review- added; Review? removed |
---|
The proposed patch is ok. In my previously proposed patch I got also the chance with this fix to use removeChild
to retrieve the final element so we release the reference to the temporary node. Couldn't it be used here too? (basically node.firstChild.removeChild( node.firstChild.lastChild )
at line 1118)
Changed 16 years ago by
Attachment: | 2368_2.patch added |
---|
comment:7 Changed 16 years ago by
Keywords: | Review? added; Review- removed |
---|
comment:8 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
comment:9 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed with [2258].
Click here for more info about our SVN system.
The following is a proposal fix for the part of the code that is throwing the error:
But then, there are still other things to get fixed to make it work.