aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/utils/dom.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/utils/dom.test.ts')
-rw-r--r--web_src/js/utils/dom.test.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/web_src/js/utils/dom.test.ts b/web_src/js/utils/dom.test.ts
index d7e3a4939e..cb99a85511 100644
--- a/web_src/js/utils/dom.test.ts
+++ b/web_src/js/utils/dom.test.ts
@@ -2,6 +2,7 @@ import {createElementFromAttrs, createElementFromHTML, querySingleVisibleElem} f
test('createElementFromHTML', () => {
expect(createElementFromHTML('<a>foo<span>bar</span></a>').outerHTML).toEqual('<a>foo<span>bar</span></a>');
+ expect(createElementFromHTML('<tr data-x="1"><td>foo</td></tr>').outerHTML).toEqual('<tr data-x="1"><td>foo</td></tr>');
});
test('createElementFromAttrs', () => {