diff --git a/lib/jsdom/living/domparsing/parse5-adapter-serialization.js b/lib/jsdom/living/domparsing/parse5-adapter-serialization.js index e1f1ac7578..d496a40e30 100644 --- a/lib/jsdom/living/domparsing/parse5-adapter-serialization.js +++ b/lib/jsdom/living/domparsing/parse5-adapter-serialization.js @@ -57,3 +57,7 @@ exports.setNodeSourceCodeLocation = (node, location) => { }; exports.getNodeSourceCodeLocation = node => node.sourceCodeLocation; + +exports.updateNodeSourceCodeLocation = (node, endLocation) => { + Object.assign(node.sourceCodeLocation, endLocation); +}; diff --git a/package.json b/package.json index 89d103e05a..f788d1d015 100644 --- a/package.json +++ b/package.json @@ -20,31 +20,31 @@ "license": "MIT", "repository": "jsdom/jsdom", "dependencies": { - "abab": "^2.0.3", - "acorn": "^7.1.1", + "abab": "^2.0.5", + "acorn": "^8.0.5", "acorn-globals": "^6.0.0", "cssom": "^0.4.4", - "cssstyle": "^2.2.0", + "cssstyle": "^2.3.0", "data-urls": "^2.0.0", - "decimal.js": "^10.2.0", + "decimal.js": "^10.2.1", "domexception": "^2.0.1", - "escodegen": "^1.14.1", + "escodegen": "^2.0.0", "html-encoding-sniffer": "^2.0.1", "is-potential-custom-element-name": "^1.0.0", "nwsapi": "^2.2.0", - "parse5": "5.1.1", + "parse5": "6.0.1", "request": "^2.88.2", - "request-promise-native": "^1.0.8", - "saxes": "^5.0.0", + "request-promise-native": "^1.0.9", + "saxes": "^5.0.1", "symbol-tree": "^3.2.4", - "tough-cookie": "^3.0.1", + "tough-cookie": "^4.0.0", "w3c-hr-time": "^1.0.2", "w3c-xmlserializer": "^2.0.0", "webidl-conversions": "^6.1.0", "whatwg-encoding": "^1.0.5", "whatwg-mimetype": "^2.3.0", "whatwg-url": "^8.0.0", - "ws": "^7.2.3", + "ws": "^7.4.4", "xml-name-validator": "^3.0.0" }, "_dependenciesComments": { @@ -60,28 +60,27 @@ }, "devDependencies": { "benchmark": "^2.1.4", - "browserify": "^16.5.0", - "chai": "^4.2.0", - "eslint": "^6.8.0", - "eslint-find-rules": "^3.4.0", - "eslint-plugin-html": "^6.0.0", + "browserify": "^17.0.0", + "chai": "^4.3.3", + "eslint": "^7.21.0", + "eslint-find-rules": "^3.6.1", + "eslint-plugin-html": "^6.1.1", "eslint-plugin-jsdom-internal": "link:./scripts/eslint-plugin", - "js-yaml": "^3.13.1", - "karma": "^4.4.1", - "karma-browserify": "^7.0.0", + "js-yaml": "^4.0.0", + "karma": "^6.1.1", + "karma-browserify": "^8.0.0", "karma-chrome-launcher": "^3.1.0", - "karma-mocha": "^1.3.0", + "karma-mocha": "^2.0.1", "karma-mocha-webworker": "^1.3.0", "minimatch": "^3.0.4", - "mocha": "^8.3.0", + "mocha": "^8.3.1", "mocha-sugar-free": "^1.4.0", "optimist": "0.6.1", - "portfinder": "^1.0.25", "rimraf": "^3.0.2", "server-destroy": "^1.0.1", "st": "^2.0.0", - "watchify": "^3.11.1", - "wd": "^1.12.1", + "watchify": "^4.0.0", + "wd": "^1.14.0", "webidl2js": "^16.2.0" }, "browser": { diff --git a/test/web-platform-tests/to-run.yaml b/test/web-platform-tests/to-run.yaml index a484f3d6fb..f5e0a6ddb8 100644 --- a/test/web-platform-tests/to-run.yaml +++ b/test/web-platform-tests/to-run.yaml @@ -1110,7 +1110,6 @@ percent-encoding.window.html: [fail, Depends on fetch] toascii.window.html: [fail, Depends on fetch] url-constructor.any.html: [fail, Depends on fetch] url-origin.any.html: [fail, Depends on fetch] -url-setters-stripping.any.html: [fail, Unknown] url-setters.html: [fail, Depends on fetch] urlencoded-parser.any.html: [fail, Depends on fetch] diff --git a/test/web-platform-tests/to-upstream/domparsing/innerhtml-08.html b/test/web-platform-tests/to-upstream/domparsing/innerhtml-08.html index 0bab806871..5317b58d55 100644 --- a/test/web-platform-tests/to-upstream/domparsing/innerhtml-08.html +++ b/test/web-platform-tests/to-upstream/domparsing/innerhtml-08.html @@ -10,7 +10,9 @@ test(() => { const doc = document.createElement("html"); - doc.innerHTML = "