Closed Bug 559267 Opened 16 years ago Closed 16 years ago

In Design Mode extra line breaks gets added when pasting a HTML content.

Categories

(Core :: DOM: Editor, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 549295

People

(Reporter: BijuMailList, Unassigned)

References

Details

(Keywords: testcase)

Attachments

(1 file)

Attached file MidasDemo.html
In Design Mode extra line breaks gets added when pasting a HTML content. When pasting a HTML content while in Design Mode, extra line breaks gets added to the HTML source of pasted content. (this wont affect what being rendered on screen) Steps:- 1. open attached MidasDemo.html 2. click to check "View HTML Source" 3. Enter following HTML <ol> <li>level 1</li> <ol> <li>level 1.1</li> <ol> <li>level 1.1.1</li> <li>level 1.1.2</li> </ol> <li>level 1.2</li> </ol> <li>level 2</li> <li>level 3</li> </ol> 4. click to uncheck "View HTML Source" 5. copy and save the content from the alert screen, and click OK 6. click again to check "View HTML Source" 7. click again to uncheck "View HTML Source" 8. copy and save the content from the alert screen, and click OK 9. compare text from step 5 and step 8 10. user see both text are the same. 11. click again to check "View HTML Source" 12. do copy and paste the content in the "HTML Source" box 13. now click again to uncheck "View HTML Source" 14. copy and save the content from the alert screen, and click OK 15. compare text from step 5 and step 14 16. user see text are different, ie they have extra line brakes. step 5 output &lt;ol&gt;<br>&nbsp; &lt;li&gt;level 1&lt;/li&gt;<br>&nbsp; &lt;ol&gt;<br>&nbsp; &nbsp; &lt;li&gt;level 1.1&lt;/li&gt;<br>&nbsp; &nbsp; &lt;ol&gt;<br>&nbsp; &nbsp; &nbsp; &lt;li&gt;level 1.1.1&lt;/li&gt;<br>&nbsp; &nbsp; &nbsp; &lt;li&gt;level 1.1.2&lt;/li&gt;<br>&nbsp; &nbsp; &lt;/ol&gt;<br>&nbsp; &nbsp; &lt;li&gt;level 1.2&lt;/li&gt;<br>&nbsp; &lt;/ol&gt;<br>&nbsp; &lt;li&gt;level 2&lt;/li&gt;<br>&nbsp; &lt;li&gt;level 3&lt;/li&gt;<br>&lt;/ol&gt;<br><br> step 16 output &lt;ol&gt;<br>&nbsp; &lt;li&gt;level 1&lt;/li&gt;<br>&nbsp; &lt;ol&gt;<br>&nbsp; &nbsp; &lt;li&gt;level 1.1&lt;/li&gt;<br>&nbsp; &nbsp; &lt;ol&gt;<br>&nbsp; &nbsp; &nbsp; &lt;li&gt;level 1.1.1&lt;/li&gt;<br>&nbsp; &nbsp; &nbsp; &lt;li&gt;level 1.1.2&lt;/li&gt;<br>&nbsp; &nbsp; &lt;/ol&gt;<br>&nbsp; &nbsp; &lt;li&gt;level 1.2&lt;/li&gt;<br>&nbsp; &lt;/ol&gt;<br>&nbsp; &lt;li&gt;level 2&lt;/li&gt;<br>&nbsp; &lt;li&gt;level 3&lt;/li&gt;<br>&lt;/ol&gt;<br><br>
I don't know which version of firefox you use, but it not the trunk as you indicated. The issue doesn't exist anymore in nightlies. The issue is related to bug 549295 which is already fixed.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
correct...
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: