Handling of Unclosed <li> Tags in Nested Lists

Dear HTML Tidy community,

I hope this message finds you well. I'm new to the mailing list and very
interested in how HTML Tidy handles nested and potentially malformed list
structures.

While testing HTML Tidy, I noticed that unclosed `<li>` tags inside nested
`<ul>` or `<ol>` elements sometimes result in unexpected corrections or
restructuring of the list. For example, certain invalid nesting patterns
are "flattened" or reordered.

Is this the intended behavior, or is there a recommended configuration to
preserve the original structure more closely while still tidying it?

Looking forward to your insights.

Best regards,
sahzia hajo

Received on Tuesday, 22 April 2025 00:38:39 UTC