Forums

Messing up my nested lists in 1.5 (8 posts)

  1. Lorelle
    Member
    Posted 4 years ago #

    I want to pound the snot out of whatever function in WP 1.5 which "fixes" the html in my post. I am running a test post to check all my styles and it has some lovely nested links which are messed with WP the moment I click the Publish or Save button. The list should look like this:

    <ul><li>level one</li>
    <ul><li>level two</li></ul>
    <li>level one</li>
    <ul><li>level two again</li>
    <ul><li>level three</li>
    <li>level three</li>
    </ul>
    <li>level two again</li>
    </ul>
    <li>level one again</li>
    </ul>

    Instead, it removes some of the ending uls and moves things around. Instead of three nested levels I get two. Why should it be "cleaning" the ul and li in a nest? Is it trying to fix it to be xml? Isn't it already?

  2. Anonymous
    Member
    Posted 4 years ago #

    not sure, but maybe the nested uls should be inside a li?

  3. Lorelle
    Member
    Posted 4 years ago #

    Why would I want to put the uls INSIDE an li in the middle of a post? The screwy sidebar menu has its own list nesting problems, but this is inside the post - only on that post - not as part of the layout.

    Say this list represents a list of links or points in a lecture? Things to do? Everyday kind of list that has points, subpoints, and some of the subpoints have sub subpoints.

    It would be <p>I'm about to show you a list - blah balh</p> and then my group of lists.

    Why would WP rewrite and scramble these up?

  4. Anonymous
    Member
    Posted 4 years ago #

    OK, OK, just I've never seen an ul before with data inside it that wasn't enclosed in a li. I assume you've tried:

    <ul><li>level 1</li>
    <li><ul><li>level 2</li></ul></li>
    <li>level 1 again</li>
    etc.

    is it still borking?

  5. Lorelle
    Member
    Posted 4 years ago #

    OH, I forgot about the open li for the next nest...let me try that. It changed when html got stricter...and probably readly strict in xml.

  6. mdawaffe
    Member
    Posted 4 years ago #

  7. Anonymous
    Member
    Posted 4 years ago #

    Why would I want to put the uls INSIDE an li in the middle of a post?

    Because then it might be valid XHTML and WP might stop choking on it?

  8. Lorelle
    Member
    Posted 4 years ago #

    That was it. Thanks for the help. So WP was trying to "help" me make it right but not doing so well at the effort. It's help did get me to pay attention.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.