Status: Unconfirmed
Owner: all-bugs-t...@chromium.org
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 6041 by acccf.acccf: Chrome bypass the form data validation
http://code.google.com/p/chromium/issues/detail?id=6041

Chrome Version       : 1.0.154.36

Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
          IE 7: OK

The code bellow works whith IE7 but it doesn´t work with Chrome

<script language="JavaScript">
function ValidaSemPreenchimento(form){
for (i=0;i<form.length;i++){
var obg = form[i].obrigatorio;
if (obg==1){
if (form[i].value == ""){
var nome = form[i].descricao
alert("O campo " + nome + " é obrigatório.")
form[i].focus();
return false
}
}
}
return true
}
</script>

<form method="post" action="" onSubmit="return
validaSemPreenchimento(this)">
<input type="text" obrigatorio="1" descricao="Texto" name="texto">
<input type="submit" value="OK">
</form>


What is the expected result?
A Validation of the form using the propertie "descricao" to show the
message

What happens instead?
It submits the empty fields.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to