Respect example domains #450
-
Example domainsRFC 6761 Specifies reserved domain for Example usage in documentation. https://datatracker.ietf.org/doc/html/rfc6761#section-6.5
MDN content should respect these usage in their document, sample code, sequence images etc. WhyThere are tons of documents in MDN which uses Real Domain as example usage. for example.
in this case, imagine if your sample code uses some real domain like this, and document user try it by themself with copy-paste. Traffic can be happen to the server of domain owner. If the tons of user doing it at same time, it can be a kind of small DOS attack. Example domains are safe for documentation use. Actually And also, if you require multiple domains for describing OIDC dance sequence, 3rd Party Script diagram etc etc. ProposalThere are some usage for real domains exists. They exists before yari and I think reviewer blocking them now. And I don't know current linter for content blocks real domain usage, but it's not, better to have it (I don't know linter has such features thought). |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Thanks a lot for raising this one. There is a preference to use the domains listed in the RFC and the efforts to change those in the examples have been ad-hoc such as the following: And when files have been changed and there is an opportunity to update existing examples, we try to do this in parallel. It would be great to track remaining uses that occur inside code blocks and change those remaining.
That's a good point. Sometimes we may want it to point to real domains as there are legitimate reasons to do this, such as towards domains operated by MDN. Still, having an automated check in place would be great. |
Beta Was this translation helpful? Give feedback.
-
#2709 was a work align with this issue, but it's been closed by @estelle . |
Beta Was this translation helpful? Give feedback.
-
When the point of a page is to explain how to use an email, domain names, or components of a URL, we should prefer to use the Yes, please update any email address to an example.com email address. We don't want some random made-up domain getting tons of spam. That said, when updating email addresses to reflect the example.com domain, make sure the start of those email addresses are not English-only, male-only, etc. names; for example, include names from all the world's regions, not just When it comes to domain names, we can and must include diverse domains in our examples. To teach a topic, we need multiple different examples. We also need examples to be as fun, engaging, and inclusive as possible. When teaching how to parse a domain name, same-origin-policies, XSS, etc., we can and often should use example.com,. However, when explaining how to sort a table, we can and should make the example interesting, inclusive, etc. Using the Mexican women's soccer team would be a great example, with a link to the resource for the team. This example is likely preferable to one that conforms to RFC 6761 for the sake of conformance. The suggested edits must improve on the original for a PR to be approved. #2709 was closed without merging as the original content was better. Please don't change all the examples pointing to firefox.com, mozilla.org, wikipedia.com, etc., to point to example.com. Changing mozilla.org or wikipedia.org to example.com just for the sake of conforming to RFC 6761 is not, in many cases, an improvement. |
Beta Was this translation helpful? Give feedback.
-
In yesterday's OWD writing-docs meeting, we discussed this one, and agreed that @estelle's take on this makes sense. It makes sense to use example.com when explaining how to use an email, domain names, or components of a URL, but this should not be done everywhere. To do that would make MDN less inclusive and interesting. Also, any changes to use example.com should be done as we encounter them. There is no need to spend lots of time hunting these instances down. There is more important work to be done. |
Beta Was this translation helpful? Give feedback.
In yesterday's OWD writing-docs meeting, we discussed this one, and agreed that @estelle's take on this makes sense. It makes sense to use example.com when explaining how to use an email, domain names, or components of a URL, but this should not be done everywhere. To do that would make MDN less inclusive and interesting.
Also, any changes to use example.com should be done as we encounter them. There is no need to spend lots of time hunting these instances down. There is more important work to be done.