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