Skip to content
Closed
Changes from all commits
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
3 changes: 2 additions & 1 deletion tests/phpunit/tests/html-api/wpHtmlTagProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public static function data_has_self_closing_flag() {
'Self-closing flag after attribute' => array( '<div id=test />', true ),
'Slash inside unquoted attribute value' => array( '<div id=test/>', false ),
'Slash only unquoted attribute value' => array( '<div attr=/>', false ),
'Attribute "=" with value ""' => array( '<div =/>', false ),
'Attribute "=" with value ""' => array( '<div =/>', true ),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this mismatched my expectation.

<div =/> has self-closing flag
<div ==/> does not have self-closing flag

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this test failure: #12319 (comment).

I missed updating the assertion when I fixed the test name in f685e06.

The test name and this version of the assertion are correct.

'Attribute "=" with value "/"' => array( '<div ==/>', false ),
'Self-closing flag after quoted attribute' => array( '<div id="test"/>', true ),
'Self-closing flag after boolean attribute' => array( '<div enabled/>', true ),
'Ignored "/" and whitespace' => array( '<div / >', false ),
Expand Down
Loading