Vheissu / aurelia-for-real-world-web-applications-book-feedback

Post feedback as issues here on Github for the Aurelia book. Be as descriptive and honest as you like.
15 stars 0 forks source link

as-element page 75 & 76 - incorrect HTML output #113

Closed qmennens closed 7 years ago

qmennens commented 7 years ago

On page 76, in the as-element chapter you write "This will produce the following HTML and work as expected:"

<template>
  <td>Hello</td>
  <td>World</td>
</template>

However that is the template of the "hello-row" HTML, the actual output in the browser will be:

<table>
  <tbody>
    <tr as-element="hello-row" class="au-target" au-target-id="9">
      <td>Hello</td>
      <td>World</td>
    </tr>
  </tbody>
</table>

Kind regards, Quirine