Ticket #6972 (closed Bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

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

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

Change History

Changed 4 years ago by yiminghe

Changed 4 years ago by yiminghe

comment:1 Changed 4 years ago by garry.yao

  • Status changed from new to closed
  • Resolution set to duplicate

DUP of #6946.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy