Problem with comments in tags

Hello,

There is a problem when there is some comments in tags. I wrote a test and make a pull request to reproduce the problem.

````
<div <!-- HTML COMMENT --> class="one-class"></div>
````