File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1002,6 +1002,15 @@ impl Url {
1002
1002
1003
1003
/// Return this URL’s fragment identifier, if any.
1004
1004
///
1005
+ /// A fragment is the part of the URL after the `#` symbol.
1006
+ /// The fragment is optional and, if present, contains a fragment identifier
1007
+ /// that identifies a secondary resource, such as a section heading
1008
+ /// of a document.
1009
+ ///
1010
+ /// In HTML, the fragment identifier is usually the id attribute of a an element
1011
+ /// that is scrolled to on load. Browsers typically will not send the fragment portion
1012
+ /// of a URL to the server.
1013
+ ///
1005
1014
/// **Note:** the parser did *not* percent-encode this component,
1006
1015
/// but the input may have been percent-encoded already.
1007
1016
pub fn fragment ( & self ) -> Option < & str > {
You can’t perform that action at this time.
0 commit comments