WordPress.org

Ready to get started?Download WordPress

Forums

Bug? list markup is rendered as ... (4 posts)

  1. NuclearMoose
    Member
    Posted 10 years ago #

    I *think* (I'm searching right now) that in XHTML, you can't use < p > inside of a
    < li > element.
    I'll check into it and post back ASAP.
    Craig.

  2. NuclearMoose
    Member
    Posted 10 years ago #

    A < p > - paragraph is a "block level" element while a < li > is not. A block level element is higher on the hierarchy, and therefore it cannot be contained by an element that is lower in the hierarchy. I can't find specific documentation that matches up this scenario, but this is my understanding.
    Basically it's a broken semantic rule. I *think.* Just dump the < p > tags temporarily and see if it validates.
    Craig.

  3. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    Fixed and committed.

  4. NuclearMoose
    Member
    Posted 10 years ago #

    mpt,
    Thanks for the clarification. I was searching everywhere I could think of for something last night...I could find rules for each seperately, but not combined.
    Now I just have to unlearn what I have learned. I must use The Force....
    Craig.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.