Page MenuHomePhabricator

"button" tag not working in Web2Cit XPath expression
Closed, ResolvedPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Add XPath selection step with config //div[@class="author-article"]/div/button to translation template
  • Use translation template to translate https://www.larepublica.co/ocio/fabio-jacobsen-se-impone-al-sprint-en-la-segunda-jornada-del-tour-de-francia-2022-3395857

What happens?:
An empty output is returned.

What should have happened instead?:
The author name (Manuel Santiago Sánchez González) should be returned instead.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:
This does not happen with expression //div[@class="author-article"]/div/div, which successfully returns the sibling div element.

Event Timeline

diegodlh claimed this task.

HTMLElements with value property were being misinterpreted as Attr by XPath selection.

Fixed in 4eb63352.