Home » HTML » HTML_QuickForm » Bug #3785
hierselect dumps prototype functions into subselects
Details
| Submitted | 2005-03-12 02:49 UTC |
|---|---|
| From | jlarue at pobox dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| OS | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-03-12 02:49 UTC] jlarue at pobox dot com
Description:
------------
If you have the domLib (http://www.codejanitor.com/horde/chora/browse.php?f=tags%2FdomLib-0.60%2F) installed, or anything else that adds an Object.prototype, the iteration over options in hierselect dumps the contents of the prototype functions into the select box.
Reproduce code:
---------------
See https://dev.commpartners.us/external/hierselect/ - bug.php[s] demonstrates the bug (using a local copy of HTML::Quickform); hierselect.php.diff is the diff running in my environment now to work around this bug.
Change one of the first two selects in bug.php.
Expected result:
----------------
The selects to the right should change accordingly with no extra values.
Actual result:
--------------
The selects to the right will get a function declaration added to them in addition to changing in the expected fashion.