Fdawgs/docsmith

HTML parser should ignore hidden elements

Fdawgs opened this issue · 0 comments

Fdawgs commented

Prerequisites

  • I have written a descriptive issue title

  • I have searched existing issues to ensure it has not already been reported

  • I agree to follow the Code of Conduct that this project adheres to

API/app/plugin version

11.0.8

Node.js version

20.10.0

Operating system

Windows

Operating system version (i.e. 20.04, 11.3, 10)

11

Description

The HTML parser returns text inside HTML elements that have CSS rules that hide text.

Steps to Reproduce

Make a request to the HTML/TXT route with an HTML document with one of these rules in:

068eb72c-bdbc-4bd5-bb88-6507f6d506e8

Expected Behaviour

The HTML parser should not return that text inside HTML elements that have CSS rules containing display: none or visibility: hidden.