Texturizer parsing error inside table tags
-
I am using 1.2-RC2 and haven’t gotten around to upgrading yet. This may have been fixed in the final version and I just don’t know it yet.
I included a table in a recent post using the following code:
<table style="border:0;font-family:'Courier New', Courier, monospace;font-size:0.8em;margin-left:auto;margin-right:auto;" cellpadding="2px" cellspacing="1px" id="old-browser-stats"><span style="margin-left:1em"><caption style="text-align:center;font-style:italic;margin-left:auto;margin-right:auto;">Hits by Outdated Browsers, May 2004</caption>
</span>
<span style="margin-left:1em"><tbody>
</span>
<span style="margin-left:1em"><tr>
</span>
<span style="margin-left:2em"><th style="text-align:left">Browser</th>
</span>
<span style="margin-left:2em"><th style="text-align:right">Hit Count</th>
</span>
<span style="margin-left:1em"></tr>
</span>
<span style="margin-left:1em"><tr>
</span>
<span style="margin-left:2em"><td>Internet Explorer < 6.0</td>
</span>
<span style="margin-left:2em"><td style="text-align:right">4607</td>
</span>
<span style="margin-left:1em"></tr>
</span>
<span style="margin-left:1em"><tr>
</span>
<span style="margin-left:2em"><td>Internet Explorer 4.x</td>
</span>
<span style="margin-left:2em"><td style="text-align:right">154</td>
</span>
<span style="margin-left:1em"></tr>
</span>
<span style="margin-left:1em"><tr>
</span>
<span style="margin-left:2em"><td>Netscape Navigator 4.x</td>
</span>
<span style="margin-left:2em"><td style="text-align:right">638</td>
</span>
<span style="margin-left:1em"></tr>
</span>
<span style="margin-left:1em"><tr>
</span>
<span style="margin-left:2em"><td>WebTV</td>
</span>
<span style="margin-left:2em"><td style="text-align:right">16</td>
</span>
<span style="margin-left:1em"></tr>
</span>
<span style="margin-left:1em"></tbody>
</span>
</table>
When rendered by WordPress, the table’s<caption>tag is followed by ““, without an opening “. This is keeping the page from validating.
Ideally (IMO) Texturize should leave code inside the block-leveltabletag alone, since any line breaks inside that block are probably included for readability rather than visual formatting or structure. It seems to do this just fine, except for thecaptiontag.
P.S. Hope I’m getting the name of the XHTML-checking component right here. I know Texturize prettifies punctuation, and I’m making the assumption that it handles other post parsing tasks as well.
The topic ‘Texturizer parsing error inside table tags’ is closed to new replies.