Skip to content

Commit e7cdbb3

Browse files
DdMatcher: allow flow content
1 parent 4d35e65 commit e7cdbb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/validate.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ class DdMatcher {
217217
return false;
218218

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

224224
return true;

0 commit comments

Comments
 (0)