microformats / microformats2-parsing

For collecting and handling issues with the microformats2 parsing specification: http://microformats.org/wiki/microformats2-parsing
14 stars 6 forks source link

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

Open janboddez opened 3 years ago

janboddez commented 3 years ago

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 commented 3 years ago

@janboddez A better place would be https://github.com/microformats/microformats2-parsing/issues/7

Seirdy commented 2 years ago

@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 commented 2 years ago

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