WordPress.org

Ready to get started?Download WordPress

Forums

2.1 breaks my code (1 post)

  1. Varsity
    Member
    Posted 7 years ago #

    WP2.1 is inserting rogue <p> element openers into my posts, breaking their XML validity. This:

    <div class="figure"><a href=""><img src="" alt="" /></a>
    Caption text</div>

    turns into this:

    <div class="figure"><strong><p></strong><a href=""><img src="" alt="" /></a>
    Caption text</div>

    I could turn the div elements into paras, but that wouldn't be semantic and causes IE (including 7) to screw up the font size. There must be a better solution...I'd like a little help! :p

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.