W3C home > Mailing lists > Public > www-validator@w3.org > June 2020

Re: Bug in HTML validator

From: Jens Oliver Meiert <jens@meiert.com>
Date: Sat, 13 Jun 2020 18:06:12 +0200
Message-ID: <CAJ0g8QSyuP82W=x44izrQekQrYCKbo47eFTj7Kd_JwUtjvNmGg@mail.gmail.com>
To: Anony Mous <fyngyrz@gmail.com>
Cc: W3C WWW Validator <www-validator@w3.org>
>  Line 32, Column 115: end tag for element "FONT" which is not open
> …ntById("result").innerHTML = "<font color=\"#ff0000\">Error</font>";  return; }

To bypass this particular error you’d need to escape the backslash in
`</font>`, as in

<font color=\"#ff0000\">Error<\/font>

However, this is generally poor code—poor HTML, poor CSS (which should
be used instead of “font” elements and “color” attributes), poor
JavaScript. I don’t have a good reference at hand to point you to, but
reconsider this and research more modern approaches to web



Jens Oliver Meiert
Received on Saturday, 13 June 2020 16:06:38 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 13 June 2020 16:06:38 UTC