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)
Tracking
()
RESOLVED
DUPLICATE
of bug 549295
People
(Reporter: BijuMailList, Unassigned)
References
Details
(Keywords: testcase)
Attachments
(1 file)
|
14.25 KB,
text/html
|
Details |
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
<ol><br> <li>level 1</li><br> <ol><br> <li>level 1.1</li><br> <ol><br> <li>level 1.1.1</li><br> <li>level 1.1.2</li><br> </ol><br> <li>level 1.2</li><br> </ol><br> <li>level 2</li><br> <li>level 3</li><br></ol><br><br>
step 16 output
<ol><br> <li>level 1</li><br> <ol><br>
<li>level 1.1</li><br> <ol><br>
<li>level 1.1.1</li><br> <li>level
1.1.2</li><br> </ol><br> <li>level
1.2</li><br> </ol><br> <li>level 2</li><br>
<li>level 3</li><br></ol><br><br>
Comment 1•16 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•