FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16603&edit=1

ID: 16603
Updated by: borz_off@cs.msu.su
Reported By: michael at stellarent dot com
Summary: Hierselect element options order broken in Google
Chrome
-Status: Analyzed
+Status: Closed
Type: Bug
Package: HTML_QuickForm
Operating System: Fedora
Package Version: 3.2.11
PHP Version: Irrelevant
-Assigned To:
+Assigned To: avb
Roadmap Versions:
New Comment:

-Status: Analyzed
+Status: Closed
-Assigned To:
+Assigned To: avb
Fixed in release 3.2.12, though recent Chrome versions do not exhibit
this behaviour, so the fix isn't terribly needed...


Previous Comments:
------------------------------------------------------------------------

[2010-09-22 19:57:24] avb

NB: committed an implementation of Hierselect element for QuickForm2,
this bug is fixed there. Now we just have to backport the fixes...

------------------------------------------------------------------------

[2009-09-14 13:14:28] mpgjunky

Alexey,

Thanks for the explanation, good to know.

Regards,
Michael.

------------------------------------------------------------------------

[2009-09-14 13:09:36] avb

-Status: Verified
+Status: Analyzed
Looks like Chrome can iterate over object's properties with 'for in'
loop in a random order. Also looks like that this behaviour conforms to
Javascript spec, but not to the behaviour of other major browsers...

We probably need to rewrite some of the JS code for hierselect, getting
rid of 'for in' loop.

References:
http://ejohn.org/blog/javascript-in-chrome/
http://stackoverflow.com/questions/640745/google-chrome-javascript-associative-arrays-evaluated-out-of-sequence

------------------------------------------------------------------------

[2009-09-12 19:51:36] avb

-Status: Feedback
+Status: Verified
Thanks, reproduced the problem.

------------------------------------------------------------------------

[2009-09-12 19:19:54] mpgjunky

Alexey,

When running the example, Alaska cities will show in correct order,
whilst California cities will show unordered.

Thanks,
Michael.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=16603

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 20, '10 at 5:38a
activeOct 20, '10 at 5:38a
posts1
users1
websitepear.php.net

1 user in discussion

Borz_off: 1 post

People

Translate

site design / logo © 2022 Grokbase