question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Table <thead> and <tbody> tag gets Omitted

See original GitHub issue

Hello, 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?

screenshot from 2017-11-23 10-16-20

screenshot from 2017-11-23 10-14-28

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ryandebacommented, Nov 30, 2017

Thanks! I’ll try to get started on this in the next few days.

1reaction
artfcommented, Nov 23, 2017

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found