Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
957a3e8
First sketching on templates
sirreal Dec 23, 2025
afc63eb
DROPME: Collect examples
sirreal Feb 2, 2026
75ecbe7
Introduce test suite based on existing examples
sirreal Feb 2, 2026
52836b9
yield + nowdoc
sirreal Feb 2, 2026
07a42d5
lints
sirreal Feb 2, 2026
336524f
test tweaks
sirreal Feb 2, 2026
c1a9050
Fix numeric array indexes
sirreal Feb 3, 2026
978d835
Add test for HTML that could produce a tag after modification
sirreal Feb 3, 2026
81f731e
Add test to prevent attribute mis-interpretation after replacement
sirreal Feb 3, 2026
cdedfb7
Move serialize_token to tag processor class (for normalization of tex…
sirreal Feb 3, 2026
e8f420c
Add attribute behavior testing
sirreal Feb 3, 2026
75cf458
working proof-of-concept
sirreal Feb 3, 2026
bf7f038
class cleanup and lints
sirreal Feb 4, 2026
df9deab
Add message on disallowed type
sirreal Feb 4, 2026
5a9cb43
Cleanup test + lints
sirreal Feb 4, 2026
f30d721
Add multiple template tests
sirreal Feb 4, 2026
63fa332
Improve test names and specificity
sirreal Feb 4, 2026
a451ed4
Improve test structure and names
sirreal Feb 4, 2026
48ff319
Refactor WP_HTML_Template to use composition over inheritance
sirreal Feb 4, 2026
e04d7c0
Remove unused preg_attribute_replace_callback method from WP_HTML_Tem…
sirreal Feb 4, 2026
65f62a9
Add more tests
sirreal Feb 4, 2026
5d58abf
lints
sirreal Feb 4, 2026
d57d0c4
Rework interface
sirreal Feb 4, 2026
bd8740e
Update tests for new API
sirreal Feb 4, 2026
4eaf11d
Add placeholder compilation skeleton to WP_HTML_Template
sirreal Feb 4, 2026
8229efa
Implement text placeholder extraction in compile()
sirreal Feb 4, 2026
ca24391
Add attribute placeholder extraction with context promotion
sirreal Feb 4, 2026
49978d4
Add validation warnings to bind()
sirreal Feb 4, 2026
d56435e
Refactor render() to use compiled placeholder data
sirreal Feb 4, 2026
2b4bf1a
Fix attribute text escaping and add trailing segment handling
sirreal Feb 4, 2026
f5f272d
Revert "Move serialize_token to tag processor class (for normalizatio…
sirreal Feb 5, 2026
11ab281
Switch to use HTML Processor
sirreal Feb 5, 2026
06a28c6
Use assertEqualHTML in tests
sirreal Feb 6, 2026
5862ee4
Add newline in PRE tests
sirreal Feb 6, 2026
0bda31b
Update PRE leading newline test
sirreal Feb 6, 2026
d99bb22
Add more test cases
sirreal Feb 6, 2026
b89a3ff
Remove special handling for PRE, LISTING tags
sirreal Feb 6, 2026
2fcc211
Test tweaks and notes
sirreal Feb 6, 2026
3e2757f
HTML API: Add $edits and $placeholder_names properties to WP_HTML_Tem…
sirreal Feb 6, 2026
45c01dd
HTML API: Populate $edits with text normalizations during compile
sirreal Feb 6, 2026
b316285
HTML API: Populate $edits with text placeholders during compile
sirreal Feb 6, 2026
9d15dfa
HTML API: Pre-compute attribute escapes at compile time
sirreal Feb 6, 2026
75f0d95
HTML API: Populate $edits with attribute placeholders during compile
sirreal Feb 6, 2026
18c925c
HTML API: Refactor render() to use unified $edits array
sirreal Feb 6, 2026
13323b3
HTML API: Refactor bind() to use $placeholder_names for validation
sirreal Feb 6, 2026
7747f6d
HTML API: Remove legacy $text_normalizations and $attr_escapes arrays
sirreal Feb 6, 2026
fc75174
HTML API: Add TODO for future $compiled removal
sirreal Feb 6, 2026
12b1f63
HTML API: Fix code style issues in WP_HTML_Template
sirreal Feb 6, 2026
8160d60
HTML API: Remove redundant $compiled variable from WP_HTML_Template
sirreal Feb 6, 2026
03e6104
lints
sirreal Feb 9, 2026
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
2 changes: 1 addition & 1 deletion src/wp-includes/html-api/class-wp-html-tag-processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ class WP_HTML_Tag_Processor {
* @since 6.2.0
* @var WP_HTML_Attribute_Token[]
*/
private $attributes = array();
protected $attributes = array();

/**
* Tracks spans of duplicate attributes on a given tag, used for removing
Expand Down
Loading
Loading