Skip to content

Cannot use <table> - "Hydration failed" - HTMLUnknownElement #36754

Discussion options

You must be logged in to vote

Hello!

I'm not sure why this is happening (as the HTML is valid) but it could be fixed by wrapping the content on the table with a <tbody>.

  <table>
    <caption>Alien football stars</caption>
    <tbody>
      <tr>
        <th scope="row">Mia Oolong</th>
        <td>9</td>
        <td>6,219</td>
      </tr>
    </tbody>
  </table>

Replies: 8 comments 12 replies

Comment options

You must be logged in to vote
8 replies
@andrechalella
Comment options

@icyJoseph
Comment options

@andrechalella
Comment options

@icyJoseph
Comment options

@h0lme3
Comment options

Answer selected by andrechalella
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hdsuperman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@chrisling-dev
Comment options

@simonjduff
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@icyJoseph
Comment options

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