Giter Site home page Giter Site logo

attr("abs:href") , absUrl("href") about jsoup HOT 2 CLOSED

jhy avatar jhy commented on May 14, 2024
attr("abs:href") , absUrl("href")

from jsoup.

Comments (2)

jhy avatar jhy commented on May 14, 2024

Thanks. I'm not really sure the best way to fix this. Jsoup uses Java's URL parser, and it seems to be mishandling this case. The method used is http://download.oracle.com/javase/1.4.2/docs/api/java/net/URL.html#URL(java.net.URL, java.lang.String)

Where URL is the origin URL, and the spec string is the contents of the href.

May need to provide a hack for this specific case, or reimplement the URL parser; not really keen on either.

from jsoup.

jhy avatar jhy commented on May 14, 2024

Fixed absolute URL generation from relative URLs which are only query strings.

Closed by a57d8a3

from jsoup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.