about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-07-15 21:19:22 +0900
committerGitHub <noreply@github.com>2021-07-15 21:19:22 +0900
commit262a4f99c107e5fd9d1a3f73778a72b7fe762cd0 (patch)
tree27eb3f1e0318318f2851443af77cd716a1260f71
parent20b363cb49d94d5719024d855f49a28af3b691a8 (diff)
parent9bab94f045e6acb9daeb2f867ad0233e986b635c (diff)
downloadrust-262a4f99c107e5fd9d1a3f73778a72b7fe762cd0.tar.gz
rust-262a4f99c107e5fd9d1a3f73778a72b7fe762cd0.zip
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`
-rw-r--r--src/librustdoc/html/markdown.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustdoc/html/markdown.rs b/src/librustdoc/html/markdown.rs
index 3b599e4997a..e21469dc9c3 100644
--- a/src/librustdoc/html/markdown.rs
+++ b/src/librustdoc/html/markdown.rs
@@ -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>");
                             }