Improve test for void tags set by innerHTML