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

Add WP_HTML_Processor #47573

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Rephrase a bit
  • Loading branch information
ockham committed Jan 31, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 45de52270e007f3a9266924f985f3aec0ea9f9b5
8 changes: 4 additions & 4 deletions lib/experimental/html/class-wp-html-processor.php
Original file line number Diff line number Diff line change
@@ -76,10 +76,10 @@ public function new_state() {
/**
* Find the matching closing tag for an opening tag.
*
* When called while on an open tag, move to the matching closing tag,
* respecting any in-between content, including nested tags of the same
* name. Return false when called on a closing or void tag, or if no
* matching closing tag was found.
* When called while on an open tag, traverse the HTML until we find
* the matching closing tag, respecting any in-between content, including
* nested tags of the same name. Return false when called on a closing or
* void tag, or if no matching closing tag was found.
*
* @param WP_HTML_Processor_Scan_State $state Tracking state.
* @param array|string $query Query criteria for the closing tag.