By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,745 Members | 1,897 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,745 IT Pros & Developers. It's quick & easy.

Odd BUG in FF

P: n/a
I ran across this and have submitted it to Mozilla but I thought I'd run it
past you all to see if you had seen it before and if I may be having a brain
far or what. On the url:

http://steffan.hldns.com:85/mozilla/...m_fields.lasso

Click the add field button a few times then submit the form. On the response
form you will see player_name_0 ... player_name_01 ... player_name_012
Well, that is wrong. It should have been
player_name_0 ... player_name_1 ... player_name_2
It works this way with IE PC and Safari. So why is FF doing it differently?
Essentially this is what FF does
Integer++ is equal to someInteger.toString() + someInteger.toString()
What is the deal. If you view source on the page you'll see where I
initialize var counter=0 and the counter++

Any ideas for a work around?

-S

Jan 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Phat G5 (G3) wrote:
I ran across this and have submitted it to Mozilla but I thought I'd run it
past you all to see if you had seen it before and if I may be having a brain
far or what. On the url:

http://steffan.hldns.com:85/mozilla/...m_fields.lasso

Click the add field button a few times then submit the form. On the response
form you will see player_name_0 ... player_name_01 ... player_name_012
Well, that is wrong. It should have been
player_name_0 ... player_name_1 ... player_name_2
It works this way with IE PC and Safari. So why is FF doing it differently?
Essentially this is what FF does
Integer++ is equal to someInteger.toString() + someInteger.toString()
What is the deal. If you view source on the page you'll see where I
initialize var counter=0 and the counter++

Any ideas for a work around?


No work around required. You are creating divs with duplicate IDs, the
results of which are inconsistent.

Change your code to either remove the id of cloned divs or make it
unique in the page:

var newFields = document.getElementById(loc
+ 'readroot').cloneNode(true);
newFields.style.display = 'block';
// Now remove the id or set it to some unique value
newFields.id = '';

--
Rob
Jan 24 '06 #2

P: n/a
in article L6*****************@news.optus.net.au, RobG at rg***@iinet.net.au
wrote on 1/23/06 11:50 PM:
Phat G5 (G3) wrote:
I ran across this and have submitted it to Mozilla but I thought I'd run it
past you all to see if you had seen it before and if I may be having a brain
far or what. On the url:

http://steffan.hldns.com:85/mozilla/...m_fields.lasso

Click the add field button a few times then submit the form. On the response
form you will see player_name_0 ... player_name_01 ... player_name_012
Well, that is wrong. It should have been
player_name_0 ... player_name_1 ... player_name_2
It works this way with IE PC and Safari. So why is FF doing it differently?
Essentially this is what FF does
Integer++ is equal to someInteger.toString() + someInteger.toString()
What is the deal. If you view source on the page you'll see where I
initialize var counter=0 and the counter++

Any ideas for a work around?


No work around required. You are creating divs with duplicate IDs, the
results of which are inconsistent.

Change your code to either remove the id of cloned divs or make it
unique in the page:

var newFields = document.getElementById(loc
+ 'readroot').cloneNode(true);
newFields.style.display = 'block';
// Now remove the id or set it to some unique value
newFields.id = '';

Yep, that fixed it. If you are registered on Bugzilla at mozilla.org you
will see an interesting thread over this.

Thanks

-S

Jan 24 '06 #3

P: n/a
Phat G5 (G3) wrote:
in article L6*****************@news.optus.net.au, RobG at rg***@iinet.net.au
wrote on 1/23/06 11:50 PM:

Phat G5 (G3) wrote:
I ran across this and have submitted it to Mozilla but I thought I'd run it
past you all to see if you had seen it before and if I may be having a brain
far or what. On the url:

http://steffan.hldns.com:85/mozilla/...m_fields.lasso
[...]No work around required. You are creating divs with duplicate IDs, the
results of which are inconsistent.

Change your code to either remove the id of cloned divs or make it
unique in the page:
[...]
Yep, that fixed it. If you are registered on Bugzilla at mozilla.org you
will see an interesting thread over this.


It would have been helpful to supply a link, bug number, summary text or
keywords. You don't have to be registered at Bugzilla to view bug
reports. For anyone who cares, it's 324482.

<URL:https://bugzilla.mozilla.org/show_bug.cgi?id=324482>
The solution was posted here on C.L.J. before it was posted on Bugzilla
(by 20 minutes). It's hardly an interesting discussion - I'd
characterise it as confused.

The bottom line is that you were creating invalid markup. How different
browsers respond to that is arbitrary. That Firefox responds
differently to some other browsers is not surprising.

It is not a bug, it is poor coding.

[...]

--
Rob
Jan 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.