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

------------------------ Example HTML document -------------------------
  <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>

Received on Thursday, 3 August 2000 01:13:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:48 UTC