The Love Bug (thelovebug) wrote in lj_dev,
The Love Bug

  • Mood:
  • Music:
I've just uncovered an issue when embedding tables in Journal posts.

If you put your table elements like this...

<td>This is the content of the cell</td>

... the HTML parser will return this...

<table><br><tr><br><td>This is the content of the cell</td><br></tr><br></table>

As a result, there will be 4 blank lines directly above the table - because the browser cannot display printable characters within a table unless it is enclose in TD or TH (or a couple of other) tag pairs.

Any suggestions on this one?

Can the parser be made to *not* insert <br> tags whilst within a table structure unless inside the correct tag pairs?

I hope this makes sense! :-)

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded