Skip to content

rustdoc: replace DIV inside H1 with SPAN. #17529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/librustdoc/html/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ impl<'a> Item<'a> {
impl<'a> fmt::Show for Item<'a> {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
// Write the breadcrumb trail header for the top
try!(write!(fmt, "\n<h1 class='fqn'><div class='in-band'>"));
try!(write!(fmt, "\n<h1 class='fqn'><span class='in-band'>"));
match self.item.inner {
clean::ModuleItem(ref m) => if m.is_crate {
try!(write!(fmt, "Crate "));
Expand Down Expand Up @@ -1337,8 +1337,9 @@ impl<'a> fmt::Show for Item<'a> {
// Write stability level
try!(write!(fmt, "<wbr>{}", Stability(&self.item.stability)));

try!(write!(fmt, "</span>")); // in-band
// Links to out-of-band information, i.e. src and stability dashboard
try!(write!(fmt, "</div><div class='out-of-band'>"));
try!(write!(fmt, "<span class='out-of-band'>"));

// Write stability dashboard link
match self.item.inner {
Expand Down Expand Up @@ -1370,7 +1371,7 @@ impl<'a> fmt::Show for Item<'a> {
}
}

try!(write!(fmt, "</div>"));
try!(write!(fmt, "</span>")); // out-of-band

try!(write!(fmt, "</h1>\n"));

Expand Down