Skip to content

Commit

Permalink
Use a wider group of selectors for text_justified check
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz committed May 23, 2024
1 parent bfcdb70 commit 497d90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pageScanner/rules/text-justified.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
const TEXT_JUSTIFIED_CHECK_THRESHOLD = 200;
export default {
id: 'text_justified',
selector: 'p, div, td',
selector: 'p, span, small, strong, b, i, em, h1, h2, h3, h4, h5, h6, a, label, button, th, td, li, div, blockquote, address, cite, q, s, sub, sup, u, del, caption, dt, dd, figcaption, summary, data, time',
matches: ( element ) => {
return element.textContent.trim().length >= TEXT_JUSTIFIED_CHECK_THRESHOLD;
},
Expand Down

0 comments on commit 497d90d

Please sign in to comment.