Comment or Text in top of a HTML page destroys the first tag #118

Closed
irsdl opened this Issue May 31, 2012 · 1 comment

Comments

Projects
None yet
2 participants

irsdl commented May 31, 2012

There is an issue in beautifying a HTML page when it is started with a comment:

<!-- Something -->
<div id="mydiv">test</div>
<div id="mydiv2">test2</div>
...

OR

xxxx
<div id="mydiv">test</div>
<div id="mydiv2">test2</div>
...

It destroys the first tag.
This has been tested in "http://jsbeautifier.org/"

Thanks

Contributor

einars commented Feb 6, 2013

Sadly, this is a "wonfix" (or, more properly "cantfix") — the javascript parsing mode kicks in, as it can't figure out that this should be parsed as HTML.

einars closed this Feb 6, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment