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/wpHtmlTagProcessor.php
+62Lines changed: 62 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -311,6 +311,68 @@ public function test_set_attribute_is_case_insensitive() {
311
311
$this->assertSame( '<div data-enabled="abc">Test</div>', $processor->get_updated_html(), 'A case-insensitive set_attribute call did not update the existing attribute' );
312
312
}
313
313
314
+
/**
315
+
* Ensures that set_attribute doesn’t allow setting an
316
+
* attribute with an invalid name and thus break syntax.
0 commit comments