W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [wf2] repetition model addition part

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Tue, 19 Jul 2005 13:31:29 +0200
Message-ID: <20050719133129.pilaolvztj4g0w8s@webmail.annevankesteren.nl>
If you have:

 <body>
  before
  <div id="order" repeat="template" repeat-start="1">
   test
  </div>
  after
 </body>

The resulting tree is something like:

 <body>
  <div>
   test
  </div>
  before
  <div id="order" repeat="template" repeat-start="1">
   test
  </div>
  after
 </body>

... right? If you apply the same logic to tables, you get ugly results:

 <table>
  <tr>
   <th>amount<th>type
  <tr id="order" repeat="template" repeat-start="1">
   <td>foo<th>bar
 </table>

... becomes:

 <table>
  <tr>
   <td>foo<th>bar
  <tr>
   <th>amount<th>type
  <tr id="order" repeat="template" repeat-start="1">
   <td>foo<th>bar
 </table>

Same thing happens I guess when you have additional rows with repeat="{integer}"
set I guess.

(It might also be that I got lost somewhere in the specification. As it is quite
difficult to follow with 18 different steps. (Based on the source version.))


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
Received on Tuesday, 19 July 2005 04:31:29 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC