New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v0.8.10 errors with "Cannot read properties of null (reading 'localName')" #583
Comments
It would be very helpful if you (or someone from svg-sprite) could provide a reproduction with
There usually is a link to a stackblitz template in the bug template which makes this very easy: Thx |
v0.8.9 also works for what is worth. So, it's the change in v0.8.10 that is a breaking change for us. Unfortunately, I don't have a StackBlitz and the stacktrace is misleading (because it points to the svg-sprite source code). I'll see if I manage to create a StackBlitz with a reproducible example later. |
Specifically, this change is the offending one: 0.8.9...0.8.10#diff-79db8c65cf49002eb2d5d7e81a17f3b73d94db6bb50c0c12f0c9f427aff4b11eL172 -return this[index] || null;
+return index >= 0 && index < this.length ? this[index] : null; |
Any xml source and steps to be able to reproduce it are helpful. Could also be a dedicated small GitHub repo that i can clone to reproduce. |
By the way, the change you point to, belongs to the only PR that is included in version 8.10.0: And after reading the history of events in.the related issues an PRs, I checked if there is any difference in what is returned by |
Describe the bug
Expected behavior
No errors
Runtime & Version:
xmldom version:
> 0.8.8
, e.g0.8.10
runtime version: N/A
other related software and version: N/A
Additional context
We hit the issue in svg-sprite and thus in projects that depend on it. Example: https://github.com/twbs/icons/actions/runs/6935431138/job/18865536634#step:6:22
I had to pin the version to 0.8.8 in svg-sprite so that we don't get these errors. I didn't try v0.8.9, but I could give it a go later if it helps narrow down the problem.
The text was updated successfully, but these errors were encountered: