Re: False warning in HTML5 verifier

The verifier really cannot be expected to look inside scripts.  The following might pass verification and is cleaner.

<tr>
  <script>
    document.write ('   <th colspan="3">Tax:');
    if (overpaid)
        document.write (' overpaid<\/th><td class="red">');
    else
        document.write (' due<\/th><td class="total">');
    var amount = 40.73;
    document.write ('&pound;' + amount + '<\/td>');
  </script>
</tr>

If that too fails, write the opening and closing <tr> tags within the script as well.
--
<Signature>
Philip Taylor

Received on Tuesday, 22 January 2019 09:07:43 UTC