Jeslan wrote:
Do any of you find Firefox to be the odd one out very often?
No. I develop in FF initially, so code that uses outerHTML never works. ;) Given that your first technique is essentially just a quick way of re-writing the <input> element, you should be able to accomplish the same thing explicitly using the DOM:
function dofilereset(fileInputId)
{
var f = document.getElementById(fileInputId);
var attrsToCopy = ['type', 'id', 'class', 'style', 'name', 'size', 'title',
'align', 'accept', 'tabindex', 'accesskey'];
var newF = document.createElement("input");
for (var i=0; i<attrsToCopy.length; ++i)
newF.setAttribute(attrsToCopy[i], f.getAttribute(attrsToCopy[i]));
f.parentNode.replaceChild(newF, f);
}
Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'