Closed Bug 254583 Opened 21 years ago Closed 21 years ago

Back Space key to eliminate ul element creates emplty element

Categories

(SeaMonkey :: Composer, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: bus, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.1) Gecko/20040707 <html><head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Prayer-IraqWar</title> <link href="main.css" type="text/css" rel="stylesheet"></head> <body>Process=========<br> <ul> <li>.</li><li>&gt;&gt;Concept</li> <ul> <>#######!!!! Composer BUG!!!!!! On The Composer Place A Carsor Here and Click the &lt;ul&gt; icon (this element seems to have no content, I don't know why this happens, but it often happens on Mozilla 1.7 composer) ===&gt;&gt;<br> </> </ul> <ul> <ul> <li>Find out US and allie's responsibility</li> <li>See God's responces to the war and ppl</li> </ul> <li>Prayer for the recognition<br> </li> </ul> <li>&gt;&gt;Content</li> <ul> <li>Each prayer</li><li>Special information</li><ul><li>Death of war-innocents and US contribution</li></ul> </ul> </ul><br> </body></html> Reproducible: Always Steps to Reproduce: 1. 2. 3. I don't remember all, but I have been having many problems in the composer ver 1.7 that I didn't have on 1.6. If you haven't done yet, I would suggest to check all the functions related to <ul> and <ol> on ver 1.7 or 1.7.1. Thanks for all the work and I have been appreciating the composer for last few years. Kengo
Um.... you're feeding _very_ invalid markup to composer, which tries to make sense of it as best it can....
For this html I haven't used anything except the Normal mode of Mozilla Composer 1.7.1. which means that the composer brings the strange elements in the markup. Sorry I did not record exact process it made it though. - Kengo
Summary: Please store the details in a html file and open it with the composer 1.7.1 → composer handles invalid html badly
I revealed the bug. Please open the following html with mozilla composer 1.7.1 and see the comments ------------------------- <html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>mozzolaBUgreport</title><meta content="Kengo" name="author"></head><body><br> <ul> <li>item</li> <li>item</li> <ul> <li><br> </li> <li>&lt;&lt;=== ## Place carso here and hit [Back Space] to eliminate the &lt;li&gt; then you will get illegal? element &lt;&gt;<br> </li> <li>item</li> </ul> <li>item</li> <ul> <>This is the illegal element &lt;&gt; made by the operation above. <br> </><li>&lt;&lt;== ## Place carsor here and use [Back Space] to join the line to the line above, then this line will disappear. <br> </li> <li>item</li> <li><br> </li> </ul> </ul> </body></html>
Tested with my comment #3 sample on Mozilla 1.7.2 but it shows the same symptom. Using the Back Space key to eliminate an unordered list element still creates an emplty element.
Summary: composer handles invalid html badly → Back Space key to eliminate ul element creates emplty element
I can not reproduce the problem. When I select/highlight a list item of an unordered list (I also tried with an ordered list), pressing backspace key removes the list item cleanly. Reporter, can you try these steps: 1- Open Composer and a blank document 2- Paste the following code into that blank document via <HTML> Source editing mode: <ul> <li>1st unordered list item</li> <li>XXX to be deleted list item XXX<br> </li> <li>3rd unordered list item</li> <li>4th unordered list item<br> </li> </ul> Normal editing mode ------------------- 3- Switch to Normal editing mode 4- Single click inside the 2nd list item with the "XXX"; the caret should be blinking inside that 2nd list item 5- In the status bar, you should see "<body> <ul> <li>" Click the "<li>" in the status bar: it will be selected/highlighted in the status bar and in the edition pane 6- Press the Backspace key (or del key) HTML Tags editing mode ---------------------- 3- Switch to HTML Tags editing mode 4- Single click inside the 2nd list item with the "XXX"; the caret should be blinking inside that 2nd list item 5- Click the yellow LI icon with "XXX" : the text should be selected/hightlighted and the corresponding "<li>" should be selected/highlighted in the statusbar. 6- Press the Backspace key (or del key) WORKSFORME Mozilla 1.8a3 build 2004082407
We got no feedback from the reporter. I assume the steps provided solved the problem. resolving as WORKSFORME.
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → WORKSFORME
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.