Test the basics of the pseudo class :invalid with the <form> element. This test creates the test DOM with JavaScript.