Skip to content

Commit dcd39bd

Browse files
committed
docs(changeset): fix: td or th tags should be lowercase
1 parent b6c8cb6 commit dcd39bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/silver-phones-watch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@m2d/html": patch
3+
---
4+
5+
fix: td or th tags should be lowercase

lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ const createRows = (el: HTMLElement, data_?: Data): TableRow[] =>
392392
children: Array.from(tr.children).map(col => ({
393393
type: "tableCell",
394394
children: [createFragmentWithParentNodes(col, { ...data, tag: undefined })],
395-
data: { ...data, tag: col.tagName },
395+
data: { ...data, tag: col.tagName.toLowerCase() },
396396
})),
397397
data,
398398
} as TableRow)

0 commit comments

Comments
 (0)