Skip to content

Commit

Permalink
fix: security issue with xmldom <= 0.6.0 (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed May 21, 2023
1 parent 33e2405 commit 964819b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@cucumber/cucumber-expressions": "^16",
"@cucumber/gherkin": "^26",
"@cucumber/messages": "^21.0.1",
"@xmldom/xmldom": "^0.7.9",
"acorn": "^7.4.1",
"arrify": "^2.0.1",
"axios": "^1.3.3",
Expand Down Expand Up @@ -138,7 +139,6 @@
"wdio-docker-service": "^1.5.0",
"webdriverio": "^8.3.8",
"xml2js": "^0.4.23",
"xmldom": "^0.1.31",
"xpath": "0.0.27"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/locator_test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { expect } = require('chai');
const Dom = require('xmldom').DOMParser;
const { DOMParser } = require('@xmldom/xmldom');
const xpath = require('xpath');

const Locator = require('../../lib/locator');
Expand Down Expand Up @@ -56,7 +56,7 @@ const xml = `<body>

describe('Locator', () => {
beforeEach(() => {
doc = new Dom().parseFromString(xml);
doc = new DOMParser().parseFromString(xml, 'application/xhtml+xml');
});

describe('constructor', () => {
Expand Down

0 comments on commit 964819b

Please sign in to comment.