Added more tests for InputHTML and fixed bugs.