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

Parse srcset and return different image URLs (and do the same for [video] sources?) #53

Open
janboddez opened this issue Aug 23, 2021 · 3 comments

Comments

@janboddez
Copy link

Kind of brought this up (over here, wrongly) before, but I was curious if it would be possible to eventually include more in photo or video than what's in a u-photo or u-video's src.

Some video tags contain multiple sources (for browsers to pick and choose the one they best support). Same (well, sort of) with img/srcset, or even picture/source/srcset.

If video or photo could be a nested array with multiple URLs (or also include the raw srcset attribute) per "asset," apps using this library would have quite a bit more to work with.

@dshanske
Copy link
Member

@janboddez A better place would be #7

@aaronpk aaronpk transferred this issue from microformats/php-mf2 Jan 28, 2022
@Seirdy
Copy link

Seirdy commented Mar 9, 2022

@janboddez A better place would be #7

That seems to be specifically for <img> srcsets; this is a broader issue that also includes <picture> and <video> elements.

@Seirdy
Copy link

Seirdy commented Jul 8, 2022

This also applies to <audio> and <track> elements. <track> elements can be children of <audio> and <video> elements.

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

No branches or pull requests

3 participants