opensanctions / opensanctions/poliloom
Add raw HTML view for sources with JS-hidden content
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 22
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Problem
When viewing archived HTML pages, content inside JavaScript-controlled elements (e.g., accordion panels) is hidden because the JS that would toggle visibility doesn't run. However, our text highlighting/scrolling still targets this hidden content, so the user gets scrolled to an invisible element.
Example: on a Dutch government minister page, career history is inside .accordion__item-panel elements that have max-height: 0px; visibility: hidden by default. JavaScript would add an .active class to reveal them, but in our static rendering it never fires.
Proposal
Add an alternative "raw HTML" or "source text" view that shows the page content without the original CSS hiding rules, so users can see all text content including what would normally be revealed by JavaScript interactions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the archived HTML rendering, CSS handling, and text-highlighting/scrolling path described in the issue. Check how JavaScript-hidden elements are represented, then verify that a raw or source-text view exposes all content and that highlighting and scrolling remain usable there.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript, python
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100