-
Notifications
You must be signed in to change notification settings - Fork 28
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
include img alt text in photo property #83
Comments
friendly ping! cc @kylewm since he's worked on mf2py before too. |
now tracked (also? instead?) in kartikprabhu#56. |
hey @kartikprabhu any chance of getting this into the upcoming release? |
unlikely. Haven't even started to code this up yet; also hugely breaking change and not in spec yet. |
Would it make sense to have feature flags for things like this, so consumers could opt-in to them at first, and them being switched on by default later? |
We've done some feature flag stuff in the PHP parser to selectively enable new/experimental features. |
Should implied photo also have the cc: @snarfed Example: <article class="h-entry">
<span class="p-name">name</span>
<img src="/photo.jpg" alt="alt" />
</article> |
one drawback of the current mf2 spec is that img alt text is lost when a higher priority name property is provided, e.g.
p-name
. microformats/microformats2-parsing#2 proposes preserving alt text in e.g. the photo property by making it a composite object with a newalt
field when alt text is available.this is currently blocking a bridgy feature request, snarfed/bridgy#756, so i'd love to see it added to mf2py!
example: this HTML:
would parse to this mf2:
The text was updated successfully, but these errors were encountered: