rustdoc: change aliases attribute to data-aliases
The "aliases" attribute is not listed [on MDN], so it sounds like it's rustdoc-specific. We don't want to conflict with any attributes that are added to the spec in the future. [on MDN]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements
This commit is contained in:
parent
20040fa332
commit
153eb72d65
2 changed files with 2 additions and 2 deletions
|
@ -1546,7 +1546,7 @@ fn render_impl(
|
|||
let aliases = if aliases.is_empty() {
|
||||
String::new()
|
||||
} else {
|
||||
format!(" aliases=\"{}\"", aliases.join(","))
|
||||
format!(" data-aliases=\"{}\"", aliases.join(","))
|
||||
};
|
||||
if let Some(use_absolute) = use_absolute {
|
||||
write!(
|
||||
|
|
|
@ -834,7 +834,7 @@ function hideThemeButtonState() {
|
|||
// (like "Send" and "Sync").
|
||||
var inlined_types = new Set();
|
||||
onEachLazy(synthetic_implementors.getElementsByClassName("impl"), function(el) {
|
||||
var aliases = el.getAttribute("aliases");
|
||||
var aliases = el.getAttribute("data-aliases");
|
||||
if (!aliases) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue