I am getting different results when using the javascript getHTML() in IE 8 and Chrome. Specifically, checkboxes are not maintaining their state. I.e. checked checkboxes do not remain checked after a call to getHTML().
To reproduce:
In IE8
1. Go to http://cutesoft.net/example/JavaScript-API.aspx
2. Switch to html mode and clear all html code.
3. Paste in the following html: <input type="checkbox" id="ckbTest" />
4. Switch to preview mode.
5. Check the checkbox and click the get HTML button.
Expected Result:
The html is returned with the 'CHECKED' attribute.
<INPUT id=ckbTest CHECKED type=checkbox>
In Chrome
Repeat the above steps, but this time the get HTML button returns:
<input id="ckbTest" type="checkbox" />
There is no checked attribute.
Any ideas?
Thanks.