Skip to content

Commit

Permalink
Rollup merge of #87154 - GuillaumeGomez:rev-attr-a, r=JohnTitor
Browse files Browse the repository at this point in the history
Fix misuse of rev attribute on <a> tag

The `rev` attribute is supposed to talk about "ownership" as far as I could found out. This attribute seems not very well defined in the HTML spec and its usage in rustdoc is suboptimal.

It was found out in #87149.

r? `@JohnTitor`
  • Loading branch information
JohnTitor authored Jul 15, 2021
2 parents 20b363c + 9bab94f commit 262a4f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustdoc/html/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,7 @@ impl<'a, I: Iterator<Item = SpannedEvent<'a>>> Iterator for Footnotes<'a, I> {
is_paragraph = true;
}
html::push_html(&mut ret, content.into_iter());
write!(ret, "&nbsp;<a href=\"#fnref{}\" rev=\"footnote\">↩</a>", id)
.unwrap();
write!(ret, "&nbsp;<a href=\"#fnref{}\">↩</a>", id).unwrap();
if is_paragraph {
ret.push_str("</p>");
}
Expand Down

0 comments on commit 262a4f9

Please sign in to comment.