Opened 13 years ago
Last modified 12 years ago
#8467 confirmed Bug
<p> belongs with <br> at the end of list cause javascript error - nodeValue.length is null
Reported by: | pgteam | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.5.1 |
Keywords: | IE | Cc: |
Description
Below steps can reproduce the error.
- Paste the following content
<ul> <li> 11111111111</li> <li> 22222222222</li> <li> 3333333333333</li> </ul> <p> <br /> abcdefg</p>
- put the cursor position at the last line, e.g. cursor between d and e
- press left arrow key to walk through several lines from last line to the unordered list.
- javascript error occurs once the cursor position hit the unordered list content.
ps: the pattern unordered list + <p><br> causes this nodeValue.length error.
Change History (4)
comment:1 Changed 13 years ago by
Keywords: | IE added |
---|---|
Status: | new → confirmed |
Version: | 3.6.1 → 3.5.1 |
comment:2 Changed 13 years ago by
may i know the reason why it happens?
because the <br> tag doesn't contain the nodeValue.length member?
comment:3 Changed 12 years ago by
#8742 was marked as duplicate.
Same error but different TC.
I encountered a javascript error when I try to create a table (with default parameters) with the latest ckeditor 3.6.2 samples\ajax.html using Internet Explorer 8. The only thing set in the configuration is entermode (which is set to ENTER_BR).
The javascript error is : nodeValue.length is null or not an object line: 130 char: 973
Steps to replicate the problem
- Enter the word "TESTING" without the quotes into CKEditor.
- Place cursor before T and press the Enter key. (The word TESTING will be on the 2nd line with a blank line on top).
- Place the cursor on the blank line on top of the word Testing.
- Click on the table button. The table dialog will appear.
- Click on the OK button on the table dialog.
Notice that a table is created but the javascript error mentioned above is shown also.
NOTE: This problem do not seem to happen when I try other entermode e.g. ENTER_DIV or ENTER_P
Can anyone advise on what could be the problem here? Thank you.
comment:4 Changed 12 years ago by
#8122 was marked as duplicate.
Another TC:
Set enter mode to BR
Insert the following code in source mode :
<ul> <li> foo</li> </ul> next foo
Go to wysiwyg mode, put your cursor at the beginning of the line "next foo". Push enter : new line inserted. Push up to go to the new line. The following error appear in IE console : nodeValue.length is null or not an object.
Reproducible from CKEditor 3.5.1 in IE6 - IE8 (IE9 works fine).
JS Error:
Message: 'nodeValue.length' is empty or not an object
Line: 802
URI: /3.6.2/ckeditor/_source/plugins/selection/plugin.js