Skip to content
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
Include correctly encoded HTML class name "&" initially
  • Loading branch information
sirreal committed Dec 3, 2025
commit cf42da884fa37bdb900fe6cee2219ad97730c98a
5 changes: 1 addition & 4 deletions tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -3032,12 +3032,9 @@ public static function data_updating_attributes_in_malformed_html() {
* @ticket 64340
*/
public function test_class_changes_produce_correct_html() {
$processor = new WP_HTML_Tag_Processor( '<div>' );
$processor = new WP_HTML_Tag_Processor( '<div class="&amp;">' );
$processor->next_tag();

$processor->add_class( '&' );
$processor->get_updated_html();

$processor->add_class( '"' );
$processor->get_updated_html();

Expand Down
Loading