1

Topic: bordercolor removed by htmLawed

The following html after going through htmLawed has the bordercolor removed
tested on your demo page


<table cellspacing="0" cellpadding="0" width="80%" align="center" border="1">
    <tbody>
        <tr>
            <td style="text-align: center" bordercolor="#ff0000" bgcolor="#ffff66">&nbsp;aaaa</td>
            <td style="text-align: center" bordercolor="#ff0000" bgcolor="#ffff66">&nbsp;1</td>
        </tr>
        <tr>
            <td style="text-align: center" bordercolor="#ff0000" bgcolor="#99ffff">&nbsp;b</td>
            <td style="text-align: center" bordercolor="#ff0000" bgcolor="#ffff66">&nbsp;2</td>
        </tr>
        <tr>
            <td style="text-align: center" bordercolor="#ff0000" bgcolor="#ffff66">&nbsp;c</td>
            <td style="text-align: center" bordercolor="#ff0000" bgcolor="#ffff66">&nbsp;3</td>
        </tr>
    </tbody>
</table>



FYI I have created my own simple module in Drupal using htmLawed
works great


Please let me know if this is easy to fix and if you will

2

Re: bordercolor removed by htmLawed

The attribute 'bordercolor' is not described in the HTML standards; it's not deprecation, the attribute just doesn't exist! htmLawed does attribute transformation, but only for deprecated attributes. Covering such proprietary attributes would require covering scores of attributes like, just for 'table', 'bordercolordark', 'bordercolorlight' and 'bottompadding'.

Having said that, considering the relatively frequent use of 'bordercolor' for 'table', 'tr' and 'td', and its multi-browser support (atleast IE and FF), I'm adding code for covering it in the new htmLawed 1.0.8 release of 15 May 2008.

3

Re: bordercolor removed by htmLawed

WOW that was fast

I was about to look through the code to see if I could do it myself


I think that this will be useful to others