-
Notifications
You must be signed in to change notification settings - Fork 3k
HTML API: Make reset insertion mode method private #7194
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
HTML API: Make reset insertion mode method private #7194
Conversation
This was intended to be an internal function. It implements an algorithm for HTML tree construction. It is not intended to be part of the public interface and has not been exposed in a release.
The algorithm is described and referred to in the specification as "reset the insertion mode appropriately." Use a name that accurately reflects the specification.
8a5fc5d
to
4a13856
Compare
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN:
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
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 is a good change. Also on private
vs. protected
- I agree that private
is appropriate since there's no reason for a subclass to alter it - that would only create problems in the parsing.
The algorithm is described and referred to in the specification as "reset the insertion mode appropriately." This patch renames it to more accurately reflect the specification, and it turns the public method private. As an internal algorithm from the HTML specification it should not be open to extension. Developed in #7194 Discussed in https://core.trac.wordpress.org/ticket/61549 Follow-up to [28656]. Props jonsurrell. See #61549. git-svn-id: https://develop.svn.wordpress.org/trunk@58898 602fd350-edb4-49c9-b593-d223f7449a82
The algorithm is described and referred to in the specification as "reset the insertion mode appropriately." This patch renames it to more accurately reflect the specification, and it turns the public method private. As an internal algorithm from the HTML specification it should not be open to extension. Developed in WordPress/wordpress-develop#7194 Discussed in https://core.trac.wordpress.org/ticket/61549 Follow-up to [28656]. Props jonsurrell. See #61549. Built from https://develop.svn.wordpress.org/trunk@58898 git-svn-id: http://core.svn.wordpress.org/trunk@58294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The algorithm is described and referred to in the specification as "reset the insertion mode appropriately." This patch renames it to more accurately reflect the specification, and it turns the public method private. As an internal algorithm from the HTML specification it should not be open to extension. Developed in WordPress/wordpress-develop#7194 Discussed in https://core.trac.wordpress.org/ticket/61549 Follow-up to [28656]. Props jonsurrell. See #61549. Built from https://develop.svn.wordpress.org/trunk@58898 git-svn-id: https://core.svn.wordpress.org/trunk@58294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
The algorithm is described and referred to in the specification as "reset the insertion mode appropriately." This patch renames it to more accurately reflect the specification, and it turns the public method private. As an internal algorithm from the HTML specification it should not be open to extension. Developed in WordPress#7194 Discussed in https://core.trac.wordpress.org/ticket/61549 Follow-up to [28656]. Props jonsurrell. See #61549. git-svn-id: https://develop.svn.wordpress.org/trunk@58898 602fd350-edb4-49c9-b593-d223f7449a82
reset_insertion_mode
toreset_insertion_mode_appropriately
to align with how it is referenced in the specification.This method was introduced in the current release cycle (for WordPress 6.7) so it has never been part of the public interface in a release and changing its visibility is not a breaking change.
The
reset_insertion_mode
method was introduced in [58656]. The method's visibility was set topublic
, but it was never intended to be part of the public interface.Trac ticket: https://core.trac.wordpress.org/ticket/61549
Follow-up to https://core.trac.wordpress.org/ticket/61549
Follow-up to [58656]
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.