Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove link to the constants DONE and UNSENT #24535

Merged
merged 4 commits into from
Feb 19, 2023
Merged

Conversation

teoli2003
Copy link
Contributor

@teoli2003 teoli2003 commented Feb 18, 2023

We don't write separate pages for constants. Transforms the links to a simple text.

@teoli2003 teoli2003 requested a review from a team as a code owner February 18, 2023 10:53
@teoli2003 teoli2003 requested review from Elchi3 and removed request for a team February 18, 2023 10:53
@github-actions github-actions bot added the Content:WebAPI Web API docs label Feb 18, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2023

Preview URLs

(comment last updated: 2023-02-19 06:38:10)

@teoli2003 teoli2003 changed the title Remove link to DONE Remove link to the constants DONE and UNSENT Feb 18, 2023
@@ -10,7 +10,7 @@ browser-compat: api.XMLHttpRequest.abort
The **`XMLHttpRequest.abort()`** method aborts the request if
it has already been sent. When a request is aborted, its
{{domxref("XMLHttpRequest.readyState", "readyState")}} is changed to
{{domxref("XMLHttpRequest.UNSENT")}} (0) and the request's
`UNSENT` (0) and the request's
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XMLHttpRequest.UNSENT is an actual JS entity. Even if we don't have a page for it (see also: #9156, I think we should at least have a mention of it on the XMLHttpRequest landing page), we should keep the XMLHttpRequest.UNSENT qualified name.

@teoli2003
Copy link
Contributor Author

Yes, you are right, let's keep the prefix.

@teoli2003 teoli2003 requested a review from Josh-Cena February 19, 2023 06:36
Copy link
Member

@Josh-Cena Josh-Cena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's an established decision to not document constants/enums, then this LGTM.

@teoli2003
Copy link
Contributor Author

It is; we don't document them on their page. (The state machine should, directly or indirectly, be explained somehow, somewhere).

@teoli2003 teoli2003 merged commit 8e294a7 into main Feb 19, 2023
@teoli2003 teoli2003 deleted the teoli2003-patch-4 branch February 19, 2023 15:47
pmeenan pushed a commit to pmeenan/content that referenced this pull request Feb 19, 2023
* Remove link to DONE

* Remove link to UNSENT

* Reprefix the const

* Reprefix the const
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants