Skip to content

Commit

Permalink
DdMatcher: allow flow content
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheritage committed Dec 2, 2024
1 parent 4d35e65 commit e7cdbb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/validate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ class DdMatcher {
return false;

for (const child of element.children) {
if (!AnyPhrasingMatcher.match(child, logger))
logger.error(`Dd contains non-phrasing element`, child);
if (!FlowMatcher.match(child, logger))
logger.error(`Dd contains non-flow element`, child);
}

return true;
Expand Down

0 comments on commit e7cdbb3

Please sign in to comment.