We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eebe4f5 commit 5ef9d63Copy full SHA for 5ef9d63
src/index.ts
@@ -98,7 +98,14 @@ function emitDom() {
98
for (const [key, value] of Object.entries(descriptions)) {
99
const target = idl.interfaces!.interface[key] || namespaces[key];
100
if (target) {
101
- target.comment = transformVerbosity(key, value);
+ if (value.startsWith("REDIRECT")) {
102
+ // When an MDN article for an interface redirects to a different one,
103
+ // it implies the interface was renamed in the specification and
104
+ // its old name should be deprecated.
105
+ markAsDeprecated(target);
106
+ } else {
107
+ target.comment = transformVerbosity(key, value);
108
+ }
109
}
110
111
return idl;
0 commit comments