Skip to content

Commit

Permalink
fix(ui5-task-i18ncheck): fix mime type issue for DOMParser creation (#…
Browse files Browse the repository at this point in the history
…1142)

Fixes #1141
  • Loading branch information
petermuessig authored Jan 6, 2025
1 parent fabcc97 commit c295ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui5-task-i18ncheck/lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let ELEMENT_NODE = (NodeType.ELEMENT_NODE = 1);
let readI18nUsageFromXML = (file_content, file_path) => {
// return new Promise<any[]>((resolve, reject) => {

let doc = new xmldom.DOMParser().parseFromString(file_content);
let doc = new xmldom.DOMParser().parseFromString(file_content, xmldom.MIME_TYPE.XML_APPLICATION);
let docEl = doc.documentElement;
let arr = [];
getI18nUsageInXMLRecursive(arr, file_path, docEl);
Expand Down

0 comments on commit c295ef2

Please sign in to comment.