Replies: 4 comments 7 replies
-
Whatever option is chosen, we should start by updating macros and things using slugs to derivate page types to use page types instead. Then, this will be a decision only about the best slug. |
Beta Was this translation helpful? Give feedback.
-
I agree with the suggestion over in mdn/browser-compat-data#16613 (comment) that we add But since adding But if adding So if we’re not going to do the |
Beta Was this translation helpful? Give feedback.
-
Yes, to be clear I mean this:
…but it’s not something I’m going to lie down in the road about. I recognize that it’d mean changing/redirecting the URLs for all the thousands of existing instance methods, and I can understand why others might not want to do that — and would prefer instead:
…because that’d mean the URLs for all the instance methods stay as they are now, and we instead change only three dozen or so URLs for the static methods — to have |
Beta Was this translation helpful? Give feedback.
-
FWIW the slugs are already long enough and I don't want it to grow longer in any way. Static and instance methods with the same name are unfortunate but they are very rare. IMO these special cases can be handled individually—for example, There's only one such instance in JS— |
Beta Was this translation helpful? Give feedback.
-
This is part of openwebdocs/project#104, which asks for MDN to be able to document static methods and properties that have the same name as a non-static method/property. This is now a reality with things like
Response.json()
: mdn/content#21550.As part of this we need distinct slugs for static and non-static members.
The easiest option is probably adding a
_static
suffix to the approx 37 pages on MDN that document static methods or properties.A maybe better but much harder alternative would be to have a structure like:
...but this would involve ~5000 redirects.
Either option (and probably all options) would break various macros and things that expect slugs to be a certain way. But this probably wouldn't be too bad.
Beta Was this translation helpful? Give feedback.
All reactions