Skip to content

fixrule(list_markup_review): rewrite list_markup_review detection logic - #2608

Merged
tombrunet merged 5 commits into
main-4.xfrom
ewainberg-main-4.x
Aug 3, 2026
Merged

fixrule(list_markup_review): rewrite list_markup_review detection logic#2608
tombrunet merged 5 commits into
main-4.xfrom
ewainberg-main-4.x

Conversation

@tombrunet

Copy link
Copy Markdown
Member

See #2515 for original

ewainberg and others added 4 commits April 9, 2026 16:54
- Scope checks to block-level elements and td/th only, preventing
  duplicate reports from ancestor/descendant pairs
- Accumulate inline sibling text across <br> boundaries before
  testing against list-item pattern, fixing detection of mixed
  inline content (e.g. `• <strong>text</strong>`)
- Add td/th early-exit before ancestor role check to prevent
  implicit table ARIA roles from blocking detection
- Require 2+ consecutive matching lines before flagging, eliminating
  single-item false positives
- Expand LIST_ITEM_PATTERN to cover: •◦▪▸► ✓✗✦ –— * - o and
  ordered variants: 1. 1) (1) a. a) A. A) i. ii. iii.
- Preserve lastWasBr state across whitespace-only text nodes
- Skip elements inside script, style, label, and hidden containers
@tombrunet
tombrunet merged commit 9e9a5c3 into main-4.x Aug 3, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants