Options

HTML block - 'a' tag causes paragraph tag to be interrupted

thenickdudethenickdude Registered Users Posts: 1,302 Major grins
edited August 13, 2013 in Bug Reporting
The tidying done for the HTML content block seems to think that <a> tags are block-level elements, because after saving the code, it causes them to break the paragraph tag that they are contained in.

For example, if I put this code into an HTML content block:
<p>Your photos look better at <a href="http://www.smugmug.com/">smugmug.com</a>!</p>

As soon as I save, the code is changed to:
<p>Your photos look better at</p>
<a href="http://www.smugmug.com/">smugmug.com</a>!

That would be correct HTML tidying if <a> tags were block level elements, but they're not. This forces inline links to end up on a line below the paragraph, instead of inline where they should be.

Comments

  • Options
    FergusonFerguson Registered Users Posts: 1,339 Major grins
    edited August 5, 2013
    I found the same "feature". I by trial and error found that if you put a DIV around the part inside the paragraph's range it will work, but it looks broken to me.
  • Options
    olliolli Registered Users Posts: 16 Big grins
    edited August 13, 2013
    I've had this problem too. I only found this thread after I posted mine. I've been using the DIV tag instead of the P tag it works (so far). But there is definitely something wrong.
Sign In or Register to comment.