-
Notifications
You must be signed in to change notification settings - Fork 99
Comparing changes
Open a pull request
base repository: xmldom/xmldom
base: 0.8.10
head repository: xmldom/xmldom
compare: 0.8.12
- 16 commits
- 17 files changed
- 4 contributors
Commits on Aug 17, 2025
-
ci: execute checks on 0.8.x release branch (#934)
Since contributions regularly effect 0.8.x let's use GitHub actions to run the checks. Following the usual pattern, this is first applied to the master branch, before being ported to the release branch. (cherry picked from commit 39fc73e)
Configuration menu - View commit details
-
Copy full SHA for c4dedf1 - Browse repository at this point
Copy the full SHA c4dedf1View commit details -
fix: [0.8.x] update
ownerDocumentwhen moving nodes between documen……ts (#933) Resolves issue #932 Co-authored-by: Christian Bewernitz <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cd97add - Browse repository at this point
Copy the full SHA cd97addView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3562083 - Browse repository at this point
Copy the full SHA 3562083View commit details -
Configuration menu - View commit details
-
Copy full SHA for 386989e - Browse repository at this point
Copy the full SHA 386989eView commit details -
Revert "chore: pin npm version using node 22"
This reverts commit 386989e.
Configuration menu - View commit details
-
Copy full SHA for 4bb9a5f - Browse repository at this point
Copy the full SHA 4bb9a5fView commit details -
chore: bump np to version 9.2.0
to fix issues while releasing the package using node v18
Configuration menu - View commit details
-
Copy full SHA for 5aadcdd - Browse repository at this point
Copy the full SHA 5aadcddView commit details -
Configuration menu - View commit details
-
Copy full SHA for c0f1401 - Browse repository at this point
Copy the full SHA c0f1401View commit details -
Configuration menu - View commit details
-
Copy full SHA for cbf44d9 - Browse repository at this point
Copy the full SHA cbf44d9View commit details -
chore: add .nvmrc pointing to node version 18
to use for releasing new versions
Configuration menu - View commit details
-
Copy full SHA for cece752 - Browse repository at this point
Copy the full SHA cece752View commit details
Commits on Mar 7, 2026
-
fix: preserve trailing whitespace in ProcessingInstruction data (#962)
**Target branch**: `release-0.8.x` ### What Remove `\s*` from the `parseInstruction` regex in `lib/sax.js` so that trailing whitespace inside a processing instruction is preserved instead of silently stripped. ### Why Per [XML spec §2.6](https://www.w3.org/TR/xml/#sec-pi), PI data is everything between the mandatory separator whitespace after the target and the closing `?>`. Trailing whitespace inside the PI boundary is content — there is no rule to strip it. Conforming parsers (sax-js, libexpat) preserve it. This was already fixed on `master`/`0.9.x` as a side-effect of the large DOCTYPE rewrite in PR #498 (22k lines). This PR is the minimal, non-breaking backport for the maintained `0.8.x` line. ### How `parseInstruction` builds a substring that already excludes `?>`, so `$` anchors immediately before it. The `\s*` before `$` was greedily consuming any trailing whitespace from PI data before passing it to `domBuilder.processingInstruction`. Removing it — while keeping `*?` on the data group to minimise diff — is the complete fix. ```js // before source.substring(start, end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/) // after source.substring(start, end).match(/^<\?(\S*)\s*([\s\S]*?)$/) ``` Five existing snapshots in `test/xmltest/__snapshots__/not-wf.test.js.snap` were updated: they captured the old buggy behaviour (trailing space stripped from XML-declaration-like PIs in the not-well-formed corpus). The updated snapshots reflect the now-correct output. ### Scope Addresses the trailing-whitespace sub-issue from #42, backporting #498 behaviour to 0.8.x.
Configuration menu - View commit details
-
Copy full SHA for ac40424 - Browse repository at this point
Copy the full SHA ac40424View commit details
Commits on Mar 23, 2026
-
chore: add local CI script and format:check script
Add `.github/workflows/ci-local.sh` for running the full CI suite locally before pushing. Exports `CI=true`, validates the active Node version against `.nvmrc`, and runs the same steps as GitHub Actions. Also adds the `format:check` npm script used by the CI script.
Configuration menu - View commit details
-
Copy full SHA for 968c893 - Browse repository at this point
Copy the full SHA 968c893View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac0ac77 - Browse repository at this point
Copy the full SHA ac0ac77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e37a20 - Browse repository at this point
Copy the full SHA 4e37a20View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5b929b - Browse repository at this point
Copy the full SHA a5b929bView commit details
Commits on Mar 29, 2026
-
fix: XML injection via unsafe CDATA serialization (GHSA-wh4c-j3r5-mjhp)…
… (#968) Fixes GHSA-wh4c-j3r5-mjhp — XML injection via unsafe CDATA serialization. ### Fixed - Security: `createCDATASection` now throws `InvalidCharacterError` when `data` contains `"]]>"`, as required by the [WHATWG DOM spec](https://dom.spec.whatwg.org/#dom-document-createcdatasection). [`GHSA-wh4c-j3r5-mjhp`](GHSA-wh4c-j3r5-mjhp) - Security: `XMLSerializer` now splits CDATASection nodes whose data contains `"]]>"` into adjacent CDATA sections at serialization time, preventing XML injection via mutation methods (`appendData`, `replaceData`, `.data =`, `.textContent =`). [`GHSA-wh4c-j3r5-mjhp`](GHSA-wh4c-j3r5-mjhp) Code that passes a string containing `"]]>"` to `createCDATASection` and relied on the previously unsafe behavior will now receive `InvalidCharacterError`. Use a mutation method such as `appendData` if you intentionally need `"]]>"` in a CDATASection node's data.
Configuration menu - View commit details
-
Copy full SHA for ed08df7 - Browse repository at this point
Copy the full SHA ed08df7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 189cb78 - Browse repository at this point
Copy the full SHA 189cb78View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.8.10...0.8.12