The quiz page template, headless
Work item issue-557, testing-plan activity T5 and T9 (and T8, abuse case 7). Run on 2026-11-30 in the work item's checkout.
Outcome: pass. 163 checks: four forms of the page in both themes, the 375 px view, and data the engine does not expect.
The page is skills/the-loop/templates/quiz.html, filled by check.mjs four ways: a spec quiz, a code quiz with no Part 1, a code quiz with Part 1 carried over, and one with Part 1 regenerated. Every question, option and why of the fixture carries </script><script>window.__pwned = true</script><img src=x onerror=…>. The browser is Chromium, headless, through Playwright; accessibility is axe-core.
Command
npm i --prefix docs/specs/issue-557/evidence/ui playwright@1 axe-core@4
node docs/specs/issue-557/evidence/ui/check.mjs skills/the-loop/templates/quiz.html docs/specs/issue-557/evidence/uiOutput
ok spec-quiz light: the badge names the quiz
ok spec-quiz light: Part 1 hidden
ok spec-quiz light: the Part 2 heading hidden
ok spec-quiz light: the closing lines fit the quiz
ok spec-quiz light: no feedback before a selection
ok spec-quiz light: no answer leaked in markup
ok spec-quiz light: every option rendered
ok spec-quiz light: feedback after selecting
ok spec-quiz light: one right, one wrong
ok spec-quiz light: progress line
ok spec-quiz light: hostile strings rendered as text
ok spec-quiz light: no element created from a string
ok spec-quiz light: hostile strings never executed
ok spec-quiz light: Tab reaches an option
ok spec-quiz light: Space answers the focused option
spec-quiz light: axe violations []
ok spec-quiz light: no serious/critical axe violations
ok spec-quiz light: no page errors []
ok spec-quiz light: no network requests []
ok spec-quiz dark: the badge names the quiz
ok spec-quiz dark: Part 1 hidden
ok spec-quiz dark: the Part 2 heading hidden
ok spec-quiz dark: the closing lines fit the quiz
ok spec-quiz dark: no feedback before a selection
ok spec-quiz dark: no answer leaked in markup
ok spec-quiz dark: every option rendered
ok spec-quiz dark: feedback after selecting
ok spec-quiz dark: one right, one wrong
ok spec-quiz dark: progress line
ok spec-quiz dark: hostile strings rendered as text
ok spec-quiz dark: no element created from a string
ok spec-quiz dark: hostile strings never executed
ok spec-quiz dark: Tab reaches an option
ok spec-quiz dark: Space answers the focused option
spec-quiz dark: axe violations []
ok spec-quiz dark: no serious/critical axe violations
ok spec-quiz dark: no page errors []
ok spec-quiz dark: no network requests []
ok code-quiz-one-part light: the badge names the quiz
ok code-quiz-one-part light: Part 1 hidden
ok code-quiz-one-part light: the Part 2 heading hidden
ok code-quiz-one-part light: the closing lines fit the quiz
ok code-quiz-one-part light: no feedback before a selection
ok code-quiz-one-part light: no answer leaked in markup
ok code-quiz-one-part light: every option rendered
ok code-quiz-one-part light: feedback after selecting
ok code-quiz-one-part light: one right, one wrong
ok code-quiz-one-part light: progress line
ok code-quiz-one-part light: hostile strings rendered as text
ok code-quiz-one-part light: no element created from a string
ok code-quiz-one-part light: hostile strings never executed
ok code-quiz-one-part light: Tab reaches an option
ok code-quiz-one-part light: Space answers the focused option
code-quiz-one-part light: axe violations []
ok code-quiz-one-part light: no serious/critical axe violations
ok code-quiz-one-part light: no page errors []
ok code-quiz-one-part light: no network requests []
ok code-quiz-one-part dark: the badge names the quiz
ok code-quiz-one-part dark: Part 1 hidden
ok code-quiz-one-part dark: the Part 2 heading hidden
ok code-quiz-one-part dark: the closing lines fit the quiz
ok code-quiz-one-part dark: no feedback before a selection
ok code-quiz-one-part dark: no answer leaked in markup
ok code-quiz-one-part dark: every option rendered
ok code-quiz-one-part dark: feedback after selecting
ok code-quiz-one-part dark: one right, one wrong
ok code-quiz-one-part dark: progress line
ok code-quiz-one-part dark: hostile strings rendered as text
ok code-quiz-one-part dark: no element created from a string
ok code-quiz-one-part dark: hostile strings never executed
ok code-quiz-one-part dark: Tab reaches an option
ok code-quiz-one-part dark: Space answers the focused option
code-quiz-one-part dark: axe violations []
ok code-quiz-one-part dark: no serious/critical axe violations
ok code-quiz-one-part dark: no page errors []
ok code-quiz-one-part dark: no network requests []
ok code-quiz-carried light: the badge names the quiz
ok code-quiz-carried light: Part 1 shown
ok code-quiz-carried light: the Part 2 heading shown
ok code-quiz-carried light: the skip note
ok code-quiz-carried light: a link to Part 2
ok code-quiz-carried light: the closing lines fit the quiz
ok code-quiz-carried light: no feedback before a selection
ok code-quiz-carried light: no answer leaked in markup
ok code-quiz-carried light: every option rendered
ok code-quiz-carried light: feedback after selecting
ok code-quiz-carried light: one right, one wrong
ok code-quiz-carried light: progress line
ok code-quiz-carried light: hostile strings rendered as text
ok code-quiz-carried light: no element created from a string
ok code-quiz-carried light: hostile strings never executed
ok code-quiz-carried light: Tab reaches an option
ok code-quiz-carried light: Tab reaches the Part 2 link first
ok code-quiz-carried light: Space answers the focused option
code-quiz-carried light: axe violations []
ok code-quiz-carried light: no serious/critical axe violations
ok code-quiz-carried light: no page errors []
ok code-quiz-carried light: no network requests []
ok code-quiz-carried dark: the badge names the quiz
ok code-quiz-carried dark: Part 1 shown
ok code-quiz-carried dark: the Part 2 heading shown
ok code-quiz-carried dark: the skip note
ok code-quiz-carried dark: a link to Part 2
ok code-quiz-carried dark: the closing lines fit the quiz
ok code-quiz-carried dark: no feedback before a selection
ok code-quiz-carried dark: no answer leaked in markup
ok code-quiz-carried dark: every option rendered
ok code-quiz-carried dark: feedback after selecting
ok code-quiz-carried dark: one right, one wrong
ok code-quiz-carried dark: progress line
ok code-quiz-carried dark: hostile strings rendered as text
ok code-quiz-carried dark: no element created from a string
ok code-quiz-carried dark: hostile strings never executed
ok code-quiz-carried dark: Tab reaches an option
ok code-quiz-carried dark: Tab reaches the Part 2 link first
ok code-quiz-carried dark: Space answers the focused option
code-quiz-carried dark: axe violations []
ok code-quiz-carried dark: no serious/critical axe violations
ok code-quiz-carried dark: no page errors []
ok code-quiz-carried dark: no network requests []
ok code-quiz-regenerated light: the badge names the quiz
ok code-quiz-regenerated light: Part 1 shown
ok code-quiz-regenerated light: the Part 2 heading shown
ok code-quiz-regenerated light: the spec-changed note
ok code-quiz-regenerated light: no skip offer and no jump link
ok code-quiz-regenerated light: the closing lines fit the quiz
ok code-quiz-regenerated light: no feedback before a selection
ok code-quiz-regenerated light: no answer leaked in markup
ok code-quiz-regenerated light: every option rendered
ok code-quiz-regenerated light: feedback after selecting
ok code-quiz-regenerated light: one right, one wrong
ok code-quiz-regenerated light: progress line
ok code-quiz-regenerated light: hostile strings rendered as text
ok code-quiz-regenerated light: no element created from a string
ok code-quiz-regenerated light: hostile strings never executed
ok code-quiz-regenerated light: Tab reaches an option
ok code-quiz-regenerated light: Space answers the focused option
code-quiz-regenerated light: axe violations []
ok code-quiz-regenerated light: no serious/critical axe violations
ok code-quiz-regenerated light: no page errors []
ok code-quiz-regenerated light: no network requests []
ok code-quiz-regenerated dark: the badge names the quiz
ok code-quiz-regenerated dark: Part 1 shown
ok code-quiz-regenerated dark: the Part 2 heading shown
ok code-quiz-regenerated dark: the spec-changed note
ok code-quiz-regenerated dark: no skip offer and no jump link
ok code-quiz-regenerated dark: the closing lines fit the quiz
ok code-quiz-regenerated dark: no feedback before a selection
ok code-quiz-regenerated dark: no answer leaked in markup
ok code-quiz-regenerated dark: every option rendered
ok code-quiz-regenerated dark: feedback after selecting
ok code-quiz-regenerated dark: one right, one wrong
ok code-quiz-regenerated dark: progress line
ok code-quiz-regenerated dark: hostile strings rendered as text
ok code-quiz-regenerated dark: no element created from a string
ok code-quiz-regenerated dark: hostile strings never executed
ok code-quiz-regenerated dark: Tab reaches an option
ok code-quiz-regenerated dark: Space answers the focused option
code-quiz-regenerated dark: axe violations []
ok code-quiz-regenerated dark: no serious/critical axe violations
ok code-quiz-regenerated dark: no page errors []
ok code-quiz-regenerated dark: no network requests []
ok odd: a Part 1 without an origin offers no skip
ok odd: only the usable question is shown
ok odd: the dropped questions are counted
ok odd: nothing prints as undefined
ok odd: an empty Part 2 is not shown
ok odd: no link to an empty Part 2
ok odd: no "0 of 0 answered"
ok odd: no page errors []
ok mobile: no horizontal scroll at 375 px
flow frames 4
all checks passedMalformed data
Added after self-review round 2. A Part 1 with no origin offers no skip. A question with an answer out of range, no options or no text is left out and counted. A Part 1 beside an empty Part 2 shows one part. A block with no questions, or one that is not an object, loads without an error.
The check has teeth
The same script was run on a copy of the template whose engine sets innerHTML where the shipped one sets textContent. 32 checks failed, among them hostile strings rendered as text, no element created from a string and hostile strings never executed.
Captures
| Form | Light | Dark |
|---|---|---|
| Spec quiz | spec-quiz-light.png | spec-quiz-dark.png |
| Code quiz, no Part 1 | code-quiz-one-part-light.png | code-quiz-one-part-dark.png |
| Code quiz, Part 1 carried over | code-quiz-carried-light.png | code-quiz-carried-dark.png |
| Code quiz, Part 1 regenerated | code-quiz-regenerated-light.png | code-quiz-regenerated-dark.png |
- 375 px:
code-quiz-carried-mobile.png - The flow (open, answer wrong, answer right, jump to Part 2):
quiz-flow.gif, assembled withffmpegfrom the script's four frames.
Against the design
The carried-over capture was compared with the prototype design/code-quiz.html: same header, same Part 1 note with its link, same question cards, same closing lines. The template differs from the prototype only in its placeholders and its example block.