Rollup merge of #87154 - GuillaumeGomez:rev-attr-a, r=JohnTitor

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 https://github.com/rust-lang/rust/pull/87149.

r? `@JohnTitor`
This commit is contained in:
Yuki Okushi 2021-07-15 21:19:22 +09:00 committed by GitHub
commit 262a4f99c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -621,8 +621,7 @@ fn next(&mut self) -> Option<Self::Item> {
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>");
}