Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ptomato opened this issue Sep 24, 2024 · 0 comments
Open

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

ptomato opened this issue Sep 24, 2024 · 0 comments

Comments

@ptomato
Copy link
Contributor

ptomato commented Sep 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant