Support » Requests and Feedback » A bug report

  • whoawho


    When I used html mode write this in article:
    <a href=""><div>test</div></a>
    and published it.

    Then, in the browser, it will be a change like this:
    <a href=""><div>test</div><p></a>
    The tag of ‘<p>’ has resulted in firefox hyperlink failure.
    Please solve this problem as soon as possibleļ¼Œthx.

Viewing 2 replies - 1 through 2 (of 2 total)
  • ????????????????

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Your code is invalid in the first place, so I’m not surprised that you get invalid results.

    <a href=""><div>test</div></a>

    Is not valid HTML. DIV is a block element. A is an inline element which can not contain block level elements.

    Solution: Don’t put invalid HTML into a post. WordPress won’t prevent you from shooting yourself in the foot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A bug report’ is closed to new replies.