ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

Odd emu-format behaviour with <dt> in table

Open ptomato opened this issue 1 year ago • 0 comments

Test case:

<emu-table id="table-foo">
  <table class="real-table">
    <thead>
      <tr>
        <th>Foo</th>
      </tr>
    </thead>
    <tr>
      <dt>Bar</dt> <!---------- note the accidental substitution of dt for td -->
    </tr>
  </table>
</emu-table>

emu-format makes this into

<!DOCTYPE html>
<emu-table id="table-foo">
  <dt>Bar</dt> <!----------------- note the insertion of this extra dt element -->
  <table class="real-table">
    <thead>
      <tr>
        <th>Foo</th>
      </tr>
    </thead>
    <tr>
      <dt>Bar</dt>
    </tr>
  </table>
</emu-table>

Of course, garbage in, garbage out, but this might be a symptom of a correct table getting mangled in some circumstances. Feel free to close if not.

ptomato avatar Sep 24 '24 23:09 ptomato