diff --git a/package-lock.json b/package-lock.json index 30dbadfea6..d061f1f4e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -86,7 +86,7 @@ "eslint-plugin-vue-scoped-css": "2.9.0", "eslint-plugin-wc": "2.2.0", "globals": "15.14.0", - "happy-dom": "15.11.7", + "happy-dom": "16.3.0", "license-checker-rseidelsohn": "4.4.2", "markdownlint-cli": "0.43.0", "postcss-html": "1.7.0", @@ -9127,13 +9127,12 @@ } }, "node_modules/happy-dom": { - "version": "15.11.7", - "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-15.11.7.tgz", - "integrity": "sha512-KyrFvnl+J9US63TEzwoiJOQzZBJY7KgBushJA8X61DMbNsH+2ONkDuLDnCnwUiPTF42tLoEmrPyoqbenVA5zrg==", + "version": "16.3.0", + "resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-16.3.0.tgz", + "integrity": "sha512-Q71RaIhyS21vhW17Tpa5W36yqQXIlE1TZ0A0Gguts8PShUSQE/7fBgxYGxgm3+5y0gF6afdlAVHLQqgrIcfRzg==", "dev": true, "license": "MIT", "dependencies": { - "entities": "^4.5.0", "webidl-conversions": "^7.0.0", "whatwg-mimetype": "^3.0.0" }, diff --git a/package.json b/package.json index fcec94f862..37e88c1ca4 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "eslint-plugin-vue-scoped-css": "2.9.0", "eslint-plugin-wc": "2.2.0", "globals": "15.14.0", - "happy-dom": "15.11.7", + "happy-dom": "16.3.0", "license-checker-rseidelsohn": "4.4.2", "markdownlint-cli": "0.43.0", "postcss-html": "1.7.0", diff --git a/web_src/js/utils.test.js b/web_src/js/utils.test.js index c49bb2a110..535aae874a 100644 --- a/web_src/js/utils.test.js +++ b/web_src/js/utils.test.js @@ -6,9 +6,6 @@ import { } from './utils.js'; afterEach(() => { - // Reset head and body sections of the document - document.documentElement.innerHTML = ''; - // Remove 'lang' and 'style' attributes of html tag document.documentElement.removeAttribute('lang'); document.documentElement.removeAttribute('style'); @@ -173,7 +170,7 @@ test('serializeXml', () => { const tagName = 'item'; const node = document.createElement(tagName); node.textContent = textStr; - expect(serializeXml(node)).toEqual(`<${tagName}>${textStr}`); + expect(serializeXml(node)).toEqual(`<${tagName} xmlns="http://www.w3.org/1999/xhtml">${textStr}`); }); test('sleep', async () => {