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

Omit elements with role=presentation from parsed values #79

Open
snarfed opened this issue Nov 1, 2024 · 0 comments
Open

Omit elements with role=presentation from parsed values #79

snarfed opened this issue Nov 1, 2024 · 0 comments

Comments

@snarfed
Copy link
Member

snarfed commented Nov 1, 2024

Right now, we evidently don't have a way to exclude individual elements inside p-name or e-content or similar properties from contributing to their parsed text value. Image captions are an example: https://snarfed.org/2024-10-30_53932 contains an image with text caption inside e-content, and the caption is purely presentational, so ideally it would be omitted from the parsed content: https://pin13.net/mf2/?url=https://snarfed.org/2024-10-30_53932

@tantek proposes that we expand the mf2 parsing rules to exclude elements with role="presentation" from parsing. Works for me.

https://chat.indieweb.org/microformats/2024-11-01#t1730496257670000

@snarfed snarfed changed the title Omit elements with role=presentation from p-*/e-* property values Omit elements with role=presentation from parsed values Nov 1, 2024
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

1 participant