code4craft / code4craft/xsoup

Element not found in <head>

Open
#44 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
474
Forks
148
PR merge metrics
No merged PRs in 30d

Description

In version 0.3.1, when trying to evaluate "/html/head/link[@rel='canonical']/@href" over the DOM generated by JSOUP version 1.11.3 of the attached file, the element link is not found. Actually it is found in the body node "/html/head/link[@rel='canonical']/@href" which is obviously wrong.
milanuncios_busqueda_modular_synth.htm.zip

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the XPath evaluation for /html/head/link[@rel='canonical']/@href against the attached milanuncios_busqueda_modular_synth.htm file using JSOUP 1.11.3 and xsoup 0.3.1. Inspect how the DOM and XPath evaluation handle the head link; done means the canonical link is selected under /html/head rather than body.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.