Skip to content

Commit 8310def

Browse files
committed
HTML API: Fix test assertion and add test case.
[62595] introduced a test assertion for incorrect behavior. Correct the assertion and add another case. Developed in WordPress#12367. Props dmsnell. See #65372. Follow-up to [62595]. git-svn-id: https://develop.svn.wordpress.org/trunk@62598 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9a51f9e commit 8310def

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public static function data_has_self_closing_flag() {
114114
'Self-closing flag after attribute' => array( '<div id=test />', true ),
115115
'Slash inside unquoted attribute value' => array( '<div id=test/>', false ),
116116
'Slash only unquoted attribute value' => array( '<div attr=/>', false ),
117-
'Attribute "=" with value ""' => array( '<div =/>', false ),
117+
'Attribute "=" with value ""' => array( '<div =/>', true ),
118+
'Attribute "=" with value "/"' => array( '<div ==/>', false ),
118119
'Self-closing flag after quoted attribute' => array( '<div id="test"/>', true ),
119120
'Self-closing flag after boolean attribute' => array( '<div enabled/>', true ),
120121
'Ignored "/" and whitespace' => array( '<div / >', false ),

0 commit comments

Comments
 (0)