Skip to content

ID-490 Go rogue, fix bugs. - #368

Merged
halfninja merged 1 commit into
developfrom
ID-490
Nov 18, 2026
Merged

halfninja merged 1 commit into
developfrom
ID-490

Conversation

@halfninja

Copy link
Copy Markdown
Member

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
halfninja requested a review from a team as a code owner November 18, 2026 12:12
@halfninja
halfninja requested review from WarwickGoatee, archanamathur, equaliser, flamingelk, lk9100, pstrapps and u2174063 and removed request for a team November 18, 2026 12:12
@halfninja

Copy link
Copy Markdown
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 build, which now that I have, gives me the same error

Comment thread vitest/bootstrap-tooltip.test.ts Resolved
@halfninja

Copy link
Copy Markdown
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.
Comment thread bootstrap/js/tooltip.js

var createdDocument = document.implementation.createHTMLDocument('sanitization')
createdDocument.body.innerHTML = unsafeHtml
const domParser = new DOMParser();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now using DOMParser as it should have done if I'd thought about it properly for one second

@halfninja
halfninja merged commit fee085c into develop Nov 18, 2026
7 checks passed
@halfninja
halfninja deleted the ID-490 branch November 18, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants