Arelle / ixbrl-viewer

The Arelle iXBRL Viewer allows Inline XBRL (or iXBRL) reports to be viewed interactively in a web browser. The viewer allows users to access the tagged XBRL data embedded in an iXBRL report.
Other
97 stars 60 forks source link

Ignore absolutely-positioned content containers #648

Closed paulwarren-wk closed 6 months ago

paulwarren-wk commented 7 months ago

For elements that only have absolutely positioned children, don't attempt to navigate to them using next/prev buttons, and ignore the fact that they're not visible when detecting concealed tags.

Reason for change

Fixes #647

Also fixes a related problem with next/prev navigation not working.

Description of change

When deciding whether a fact is "concealed", or when navigating to a fact, ignore wrapper nodes that have the ixbrl-no-highlight class. This indicates that they have zero size, and they may be rendered in a different location to the fact itself.

Steps to Test

Using this document, select any table tag, and confirm that it is not considered to be a "concealed tag". Also confirm that navigating to facts (e.g. by search selection, or next/prev) works causes the fact to be scrolled into view.

review: @Arelle/arelle @paulwarren-wk

aviary2-wf commented 7 months ago

Security Insights

No security relevant content was detected by automated scans.

Action Items