telerik/razor-converter — pull request #8 by mmooney (2012-02-18 23:52:08+00:00)
Title: Added code to so that if a server control is a empty-element tag, it does not treat the next element as a child

When parsing things with the runat="server" attribute, the assumption was that it was an opening tag, so everything following was it's child, until the end tag was reached.

However, if the tag was an empty-element tag (e.g. <asp:Label runat="server" ID="whatever"/>), it would still consider it a opening tag and treat the subsequent element as children.

I added a check to see if the tag ended with "/>", and if so don't reset the parentNode, and then the subsequent elements will be treated as siblings instead of children