Skip to content

Commit cf42da8

Browse files
committed
Include correctly encoded HTML class name "&" initially
1 parent 2c8756b commit cf42da8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/phpunit/tests/html-api/wpHtmlTagProcessor.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,12 +3032,9 @@ public static function data_updating_attributes_in_malformed_html() {
30323032
* @ticket 64340
30333033
*/
30343034
public function test_class_changes_produce_correct_html() {
3035-
$processor = new WP_HTML_Tag_Processor( '<div>' );
3035+
$processor = new WP_HTML_Tag_Processor( '<div class="&amp;">' );
30363036
$processor->next_tag();
30373037

3038-
$processor->add_class( '&' );
3039-
$processor->get_updated_html();
3040-
30413038
$processor->add_class( '"' );
30423039
$processor->get_updated_html();
30433040

0 commit comments

Comments
 (0)