PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_QuickForm » Bug #3785

hierselect dumps prototype functions into subselects

Details

Submitted2005-03-12 02:49 UTC
Fromjlarue at pobox dot com
StatusBogus
PackageHTML_QuickForm
PHP VersionIrrelevant
OSIrrelevant
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.