Skip to content

Commit 262a4f9

Browse files
authored
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 #87149. r? `@JohnTitor`
2 parents 20b363c + 9bab94f commit 262a4f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustdoc/html/markdown.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,7 @@ impl<'a, I: Iterator<Item = SpannedEvent<'a>>> Iterator for Footnotes<'a, I> {
621621
is_paragraph = true;
622622
}
623623
html::push_html(&mut ret, content.into_iter());
624-
write!(ret, "&nbsp;<a href=\"#fnref{}\" rev=\"footnote\">↩</a>", id)
625-
.unwrap();
624+
write!(ret, "&nbsp;<a href=\"#fnref{}\">↩</a>", id).unwrap();
626625
if is_paragraph {
627626
ret.push_str("</p>");
628627
}

0 commit comments

Comments
 (0)