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

IRIs or URIs? #32

Closed
mnot opened this issue Nov 25, 2013 · 7 comments
Closed

IRIs or URIs? #32

mnot opened this issue Nov 25, 2013 · 7 comments

Comments

@mnot
Copy link
Owner

mnot commented Nov 25, 2013

5988 specifies links in terms of IRIs. Is this the right thing, or should they be URIs?

@masinter
Copy link

http://tools.ietf.org/html/draft-ietf-httpbis-p1-messaging-17#section-3.2.1
and all before: " Newly defined header fields SHOULD limit their field values to US-ASCII octets."

An IRI that isn't a URI contains non-ASCII characters. "Link:" is a (relatively) new header field, the octets should be recommended at least to be URIs, not IRIs.

@mnot
Copy link
Owner Author

mnot commented Nov 25, 2013

Right. The counter-argument here is that links are conveyed in a lot more than HTTP headers; e.g., in HTML and Atom. The question is whether those formats should convert from IRI to URI before considering them RFC5988 links.

@jasnell
Copy link
Contributor

jasnell commented Nov 25, 2013

-1 to changing to URI only. I have implementations written to assume IRI. I see no justification for adding this limitation.

@masinter
Copy link

Fine..

@mnot
Copy link
Owner Author

mnot commented Nov 25, 2013

Fundamentally, this issue is the time-worn URI/IRI issue -- is there any semantic difference between a IRI and the URI it can be transformed into?

AIUI current IETF thinking is that IRIs are a "presentation artefact" -- i.e., they belong in UIs, not as protocol artefacts (keeping in mind that markup languages like HTML are considered UIs for authors).

Not sure if we'll be able to resolve this until there's a definitive answer elsewhere, though.

@mnot
Copy link
Owner Author

mnot commented Oct 28, 2014

I feel like this might be resolved with a note in the Internationalisation Considerations and/or Extension Relation Types sections to the effect of "If you use an IRI for an extension relation type, be aware that it may cause problems."

For targets and contexts, we can't disallow IRIs; we can note that they need to be handled carefully in some systems.

@mnot
Copy link
Owner Author

mnot commented Oct 16, 2015

Huh. Internationalisation Considerations in 5988 already says:

Relation types are defined as URIs, not IRIs, to aid in their comparison. It is not expected that they will be displayed to end users.

So, I think we can close this one.

@mnot mnot closed this as completed Oct 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants