Opened 7 years ago

Last modified 6 years ago

#9740 confirmed Bug

IE: Unordered list inside font tag causes nested unordered lists

Reported by: ckeditor_user Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc: rschnorenberg@…

Description

When displaying HTML that contains a UL inside a FONT tag in Internet Explorer 9, the list items of the UL end up as nested ULs.


Steps to reproduce: 1) Open IE9 2) Load CKEditor with the following HTML source code:

<FONT face=arial>Text here 
<UL>
<LI>Bullet point 1. 
<LI>Bullet point 2. 
<LI>Bullet point 3. 
<LI>Bullet point 4.</UL>
<P><FONT color=#ff0000>More text here</FONT></P></FONT>

3) See that CKEditor breaks up the list items into separate, nested unordered lists, like so:

<p><font face="arial">Text here </font></p>

<ul>
	<li><font face="arial">Bullet point 1. </font>

	<ul>
		<li><font face="arial">Bullet point 2. </font>

		<ul>
			<li><font face="arial">Bullet point 3. </font>

			<ul>
				<li><font face="arial">Bullet point 4.</font></li>
			</ul>
			<font face="arial"> </font>

			<p><font face="arial"><font color="#ff0000">More text here</font></font></p>
			</li>
		</ul>
		</li>
	</ul>
	</li>
</ul>

I realize that block-level elements (such as UL) should not be placed inside inline elements (such as FONT), and that FONT tags should never be used (this HTML was generated by the end user, not me). However, CKEditor handles this HTML gracefully in Firefox and Chrome; it would be nice if it could do the same in IE.

Change History (4)

comment:1 Changed 7 years ago by ckeditor_user

Forgot to mention, this was discovered on Win7 64-bit, in case it matters.

comment:2 Changed 6 years ago by Jakub Ś

Status: newconfirmed
Version: 4.03.0

We have 3 such tickets which IMHO are the same: #9207, #8294, #8736 because they are all about pasting block elements into inline which after mode switch causes such result.

Here however list gets changed into nested list additionally. Wrapping can be reproduced from CKEditor 3.0 but changing list into nested (which may be result of first error) can be reproduced from CKE 3.4.2.

It is possible that fixing above ticket will solve both wrapping and nesting.

Last edited 6 years ago by Jakub Ś (previous) (diff)

comment:3 Changed 6 years ago by Jakub Ś

#10774 was marked as duplicate.

comment:4 Changed 6 years ago by Rick Schnorenberg

Cc: rschnorenberg@… added
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy