2 Commits

Author SHA1 Message Date
kai4avaya
c2c47875a9 fix: address auto-reviewer CodeQL and code-quality warnings
- showQuizStats.js: add escapeHtml() and sanitize fileName/reason/details
  before injecting into verificationModal.innerHTML (XSS: DOM text reinterpreted as HTML)
- injectQuizBtn.js: replace quizTitle string interpolation in innerHTML with
  DOM construction (textContent) to prevent XSS (DOM text reinterpreted as HTML)
- highlight_menu.js: fix 'classList.contains === "hidden"' type error —
  was comparing function reference to string; now correctly called as
  classList.contains("hidden") (comparison between inconvertible types)
- index.html + indexHtml.js: rename malformed space-containing id attributes
  'Show answers' -> 'show-answers' and 'Show chain of thought' -> 'show-chain-of-thought'
- settings.js: update three matching string keys to kebab-case to stay in sync
  with renamed HTML ids (coordinated rename, no functionality change)
- demo_reference_rendering.html: add safeParseReferences() fallback wrapper,
  replace direct parseReferences() call which was undefined in this context
- test_reference_renderer.js: remove parseReferences import (not exported),
  rewrite testReferenceParsing() to use processReferences() with HTML output assertions
2026-04-21 19:40:51 -04:00
kai4avaya
81909553c3 feat: add socratiq directory (excluding node_modules and dist) 2026-04-21 18:39:28 -04:00