Bug in showing correct content for page with load more showing completely different article body

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
content

Research direction

Start by reproducing reader-mode extraction for the two Arab News URLs in the issue and compare which article body is selected. Trace the library's article-selection entry point to determine why pre-loaded articles cause the middle article to be chosen. Done means the top article is selected for the first URL without breaking extraction for the second.

Written by the indexing model from the issue text.

Description

has-website-testcase reader-mode-has-issues

This case is super weird as the page apparently includes a number of pre-loaded articles inside a single page however the top article is the main one followed by a separator between each following article yet the library/reader-mode picks up an article from the middle of the page to show.

https://www.arabnews.com/node/1823136/saudi-arabia
https://www.arabnews.com/node/1823431/sport

Dominant language
JavaScript
Stars
11.5k
Forks
732
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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.

More from mozilla/readability

All issues in mozilla/readability

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.