url
url copied to clipboard
Enriched rendering of URLs
The rendering section leaves unmentioned and hence unspecified where this rendering might and will occur. A frequent place is the address bar in web browsers or file managers. The prose currently suggests:
- Show the serialized URL.
- Don't show credentials for spoofing protection. (Obviously does not apply to email addresses etc.)
- Show characters instead of their codes for usability.
- Use LTR embedding.
- Only show host if necessary (which it is in web browsers).
Some applications transform or style the plain URL in more ways or deviate from the recommendations paraphrased above:
- Show codes instead of characters if they don't come all from the same script, favoring spoof protection over readability.
- Hide the scheme (e.g.
file:) or emphasize whether it's using encryption (httpvs.https). - Use friendly, localized short names (e.g. Apple Finder, Windows Explorer; email addresses).
- Make path segments interactive navigation elements (e.g. Windows Explorer).
- Remove frequent or redundant parts (e.g.
www.in Safari orm.in Chrome 69).
Other rich renderings can be imagined, e.g.:
- Replace ccTLDs by (emoji) flags.
- Deemphasize known public suffixes from PSL.
- Replace company names by logos (e.g. from favicons).
- Make search parameters interactive if Open Search metadata is available. Also #192 (RFC6570 templates)
- Make fragment identifier interactive based upon document content. Also #389 (fragment parameters)
In conclusion, I believe this section needs some expansion.
FWIW, 8809598ddfd1d935432c8a0cad53f13d70e24bc6 changed this section quite a bit.
I think I'm happy with this section now. What do you think @Crissov?