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
{{ message }}
Repository navigation
[QTI] Editing a question keeps the interaction attributes the editor doesn't set #6287
Every legacy input question converted by convert.py carries placeholder-text="Enter your answer here", which is lost.
Choice: the builder drops class, so class="qti-labels-upper-alpha" is lost.
Errors and logs
None.
Expected behavior
An edit keeps every attribute on the interaction element that the editor doesn't set.
User-facing consequences
Learners see a question that differs from the one uploaded, e.g. an answer field without its placeholder, or choices without their labels.
Steps to reproduce
Open an exercise with a legacy input question that was converted to QTI.
Click Edit and change a hint.
Inspect the emitted raw_data: <qti-text-entry-interaction> has no placeholder-text.
Acceptance Criteria
Editing a converted text entry question keeps placeholder-text.
Editing a choice question keeps a class on <qti-choice-interaction>.
Tests cover both cases through parse, build and assemble.
AI usage
Claude Code found this while reviewing the #6225 branch and drafted this issue. Both losses were reproduced under Jest by parsing an item, rebuilding it with its descriptor and assembling it.
Activity