Fix test to handle different input tag rendering because of different doctypes