Open Bug 173543 Opened 23 years ago Updated 3 years ago

if the format code is incorrect it can't allow the focus change to another input text

Categories

(Core :: DOM: Core & HTML, defect, P5)

1.0 Branch
x86
Windows 2000
defect

Tracking

()

People

(Reporter: jotaromano, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461) Build Identifier: Mozilla/5.0 First of all sorry about my english, I´m a brazilian and have a long date that I don't write/speak nothing in english. The bug happens in a input type text. I´d written the code below in a OnBlur event: if (!formatoOK()) { alert('Formato incorreto dos dados'); this.focus(); } My purpose is if the format code isn´t correct I can´t allow the focus change to another input text. The code above works in IE but doesn´t work in Mozilla. Some dudes said the problem was in the code, to use this. But I´ve made this little test below and the problem persist. <HTML> <HEAD> <TITLE>Tentativa Focus</TITLE> </HEAD> <BODY> <input type="text" id="ab"/> <br> <input type="text" id="cd" onblur="document.getElementById('cd').focus();"/> <br> <input type="button" onclick="document.getElementById('cd').focus();"/> </BODY> </HTML> Could you tell me what´s the problem?? Reproducible: Always Steps to Reproduce: I think with this example you can see the problem <HTML> <HEAD> <TITLE>Focus Experiment</TITLE> </HEAD> <BODY> <input type="text" id="ab"/> <br> <input type="text" id="cd" onblur="document.getElementById('cd').focus();"/> <br> <input type="button" onclick="document.getElementById('cd').focus();"/> </BODY> </HTML> Actual Results: The focus can´t stay in the input text Expected Results: The focus couldn´t go to another input text if the format code is wrong
-> browser
Assignee: rudman → general
Component: Web Developer → Browser-General
Product: Documentation → Browser
QA Contact: rudman → general
Summary: if the format code is incorrect it can´t allow the focus change to another input text → if the format code is incorrect it can´t allow the focus change to another input text
Version: unspecified → 1.0 Branch
.
Assignee: general → dom_bugs
Component: Browser-General → DOM Level 0
QA Contact: general → ashishbhatt
Assignee: general → nobody
QA Contact: ashshbhatt → general
Summary: if the format code is incorrect it can´t allow the focus change to another input text → if the format code is incorrect it can't allow the focus change to another input text
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.