Skip to content

Commit 051bc7e

Browse files
committed
fix innerhtml
1 parent ee0fc8c commit 051bc7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/classes/TableBlock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class TableBlock extends AbstractDomElement {
3030
if (legend) {
3131
const caption = document.createElement('caption')
3232
caption.className = legend.className
33-
caption.innerHTML = legend.innerHTML
33+
caption.textContent = legend.textContent
3434
table.insertBefore(caption, table.firstChild)
3535
legend.remove()
3636
}

0 commit comments

Comments
 (0)