Skip to content

Odd emu-format behaviour with <dt> in table #618

@ptomato

Description

@ptomato

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions