Describe the bug
The about.hbs file in this repo causes invalid HTML to be generated. Specifically, it causes cargo-about generate to create multiple elements with the same ID.
To Reproduce
Steps to reproduce the behavior:
cd into a clone of the cargo-about repo.
Run cargo run -- generate --output-file test.html about.hbs
Open test.html in a text editor and inspect the results. Notice how there’s multiple elements with id="Apache-2.0".
Expected behaviortest.html should contain valid HTML. Specifically, it should not contain more than one element with the same ID.
When specified on HTML elements, the id attribute value must be unique amongst all the IDs in the element's tree and must contain at least one character.
Describe the bug The
about.hbs
file in this repo causes invalid HTML to be generated. Specifically, it causescargo-about generate
to create multiple elements with the same ID.To Reproduce Steps to reproduce the behavior:
cd
into a clone of thecargo-about
repo.cargo run -- generate --output-file test.html about.hbs
test.html
in a text editor and inspect the results. Notice how there’s multiple elements withid="Apache-2.0"
.Expected behavior
test.html
should contain valid HTML. Specifically, it should not contain more than one element with the same ID.Screenshots
Device:
Additional context Here’s the part of the HTML Standard that forbids multiple identical IDs: