Closed Bug 212955 Opened 22 years ago Closed 22 years ago

Creating multi-level indented lists in Composer results in invalid HTML 4.01 Transitional

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 54479

People

(Reporter: scott, Assigned: mozeditor)

Details

(Whiteboard: DUPEME?)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 If you create a list then indent an item to create a sub-list, the resulting HTML does not validate as HTML 4.01 Transitional. You will get the error: document type does not allow element "UL" here; assuming missing "LI" start-tag Problem is composer will create HTML like this: <ul> <li>item</li> <ul> <li>item<br> </li> </ul> </ul> When it should be: <ul> <li>item <ul> <li>item<br> </li> </ul> </li> </ul> Reproducible: Always Steps to Reproduce: 1. Open Composer 2. Click the button to create a bulleted list, add text 3. Click the button to indent the list, add more text 4. Validate the code w/ the W3C validator Actual Results: W3C validator reports: document type does not allow element "UL" here; assuming missing "LI" start-tag Expected Results: Contain the sublist within a list item. Lists can only contain list items, not another <UL> or <OL>. Searched Bugzilla for "list item" and couldn't find any existing bugs.
What version of Composer are you using? The date you have in the initial comment says "Firebird" This seems like a dupe to me; perhaps something that was fixed in the last month or two? -->Editor:Core
Assignee: composer → jfrancis
Component: Editor: Composer → Editor: Core
OS: Windows 2000 → All
QA Contact: petersen → sairuh
Hardware: PC → All
Whiteboard: DUPEME?
Sorry, I realized that afterwards that Bugzilla was reporting what I browsed with which is now different than what I use for Composer. The last build I tested this with was 20030714, so pretty recent.
this is a dup of 54479. *** This bug has been marked as a duplicate of 54479 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified dupe
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.