Opened 13 years ago

Closed 13 years ago

#6972 closed Bug (duplicate)

htmlparser about li/dt/dd

Reported by: yiminghe Owned by:
Priority: Normal Milestone:
Component: Core : Parser Version: 3.5.1
Keywords: fragment parser Cc:

Description

steps:

1.open http://ckeditor.com/demo 2.switch to source code mode 3.input malformed html :

<li>1</li>
<dt>2</dt>
<dd>3</dd>

(of course the above html are input by somebody who is not so smart :( )

expected :

hope to see the list ,the html after parsed should be :

<ul>
	<li>
		1</li>
</ul>
<dl>
	<dt>
		2</dt>
	<dd>
		3</dd>
</dl>

actually :

error,see pic

ps1: at the svn trunk code ,things are better ,but html generated do not conform to xhtml dtd (same with input):

<li>1</li>
<dt>2</dt>
<dd>3</dd>

ps2: i provide a patch to trunk ,but i am not sure ,it is not tested extensively .

Attachments (2)

error.png (30.6 KB) - added by yiminghe 13 years ago.
dd_dt_li.patch (2.3 KB) - added by yiminghe 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by yiminghe

Attachment: error.png added

Changed 13 years ago by yiminghe

Attachment: dd_dt_li.patch added

comment:1 Changed 13 years ago by Garry Yao

Resolution: duplicate
Status: newclosed

DUP of #6946.

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