Skip to content

fix(html): a link whose href does not resolve is returned as raw text #394

Closed

Description

@tobocop2

When a page link's href does not resolve to a URL, it is kept word for word in LinkInfo.url, so a caller sees raw unresolved text where it expects an address.

Where

crates/crawlberg/src/html/links.rs.

Fix

Drop a link whose href does not resolve, or report it in a separate field, instead of returning the raw text as its URL.

Activity

  1. added
    bugSomething isn't working
    correctnessProduces wrong output or wrong behaviour
    P3Performance, refactor, docs or tests
    on Sep 27, 2026
  2. added theissue type on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3Performance, refactor, docs or testsbugSomething isn't workingcorrectnessProduces wrong output or wrong behaviour

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions