Table <thead> and <tbody> tag gets Omitted
See original GitHub issueHello,
There is new issue with GrapesJS (maybe). I’ve created new component using bm.add()
in which I’ve used a table element with <thead>
and <tbody>
tags. But when getting html using editor.getHtml()
method, the <thead>
and <tbody>
tags gets ommited. Can you please help?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
<thead>: The Table Head element - HTML - MDN Web Docs
The end tag may be omitted if the <thead> element is immediately followed by a <tbody> or <tfoot> element. Permitted parents, A <table>...
Read more >Is it necessary to have <tbody> in every table? - Stack Overflow
Even though I believe it is a good practice to section your rows within thead , tbody and tfoot tags as it makes...
Read more >Tables in HTML documents
The TBODY end tag may always be safely omitted. The start tags for THEAD and TFOOT are required when the table head and...
Read more >HTML thead tag - W3Schools
Tip: The <thead> , <tbody>, and <tfoot> elements will not affect the layout of the table by default. However, you can use CSS...
Read more >0.6.0 Beta issue with thead and tbody over page break
With table-collapse set you don't have to worry about overly-large borders because they should combine. The missing border on the first page does...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks! I’ll try to get started on this in the next few days.
@fsaiyedOB yeah, I’ve made the table component like this because at that moment of writing the sorter was acting differently and it was messy ordering rows with
tbody
-like elements around. Currently, dealing with tables it’s not my priority but I’ll leave this issue open in case someone else would like to do so