X Tutup
Skip to content

HTML parser incorrectly assumes that <tr> must be inside <tbody> #5403

@tiziano88

Description

@tiziano88

See

'tr': new HtmlTagDefinition({closedByChildren: ['tr'], requiredParent: 'tbody'}),
. In reality, <tr> may be inside <thead> instead, but the current version transforms

<table>
  <thead>
    <tr>...</tr>
  </thead>
</table>

into

<table>
  <thead>
    <tbody>
      <tr>...</tr>
    </tbody>
  </thead>
</table>

which does not makes sense.

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

      X Tutup