docs icon indicating copy to clipboard operation
docs copied to clipboard

Document information card: unstructured information in paragraph elements

Open cyberbaloo opened this issue 6 months ago • 0 comments

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

  1. Open the information card of a document.
  2. Inspect the source code of the elements displaying the user's role and the last update date.
  3. Observe that these contents are not in <p> elements.

RGAA criteria

Critère 9.1 : Dans chaque page web, l'information est-elle structurée par l'utilisation appropriée de titres ?

Prioritization

P2

cyberbaloo avatar May 26 '26 19:05 cyberbaloo

Good catch!

ggboooy avatar Jan 08 '26 07:01 ggboooy

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

pangkun248 avatar Apr 01 '26 15:04 pangkun248