void () { myFixture.enableInspections(new XmlDefaultAttributeValueInspection()); myFixture.configureByText(HtmlFileType.INSTANCE, """ <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <form action="index.php"> <input type="hidden" name="name_1" value="val_1"> <input type="hidden" name="name_2" value="val_2"> <button type="button">Proper js button</button> <button type="submit">Proper submit button</button> <button>Behave as submit when missing type="button"</button> </form> </body> </html> """); myFixture.checkHighlighting(); }