W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

Bug: Option element containing illegal font eats whitespace

From: Randy Waki <rwaki@flipdog.com>
Date: Wed, 2 Aug 2000 23:12:06 -0600
To: <html-tidy@w3.org>
Message-ID: <000001bffd09$5e3ca930$51eee13f@rwaki>
If an option element contains an illegal font element followed by
whitespace and some text, 08-Jul-2000 Tidy eats the whitespace, causing
words to run into each other.  I'm temporarily working around this by
having ParseText change the mode from IgnoreWhitespace to MixedContent
when the illegal font is detected, but I'm not so sure that's the right
fix.

------------------------ Example HTML document -------------------------
<html>
<head>
  <title></title>
</head>
<body>
  <form method="get">
    <select name="select">
      <option value="1"> Tidy <font size="7"> gets </font> this right </option>
      <!-- The following gets tidied into "Tidy getsthis wrong" -->
      <option value="2"> Tidy <font size="7"> gets</font> this wrong </option>
    </select>
  </form>
</body>
</html>
------------------------------------------------------------------------

Randy
Received on Thursday, 3 August 2000 01:13:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT