Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-LIFE-059

The status region is a polite live region of plain text

When the extension writes a status, it SHALL write an aside with role status and aria-live polite that holds the label in bold, the message in its own element and the diagnostics as a list, with every text as plain text and never as markup.

Part of StRS-MDOKFSTUDIO-LIFE-005, outside the paths drawn on its map.

Part of StRS-MDOKFSTUDIO-LIFE-007, outside the paths drawn on its map.

Scenarios 6

The situations the tests check; open one to read it.

nominalStatus with diagnostics
Givena stale render with two diagnostics
Whenthe status region is written
Thenthe aside holds a strong label, a message span and a list with one item per diagnostic carrying its severity, and a code attribute when the diagnostic has a code
nominalPending notice
Givena pending notice shown over a ready page
Whenthe notice is written
Thenit is also an aside with role status and aria-live polite, so assistive technology announces it politely
refusalMarkup in a message
Givenan error message that contains an img element with an onerror attribute
Whenit is shown in the status region
Thenthe characters appear as text and no element is created
boundaryQuote in a code
Givena diagnostic code that contains a double quote
Whenthe attribute is written
Thenthe quote is escaped in the attribute value
nominalStatus page
InputOutcome
a preview with no render yet, its page is builtthe body carries data-sphinx-preview-status-page, the status markup follows and the style reads the neutral editor tokens (the nonce is SwRS-MDOKFSTUDIO-TRUST-012)
a preview whose first render failed, its page is builtthe same structure shows Preview unavailable
nominalPatch rebuilds the status region
InputOutcome
a page with a Preview ready region and a patch carrying Preview is stale with two linesthe region shows the new label and two list items
a page that was loaded without a status region and a patch arrivesthe new region becomes the first child of the body
a patch whose status lines carry codeseach line keeps its code attribute
a patch whose status line carries a code that is not a stringthe patch is refused and the page content stays as it was

Implemented in 3

Tested by 2