HTML API: Recognize all uppercase tag names in tag processor #7897
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ensure uppercase tag names are matched correctly by the tag processor.
Ticket 62522 describes an issue where a whitespace-prefixed tag was causing problems. With the help of @SantosGuillamot and @cbravobernal, this was narrowed down to an uppercase open tag name preceded by whitespace not being recognized by the tag processor.
There was a missing "D" in the character list used by
strspnto find tag openers, causing tags starting withDto be skipped by the tag processor in some circumstances.This only appears in rare cases because the tag name must appear in the correct position (preceded by whitespace) and must start with an uppercase
D. Casing is not relevant for tag names, and most tag names are lowercase in the wild.Trac ticket: https://core.trac.wordpress.org/ticket/62522
Follow up [58613]
Closes #7893 (supersedes).
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.