I have a component that creates a set of text like this in the innerHTML:
fourty two<br><br><input value="Select" type="button">
upon setting the innerHTML, the browser will sometimes parse this text, producing:
fourty two<br><br><input type="button" value="Select">
This behavior seems browser dependent, because I can get my tests to run in FFx, and then they will fail in safari, because of the order of the attributes.
Is there a way I can parse the HTML into some DOM-like form, and then print it out before the compare so that I can expect a consistent ordering of html attributes?