fixed issue in HTML grammar
more test cases