Skip to content

Conversation

@ORelio
Copy link
Contributor

@ORelio ORelio commented Jul 31, 2023

In CssSelectorBridge, when using parent element as URL selector (making truncated feed from home page), the user-provided selector may match DOM elements that don't have links inside (<a> elements).

This Pull Request adds handling for that situation:

  • If some matching elements don't have links -> ignore them and proceed (suboptimal selector?)
  • But if all matching elements don't have links -> treat as an error and abort (invalid selector)

Fixes #3573 (comment)

When using parent element as URL selector:

* If no <a> inside some elements, ignore them
* If no <a> inside ALL elements, report an error

Fixes #3573 #issuecomment-1656943318
@github-actions
Copy link

Pull request artifacts

file last change
CssSelectorBridge-current-context1 2023-07-31, 15:48:48
CssSelectorBridge-pr-context1 2023-07-31, 15:48:48

@dvikan dvikan merged commit f8fd05f into RSS-Bridge:master Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants