Opened 12 years ago
Closed 12 years ago
#9839 closed Bug (wontfix)
DIV with id="content"
Reported by: | Sergey | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.0 Beta |
Keywords: | IE | Cc: |
Description
If a page contains a div element with id="content", the CkEditor picks up the contents of the element and puts it into the editor area.It works in IE7 only.
Attachments (3)
Change History (8)
Changed 12 years ago by
Changed 12 years ago by
Attachment: | Capture.PNG added |
---|
Changed 12 years ago by
Attachment: | _content.html added |
---|
comment:1 Changed 12 years ago by
Keywords: | IE added |
---|---|
Status: | new → confirmed |
Version: | 4.0 → 4.0 Beta |
Problem has been reproducible from CKEditor 4 beta in IE7 only.
Currently (current master) I'm able to reproduce this problem in every IE (IE7-10).
Just copy the attached _content.html into samples folder and open it in IE.
comment:2 Changed 12 years ago by
Milestone: | → CKEditor 4.0.2 |
---|
comment:4 Changed 12 years ago by
The root of the problem is that, in IE7 and earlier, getElementById is case-insensitive, so having two elements with the same id breaks things.
comment:5 Changed 12 years ago by
Milestone: | CKEditor 4.0.2 |
---|---|
Resolution: | → wontfix |
Status: | confirmed → closed |
Considering the above, there is not clear way to have it fixed at CKEditor side. The only solution would be avoiding using getElementById and loop through all elements until a case-sensitive match on id is not found. This is of course impracticable.
The proper way to have it fixed is in fact avoiding duplicating case-insensitive ids in the page.
A screebshot of the test page