I call the following function and it appears to remove it from the DOM in Safari. The field it is removing is a password field that has a value of "Password". I add a new node to the DOM that has no value, but when I input a value Safari sends in the the first value "Password" and the value I input.
Any thoughts? (All other browsers only send in the new input value.)
function removeElement() {
var node = document.getElementById("password-span");
node.removeChild(node.childNodes[0]);
}
Any thoughts? (All other browsers only send in the new input value.)
function removeElement() {
var node = document.getElementById("password-span");
node.removeChild(node.childNodes[0]);
}