HTML code:
<input id="txtSizeBeforeValue" type="text" size="5" value="blabla">
<input id="txtValueBeforeSize" type="text" value="blabla" size="5">
HTML parsed code:
<input id="txtSizeBeforeValue" type="text" value="blabla" size="5">
<input id="txtValueBeforeSize" type="text" size="5" value="blabla">
Here you can see there is an issue with Firefox HTML parser, tag attributes are badly reordered with every HTML tag like input text/button, textarea, canvas…
Even if you write tag attributes like it is reordered, it is reordered again.
The problem is visible in Firebug and the HTML analyse developer tool of Firefox so it can’t be a Firebug issue.
No problem with Google Chrome since the HTML parser doesn’t reorder tag attributes.
Do you have this issue with Firefox too? On every platform?
HTML spec states that “They may appear in any order.”
here: http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.2
This is not a bug!
However you can create your own tool…