Repository navigation
Conversation
halfninja
requested review from
WarwickGoatee,
archanamathur,
equaliser,
flamingelk,
lk9100,
pstrapps and
u2174063
and removed request for
a team
November 18, 2026 12:12
flamingelk
approved these changes
Nov 18, 2026
Member
Author
|
I will resolve the test failure - I had run them locally but forgot that the Karma tests rely on the production build and I hadn't rerun |
WarwickGoatee
approved these changes
Nov 18, 2026
halfninja
commented
Nov 18, 2026
Member
Author
|
Crikey, I've found that helpfully Document() is an XML parsing document and it explodes on any HTML that doesn't happen to be valid XML. I'll come round this another way using DOMParser or something. |
Initially I just changed the version to 'id7'. Then I changed it to a big number in case the checks always try to parse the version string. Then I got carried away and fixed the vulnerability cve-2025-1647 that precipitated this.
halfninja
commented
Nov 18, 2026
|
|
||
| var createdDocument = document.implementation.createHTMLDocument('sanitization') | ||
| createdDocument.body.innerHTML = unsafeHtml | ||
| const domParser = new DOMParser(); |
Member
Author
There was a problem hiding this comment.
Now using DOMParser as it should have done if I'd thought about it properly for one second
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Initially I just changed the version to 'id7'. Then I changed it to a big number in case the checks always try to parse the version string. Then I got carried away and fixed the vulnerability cve-2025-1647 that precipitated this.