Opened 13 years ago

Last modified 11 years ago

#7939 confirmed Bug

CKEditor inserting <p> when source-code has head tags like <meta>, <link> or <title>

Reported by: fabio Owned by:
Priority: Normal Milestone:
Component: Core : Parser Version: 3.5.3
Keywords: Cc:

Description

In version "Nightly Build":

To reproduce, change to source-code view and paste this html code:

<title>aa</title>
bbb

now switch again to view html, and again to source-code, now the code will be:

<p>
	<html>
		<head>
			<title></title>
		</head>
		<body></body>
	</html>
</p>
<p>
	<title></title>
	bbb</p>

In version 3.6: To reproduce, change to source-code view and paste this html code:

<title>aaa</title>
bbbb

now switch again to view html, and again to source-code, now the code will be:

<p>
	&nbsp;</p>
<p>
	<title></title>
	bbbb</p>

Change History (2)

comment:1 Changed 13 years ago by Jakub Ś

Keywords: head tags link meta title <p> removed
Status: newconfirmed
Version: 3.63.5.3

The first TC corresponds to fullPage sample and the second to any other.

Has happened in FF4, Webkit, IE9 and Opera browsers from CKEditor 3.5.3 rev [6561]. For these browsers, before revision [6561] (from CKEditor 3.3.2) the contents of title tag were removed but the tag itself stayed untouched (which is also invalid in my opinion).

In FF3.6, IE6, IE7 and IE8 title tag (with its content) is removed and "bbb" text is inserted in paragraphs. I think I may say it works.

comment:2 Changed 11 years ago by Jakub Ś

Additionally to this TC I will add another:

If you insert title tag in body in full page mode, it will be thrown out of html document (Placed outside of it in paragraph). In non-full page mode title tag causes paragraph insertion on every mode change.

Same thing happens in CKE 4.2

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