Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[html] improve srcset attribute parsing #3769

Merged
merged 1 commit into from
Oct 18, 2023
Merged

[html] improve srcset attribute parsing #3769

merged 1 commit into from
Oct 18, 2023

Conversation

ORelio
Copy link
Contributor

@ORelio ORelio commented Oct 18, 2023

In convertLazyLoading:
Fix commas not being used for splitting, resulting in broken src URL in some cases like this one:

srcset="url1.jpg, url2.jpg 2x"

would give:

src="url1.jpg,"

This pull request improves parsing of srcset to fix this issue.

Fix commas not being used for splitting, resulting in broken src URL in some cases:
srcset="url1.jpg, url2.jpg 2x" would give src="url1.jpg,"
lib/html.php Show resolved Hide resolved
@dvikan dvikan merged commit 7533ef1 into RSS-Bridge:master Oct 18, 2023
@ORelio ORelio deleted the patch-2 branch October 20, 2023 10:43
dvikan pushed a commit that referenced this pull request Oct 20, 2023
Add support for data-orig-file tag in convertLazyLoading()
Remplace end() with array_key_last() as discussed in #3769
Fix typo in comment
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