Opened 12 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.

  1. Paste the following content
<ul>
	<li>
		11111111111</li>
	<li>
		22222222222</li>
	<li>
		3333333333333</li>
</ul>
<p>
	<br />
	abcdefg</p>

  1. put the cursor position at the last line, e.g. cursor between d and e
  1. press left arrow key to walk through several lines from last line to the unordered list.
  1. 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 12 years ago by Jakub Ś

Keywords: IE added
Status: newconfirmed
Version: 3.6.13.5.1

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

comment:2 Changed 12 years ago by pgteam

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 Jakub Ś

#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

  1. Enter the word "TESTING" without the quotes into CKEditor.
  2. Place cursor before T and press the Enter key. (The word TESTING will be on the 2nd line with a blank line on top).
  3. Place the cursor on the blank line on top of the word Testing.
  4. Click on the table button. The table dialog will appear.
  5. 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 Jakub Ś

#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.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy