Quote:
Originally Posted by Lynne
I don't know why it's adding a hundred, but did you try putting it all on one line which is what you need to do?
|
I see what's happening.
Given the example
Code:
<table>
<tr>
<td></td>
<td></td>
</tr>
[...]
The parser will turn it into
Code:
<table><br />
<tr><br />
<td></td><br />
<td></td><br />
</tr><br />
[...]
Well <br /> elements aren't allowed in these places. Because of that the browser is interpreting it as
Code:
<br />
<br />
<br />
<br />
<br />
<table>
<tr>
<td></td>
<td></td>
</tr>
[...]
So in the end it's the browser that is doing, but the parser could be made to check for invalid tags like this and choose not to turn the new lines into br's.
I did find a way around it for now though.
Code:
<table><tr><td>Table cell text
</td><td>Table cell text
</td></tr>Table cell text
[...]
Because the br is being placed in the td (a valid place), the breaks don't get moved out of that table
AND because there's only one break with nothing after it, most browsers will ignore it, giving you a clean table with no errors.
My one complaint is that it looks really bad for formatting and my mods have difficulty following the pattern when making edits.