You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Used more meaningful tags in the documentation.
2. method names with "URN" in them have been camel-cased to use "Urn" instead.
3. A list of resources and a changelog has been added to the README.
Copy file name to clipboardExpand all lines: about-uris.html
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -50,16 +50,16 @@ <h2>Understanding URIs</h2>
50
50
</p>
51
51
52
52
<p>
53
-
URNs <i>name</i> a resource.
53
+
URNs <em>name</em> a resource.
54
54
They are (supposed to) designate a globally unique, permanent identifier for that resource.
55
-
For example, the URN <code>urn:isbn:0201896834</code> uniquely identifies Volume 1 of Donald Knuth's <i>The Art of Computer Porgramming</i>.
55
+
For example, the URN <code>urn:isbn:0201896834</code> uniquely identifies Volume 1 of Donald Knuth's <em>The Art of Computer Porgramming</em>.
56
56
Even if that book goes out of print, that URN will continue to identify that particular book in that particular printing.
57
-
While the term "URN" <i>technically</i> refers to a specific URI scheme laid out by <ahref="http://tools.ietf.org/html/rfc2141">RFC 2141</a>,
57
+
While the term "URN" <em>technically</em> refers to a specific URI scheme laid out by <ahref="http://tools.ietf.org/html/rfc2141">RFC 2141</a>,
58
58
the previously-mentioned RFC 3986 indicates that in common usage "URN" refers to any kind of URI that identifies a resource.
59
59
</p>
60
60
61
61
<p>
62
-
URLs <i>locate</i> a resource.
62
+
URLs <em>locate</em> a resource.
63
63
They designate a protocol to use when looking up the resource and provide an "address" for finding the resource within that scheme.
64
64
For example, the URL <code><ahref="http://tools.ietf.org/html/rfc3986">http://tools.ietf.org/html/rfc3986</a></code> tells the consumer (most likely a web browser)
65
65
to use the HTTP protocol to access whatever site is found at the <code>/html/rfc3986</code> path of <code>tools.ietf.org</code>.
@@ -71,17 +71,16 @@ <h2>Understanding URIs</h2>
71
71
<h2>URLs and URNs in URI.js</h2>
72
72
73
73
<p>
74
-
The distinction between URLs and URNs is one of semantics.
74
+
The distinction between URLs and URNs is one of <strong>semantics</strong>.
75
75
In principle, it is impossible to tell, on a purely syntactical level, whether a given URI is a URN or a URL without knowing more about its scheme.
76
-
Practically speaking, however, URIS that look like HTTP URLs (scheme is followed by a colon and two slashes, URI has an authority component, and paths are delimited by slashes) tend to be URLs,
76
+
Practically speaking, however, URIs that look like HTTP URLs (scheme is followed by a colon and two slashes, URI has an authority component, and paths are delimited by slashes) tend to be URLs,
77
77
and URIs that look like RFC 2141 URNs (scheme is followed by a colon, no authority component, and paths are delimited by colons) tend to be URNs (in the broad sense of "URIs that name").
78
78
</p>
79
79
80
80
<p>
81
-
So, for the purposes of URI.js, the distinction between URLs and URNs is treated as one of syntax.
82
-
The main functional differences between the two are that
83
-
1) URNs will not have an authority element and
84
-
2) when breaking the path of the URI into segments, the colon will be used as the delimiter rather than the slash.
81
+
So, for the purposes of URI.js, the distinction between URLs and URNs is treated as one of <strong>syntax</strong>.
82
+
The main functional differences between the two are that (1) URNs will not have an authority element and
83
+
(2) when breaking the path of the URI into segments, the colon will be used as the delimiter rather than the slash.
85
84
The most surprising result of this is that <code>mailto:</code> URLs will be considered by URI.js to be URNs rather than URLs.
86
85
That said, the functional differences will not adversely impact the handling of those URLs.
0 commit comments