Hacker News new | ask | show | jobs
by evilpie 1335 days ago
> Type starting with x- are non-standard. x-moz- means it’s a mozilla-defined one. There seems to be no standard mime type for a URL

The standard web MIME for url(s) is text/uri-list: https://www.rfc-editor.org/rfc/rfc2483#section-5

1 comments

For those curious about how you’d find things like this: look in the media type registry at <https://www.iana.org/assignments/media-types/media-types.xht...>; the likely search terms for something like this would be “URI” and “URL”.

Still, I would agree with the original statemnt “There seems to be no standard mime type for a URL.” as text/uri-list is for a list of URLs with ␍␊ line separator and #-prefied comments. It would have been nice to have a MIME type for an individual URL with none of that, but it’s a bit late now, for best results anyway.