about summary refs log tree commit diff
path: root/src/test/rustdoc/issue-53812.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-20/+0
2022-02-02Emit valid HTML from rustdocJacob Hoffman-Andrews-7/+6
Previously, tidy-html5 (`tidy`) would complain about a few things in our HTML. The main thing is that `<summary>` tags can't contain `<div>`s. That's easily fixed by changing out the `<div>`s for `<span>`s with `display: block`. However, there's also a rule that `<span>`s can't contain heading elements. `<span>` permits only "phrasing content" https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span, and `<h3>` (and friends) are "Flow content, heading content, palpable content". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements We have a wrapping `<div>` that goes around each `<h3>`/`<h4>`, etc. We turn that into a `<section>` rather than a `<span>` because `<section>` permits "flow content". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section After this change we get only three warnings from tidy, run on struct.String.html: line 6 column 10790 - Warning: trimming empty <span> line 1 column 1118 - Warning: <link> proprietary attribute "disabled" line 1 column 1193 - Warning: <link> proprietary attribute "disabled" The empty `<span>` is a known issue - there's a span in front of the search box to work around a strange Safari issue. The `<link>` attributes are the non-default stylesheets. We can probably refactor theme application to avoid using this proprietary "disabled" attribute.
2021-06-02Update rustdoc testsGuillaume Gomez-5/+5
2021-06-01Replace h3 and h4 containing invalid DOMGuillaume Gomez-5/+6
2021-04-27Update impl DOM testGuillaume Gomez-5/+5
2021-04-19rustdoc: use details tag for trait implementorsJacob Hoffman-Andrews-5/+5
This switches from JS-generated toggles to using the HTML <details> tag for expanding and collapsing entries in the "Implementors" section.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-09-16Check the remaining nodesKazuyoshi Kato-0/+4
2018-09-14Add a test to prevent regressionKazuyoshi Kato-0/+26
The way it defines implementations is unrealistic though.