Skip to content

Commit

Permalink
fix(lNodeTypeToSelection): make sure to accept empty EnumVal textContent
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobVogelsang committed Jan 23, 2025
1 parent c484905 commit a8a4778
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tDataTypeTemplates/lNodeTypeToSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ function enumeration(daOrBda: Element): TreeSelection {

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

Expand Down

0 comments on commit a8a4778

Please sign in to comment.