Bug: Option element containing illegal font eats whitespace

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 UTC