You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution of using a <span> instead of <div> worked satisfactorily for the other example.
( The side issue with the weird rendering is more about the weird double-"+", there's probably a better way of doing this, but I'm a bit short of ideas how )
…earth
Don't generate div inside header (h4/h3/h...) elements
Fixesrust-lang#60865.
According to the HTML spec, we're not supposed to put `div` elements inside heading elements (h4/h3/h...). It doesn't change the display as far as I could tell.
r? @QuietMisdreavus
Similar to #60403
For example, when one generates rustdoc for something that implements Iterator, the generated HTML is (with manual pretty-printing)
This HTML contradicts HTML spec, and causes problems when parsed by a strict parser ( such as html-tidy )
Additionally, this renders very oddly:
rustc --version #rustc 1.36.0-nightly (372be4f36 2019-05-14)
The text was updated successfully, but these errors were encountered: