diff --git a/src/core/homework-page.ts b/src/core/homework-page.ts index 566169e..b3f7845 100644 --- a/src/core/homework-page.ts +++ b/src/core/homework-page.ts @@ -73,9 +73,17 @@ export function parseHomeworkPage(html: string): SubmissionDetail | undefined { // The student's own text: a textarea while the submission is still editable, // a plain div once it is not. + // + // The read-only div is a *sibling after* ``, not a + // child of it — that section then holds only the file list. Scoping this + // search to the section therefore found nothing for every submission past + // its due date, silently dropping the submitted text while still reporting + // the grade. `class="comment"` (with the quote right after the word) is + // specific enough to search the whole page: the teacher's feedback is + // `class="comment ckcontent"` and so cannot match. const typed = /data-testid="submission-text"[^>]*>([\s\S]*?)<\/textarea>/.exec(html)?.[1] ?? - (submission ? /
Abgegebener Text
Abgegebener Text
Meine Abgabe
Gut gemacht