Skip to content

KSES: Reimplement with Tag Processor - #13271

Draft
dmsnell wants to merge 19 commits into
WordPress:trunkfrom
dmsnell:kses/dual-with-tag-processor
Draft

KSES: Reimplement with Tag Processor#13271
dmsnell wants to merge 19 commits into
WordPress:trunkfrom
dmsnell:kses/dual-with-tag-processor

Conversation

@dmsnell

@dmsnell dmsnell commented Aug 25, 2026

Copy link
Copy Markdown
Member

Trac ticket: Core-65984

Merge after #13273, which accounts for three of the failing tests.

  • self-closing non-HTML elements
  • remove opening tag when required attributes are missing, and closing tag
  • replace C0 controls with their escapes, rather than stripping them away
  • handle incomplete parsing, including closing all open elements

@github-actions

Copy link
Copy Markdown

Test using WordPress Playground

The 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

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@dmsnell
dmsnell force-pushed the kses/dual-with-tag-processor branch 22 times, most recently from c784058 to fdc5e96 Compare August 27, 2026 17:00
@dmsnell
dmsnell force-pushed the kses/dual-with-tag-processor branch from fdc5e96 to b1b2104 Compare August 28, 2026 00:12
@dmsnell
dmsnell force-pushed the kses/dual-with-tag-processor branch from b1b2104 to 805f2d7 Compare August 28, 2026 00:27
Todo

 - [ ] Remove opening and closing tags when missing attributes.
 - [ ] Handle parsing when it bails for unsupported content.
@dmsnell
dmsnell force-pushed the kses/dual-with-tag-processor branch 3 times, most recently from bd15b3e to 38470b2 Compare August 28, 2026 04:31
@dmsnell
dmsnell force-pushed the kses/dual-with-tag-processor branch 6 times, most recently from 3200f26 to 72e0740 Compare August 28, 2026 05:37
@dmsnell
dmsnell force-pushed the kses/dual-with-tag-processor branch from 72e0740 to 8ce72fb Compare August 28, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant