Skip to content

Commit a8a4778

Browse files
fix(lNodeTypeToSelection): make sure to accept empty EnumVal textContent
1 parent c484905 commit a8a4778

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tDataTypeTemplates/lNodeTypeToSelection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function enumeration(daOrBda: Element): TreeSelection {
1010

1111
Array.from(enumType.querySelectorAll(":scope > EnumVal")).forEach(
1212
(enumVal) => {
13-
const val = enumVal.textContent?.trim();
14-
if (val) selection[val] = {};
13+
const val = enumVal.textContent!.trim(); //textContent null only for doctype or document
14+
selection[val] = {};
1515
},
1616
);
1717

0 commit comments

Comments
 (0)