Archived topic
"This block contains unexpected or invalid content"
5 replies · Started by Michael on January 28, 2020
Hello all,
Can anyone explain to me how to resolve an error I am getting in the pages editor whereby the blocks have a message that says "This block contains unexpected or invalid content". As far as I am aware the code is fine and is not invalid. I have tried pressing the Resolve button and also the Convert to HTML button to see what they do, but they didn't seem to help. The blocks are "custom HTML" blocks in the first instance, so am not sure why it would ask to convert anyway?
https://www.dropbox.com/s/bqez58g3msm6cxv/invalid-content.jpg?dl=0
Thanks very much!
Michael.
Hi there,
i think the Gutenberg block validator can be a bit hit and miss.
Any error / warning / log in the Developers Console ?
Hi David,
Thanks for getting back to me. Indeed there is. I didn't think to look at that:
Block validation: Expected tag name
tbody, instead sawtr.
I am using tables with this format:
<table class="header">
<tr>
<td class="center">
<header>
<h1>The Story and Ethos Behind Reclaim Design</h1>
</header>
</td>
</tr>
</table>
I didn't realize it was necessary to include tbody?
I think WP's HTML is just super hard assed about everything - and that definitely proves it lol
OK, thanks very much David for your help. I'm on a bit of learning curve with WP!
Happy to be of help.