docs
docs copied to clipboard
Document information card: unstructured information in paragraph elements
Observed behavior
In the document information card, text elements such as the user's role (owner, editor, reader) and the last update date are not contained in <p> elements. This information is therefore rendered without appropriate semantic structure.
Expected behavior
Each piece of textual information must be encapsulated in a <p> element in order to be properly structured and rendered by assistive technologies.
Steps to reproduce
- Open the information card of a document.
- Inspect the source code of the elements displaying the user's role and the last update date.
- Observe that these contents are not in
<p>elements.
RGAA criteria
Prioritization
P2
Good catch!
If the above changes take effect, can the if branch in the code be simplified directly?
if block_id in self.used_block_ids:
block = self.blocks[block_id]
block.ref_count += 1
else:
block = self._allocate_block(block_id)
change to
block = self.blocks[block_id]
block.ref_count += 1