You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/phpunit/tests/html-api/wpHtmlProcessorSemanticRules.php
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -376,4 +376,33 @@ public function test_in_body_any_other_end_tag_with_unclosed_non_special_element
376
376
$this->assertSame( 'DIV', $p->get_tag(), "Expected to find DIV element, but found {$p->get_tag()} instead." );
377
377
$this->assertSame( array( 'HTML', 'BODY', 'DIV', 'DIV' ), $p->get_breadcrumbs(), 'Failed to produce expected DOM nesting: SPAN should be closed and DIV should be its sibling.' );
378
378
}
379
+
380
+
/**
381
+
* Verifies that when "in body" and encountering a br close tag `</br …>`:
382
+
*
383
+
* > An end tag whose tag name is "br"
384
+
* > Parse error. Drop the attributes from the token, and act as described in the next entry;
385
+
* > i.e. act as if this was a "br" start tag token with no attributes, rather than the end
0 commit comments