We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da53752 commit 0337b13Copy full SHA for 0337b13
src/wp-includes/html-api/class-wp-html-processor.php
@@ -1040,8 +1040,17 @@ public function step( $node_to_process = self::PROCESS_NEXT_NODE ): bool {
1040
$token_name = $this->get_token_name();
1041
1042
if ( self::REPROCESS_CURRENT_NODE !== $node_to_process ) {
1043
+ try {
1044
+ $bookmark_name = $this->bookmark_token();
1045
+ } catch ( Exception $e ) {
1046
+ if ( self::ERROR_EXCEEDED_MAX_BOOKMARKS === $this->last_error ) {
1047
+ return false;
1048
+ }
1049
+ throw $e;
1050
1051
+
1052
$this->state->current_token = new WP_HTML_Token(
- $this->bookmark_token(),
1053
+ $bookmark_name,
1054
$token_name,
1055
$this->has_self_closing_flag(),
1056
$this->release_internal_bookmark_on_destruct
0 commit comments