[Bug]: <col> Tags Are Not Self-Closed, Causing Backend HTML Parsers to Fail #6226
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
@tiptap/extension-table
Version(s)
2.11.5
Bug Description
We’ve encountered an issue where the generated
<col>
elements inside tables are rendered as:This is not valid HTML5. The
<col>
tag is a [void element](https://developer.mozilla.org/en-US/docs/Glossary/Void_element) and must be self-closing. It should be:Problem
Our backend HTML parsers expect proper void tag declarations. The current form
<col style="...">
is treated as invalid because it lacks a closing slash and is not self-closing, resulting in HTML parsing issues or broken rendering.Example of Invalid Output
Expected Output
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
Expected Output
Additional Context (Optional)
We are using https://github.com/yikoyu/vuetify-pro-tiptap/tree/master
Dependency Updates
The text was updated successfully, but these errors were encountered: