Files
ai-job-search/tools
Tanmay GargandMads Lorentzen d554e797f9 fix(posting-guard): scan URLs in hidden element attributes (closes #766) (#767)
clean_html() previously collected only text nodes between tags into
hidden_buf and discarded tag attributes. Consequently, URLs situated
in attributes of hidden elements (such as href and src) bypassed the
hidden_urls detection gate. In addition, void elements were skipped
before checking _is_hidden().

- Inspect raw_attrs for URLs when inside a hidden element or void tag
- Track navigation containers to preserve calibration for nav links
- Add regression tests covering hidden href, src, and standalone void tags

Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com>
2026-11-10 20:57:03 +01:00
..