w3c / manifest-app-info

Web App Manifest - Application Information
https://w3c.github.io/manifest-app-info/
Other
27 stars 14 forks source link

Strip out HTML from description etc #28

Open kenchris opened 3 years ago

kenchris commented 3 years ago

Looking at Google Play, it has gone away with formatting (they used to allow a subset of HTML) but fully support unicode, which means that you can use emoji and even emulate bold if you really want to.

There is of course the fear that some future User Agent might render HTML, so it might make sense to specify that the UA should strip out the HTML tags.

tomayac commented 3 years ago

emulate bold if you really want to.

The spec should discourage this. It's a huge pain for screen reader users and definitely not 𝗙𝗨𝗑 to listen to. Try it on macOS:

Screen Shot 2021-02-26 at 09 03 26

There is of course the fear that some future User Agent might render HTML, so it might make sense to specify that the UA should strip out the HTML tags.

+1.

aarongustafson commented 3 years ago

Oh @tomayac πŸ˜…

aarongustafson commented 3 years ago

I think description should remain text only. I do think there might be some potential in having a separate description_html member that could allow for limited phrase-level formatting. For example:

I’d go so far as to say basic flow-level semantics could also be useful, specifically

The only reason I include these is that reading bullets (or asterisks) and line breaks is just as annoying.

Beyond that, however, I think it’s too open to abuse. Implementors would be free to choose whichever and we can develop specific guidance for tag-stripping.