You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: read text-entry answers through QTIDeclaration.fromXML
_extractAnswers parsed <qti-correct-response> by hand while a separate
helper built the case-sensitivity lookup via QTIDeclaration. Fold both
into one parse: the declaration class now supplies the correct responses
as well as the mapping.
A declaration too malformed for QTIDeclaration to model (e.g. a missing
identifier) now yields no answers rather than falling back to raw DOM
reads, matching how an unsupported base-type is already handled.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: contentcuration/contentcuration/frontend/shared/views/QTIEditor/interactions/textEntry/__tests__/parse.spec.js
0 commit comments