Closed pgte closed 12 years ago
LGTM, it doesn't freak out with self closing elements right? Such as <input>
without a \
etc
Before it used the html.lastIndexOf(tag)
, which also doesn't work for self-closing tags.
Maybe create a new ticket for this?
I don't know if it's a serious issue or not, there haven't been any reports against it but it might still be worth to investigate that behavior.
The match was being made to the last found closing tag, which is wrong. Matching tag count is now performed, and an error is thrown if the tags cannot be matched.