WordPress / theme-review-action

Other
30 stars 9 forks source link

Test whether links are underlined. #43

Open StevenDufresne opened 3 years ago

StevenDufresne commented 3 years ago

Links within the content must be underlined and clearly distinguishable Heading Links Paragraph Links List Style Links List Style Links Link in Comments Text Widget Links

carolinan commented 3 years ago

This is only required for links inside large blocks of text, like post and page content, comment content, and large content in text widgets. The purpose is only make sure that links are distinctively different from surrounding text.

So it is not just "any" heading that is linked. And not things like lists of links inside the latest posts widget in a widget area

-Because the classes for wrappers around the_content etc can be changed by the theme, I don't think this check can be made foolproof?

dd32 commented 2 years ago

It might be possible to select all <p> elements and only check for underlines on links within if the <p> contains more than x words, or takes up more than x% of the page or something.