W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

22oct99 issues

From: <Jeff_Beard@candle.com>
Date: Fri, 12 Nov 1999 10:47:23 -0800
To: html-tidy@w3c.org
Message-ID: <88256827.006752F5.00@n-smtpmta.candle.com>



perverse test cases on the 22oct99 version

[a] inputs:
        <!-- presentation scope err -->
     <blockquote>
     <i><b>this is simple text data<i><b><br />
     </blockquote>

[a] yield:
     <!-- presentation scope err -->
     <blockquote>
          <i><b>this is simple text data<i><b><br />    // kept the malformed
decorations
          </b></i></b></i>                    // and double inserted the
correction
     </blockquote>

[b]inputs:
     <!-- coerse table end? -->
     <blockquote>                        // block level
     this is simple text data<br />
          <!-- implied table, badly formed -->
          <tr><td> nested <td> rows </td></td> </tr>
     </blockquote>                       // assists in scoping

correctly produces:
     <!-- coerse table end? -->
      <blockquote>
           this is simple text data<br />
            <!-- implied table, badly formed -->
           <table>
             <tr>
               <td>
                 nested
               </td>
               <td>
                 rows
               </td>
             </tr>
           </table>
     </blockquote>

but inputs:
     [ ... snip .. ]
        <!-- coerse table end? -->
     this is simple text data<br />
        <!-- implied table, badly formed -->
        <tr><td> nested <td> rows </td></td> </tr>

        <ul><li>list item</li>/<ul>

        <!-- brkn cmt 1 -->
        <!--- brkn cmt 2 -->
        <!-- brkn zz cmt 3 -->

        <!-- presentation scope err -->
     <blockquote>
     <i><b>this is simple text data<i><b><br />
     </blockquote>

     <blockquote>
        <!-- missing alt -->
        <img src="pic.gif">
     </blockquote>


        <!-- frames no inside body -->
        <frameset>
                <frame src="foo">
        </frameset>
     </body>

[b]yields:
line 21 column 6 - Warning: inserting implicit <table>
line 21 column 36 - Warning: discarding unexpected </td>
line 23 column 5 - Warning: missing <tr>
line 23 column 5 - Error: <ul> isn't allowed in <tr> elements
line 23 column 27 - Error: plain text isn't allowed in <tr> elements
line 23 column 29 - Error: <ul> isn't allowed in <tr> elements
line 30 column 1 - Error: <blockquote> isn't allowed in <tr> elements
line 32 column 1 - Warning: missing </b> before </blockquote>
line 32 column 1 - Warning: missing </i> before </blockquote>
line 32 column 1 - Warning: missing </b> before </blockquote>
line 32 column 1 - Warning: missing </i> before </blockquote>
line 34 column 1 - Error: <blockquote> isn't allowed in <tr> elements  // runs
right thru scope
line 35 column 1 - Warning: inserting implicit <i>
line 35 column 1 - Warning: inserting implicit <b>
line 36 column 6 - Warning: <img> lacks "alt" attribute
line 41 column 5 - Error: <frameset> isn't allowed in <tr> elements
line 44 column 1 - Warning: missing </table> before </body>
Received on Friday, 12 November 1999 13:47:51 GMT

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