File tree Expand file tree Collapse file tree
owasp-java-html-sanitizer/src/test/java/org/owasp/html Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .owasp .html ;
22
3- import org .junit .Test ;
4- import static org .junit .Assert .assertEquals ;
3+ import org .junit .jupiter .api .Test ;
54
6- public class OptgroupBugTest {
5+ import static org .junit .jupiter .api .Assertions .assertEquals ;
6+
7+ class OptgroupBugTest {
78
89 /**
910 * Test that optgroup elements inside select are not corrupted with extra select tags.
@@ -12,7 +13,7 @@ public class OptgroupBugTest {
1213 * After fix: <select><optgroup><option></option></optgroup></select>
1314 */
1415 @ Test
15- public void testOptgroupInsideSelectDoesNotAddExtraSelectTags () {
16+ void testOptgroupInsideSelectDoesNotAddExtraSelectTags () {
1617 PolicyFactory factory = new HtmlPolicyBuilder ()
1718 .allowElements ("select" , "optgroup" , "option" )
1819 .allowAttributes ("label" ).globally ()
You can’t perform that action at this time.
0 commit comments