-
Notifications
You must be signed in to change notification settings - Fork 22.9k
Update deprecation messages for NodeFilter constants #41122
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
Conversation
This commit updates the `NodeFilter` descriptions for the deprecated/legacy flags, clarifying their grammar and intent.
Preview URLs (6 pages)(comment last updated: 2025-10-23 01:34:44) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your PR!
This table is duplicated in https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/whatToShow. I think it would be better to delete the table from TreeWalker, and update the one in TreeWalker/whatToShow.
|
I totally agree; I'll drop the duplicate table and push the changes in the next hour or so. Quick question for you — is the table also present in the Thanks for your time and feedback!! |
This capability has been removed because it makes the build system significantly more complicated. You should either copy the table (generally discouraged), or just link to it like "for more information, see xxx (anchor link to the section)". |
This is tricky. Like Josh says, no, we don't have a general mechanism for this in MDN. The way this usually gets handled in MDN is that there's a page for the interface that defines the constant values, and places that use them can link to it. See for instance We could add a page for If it were me, I think I would do one of the following:
|
|
Actually, following #38254 and #28944, we should remove the deprecation because the spec doesn't mention anything about deprecation. This table is present in six places: |
|
@wbamberg Could you take another look? Consolidated them into two tables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. I made a tiny editorial comment which you can accept if you like, but approving anyway. Thanks @nberlette and @Josh-Cena !
Co-authored-by: wbamberg <[email protected]>
Description and Motivation
This pull request makes a minor wording update to the description of several legacy constants in the
files/en-us/web/api/treewalker/index.mddocumentation.The descriptions for
NodeFilter.SHOW_ENTITY,NodeFilter.SHOW_ENTITY_REFERENCE, andNodeFilter.SHOW_NOTATIONhave been changed from "Legacy, no more usable." to "Legacy, no longer used.", clarifying their grammar and intent.Additional details
N/A
Related issues and pull requests