Home » HTML » HTML_QuickForm » Bug #755
Auto-complete pseudo-element adds unprintable character when inputting '?'
Details
| Submitted | 2004-02-13 22:08 UTC |
|---|---|
| From | jsbiff at weldingengineering dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 4.3.4 |
| OS | Linux 2.4.20 |
| Roadmaps | (Not assigned) |
Comments
[2004-02-13 22:08 UTC] jsbiff at weldingengineering dot com
Description:
------------
I was looking at one of the examples that is in $pear/docs/HTML_Quickform/docs/ (where $pear is the PEAR install directory) and it has an auto-complete field. Whenever I try to type a question-mark character '?' it prints an unprintable character (represented by a little box-character) followed by a question mark, and moves the cursor over 1 additional space. If you do this say 3 or 4 times, then type some normal characters, you will notice that the characters appear about 4 places in front of the cursor.
As a note, my browser is Mozilla 1.5. I wonder if this is some wierd mozilla javascript bug? I'm not really sure where the bug is originating from.
Reproduce code:
---------------
page:
http://weldingconsultants.com/peardocs/HTML_QuickForm/docs/elements.php
php source:
http://weldingconsultants.com/peardocs/HTML_QuickForm/docs/elements.phps
[2004-02-13 22:12 UTC] jsbiff at weldingengineering dot com
I tried this in Internet Explorer 6, and it works ok. You guys might want to check the javascript code you are using. . . perhaps your code needs some tweaking to be standards compliant? Or maybe your code is standards compliant and Mozilla is just broken? I'm not really sure. If you guys could verify that it is a bug with Mozilla, and give me a specific javascript/DOM call/method that is broken, I can add it to the Mozilla bug database.
[2004-02-16 13:44 UTC] jsbiff at weldingengineering dot com
My browser identifier string is:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007
I notice the previous responder was using rv: 1.6 - maybe this has been fixed in Mozilla releases newer than 1.5
Jeff Schmidt
[2004-02-16 14:03 UTC] jsbiff at weldingengineering dot com
Ok, I downloaded Mozilla 1.6:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
And I am still having this problem. If you go to the link I have posted on the original bug report, and go to the bottom of the form, there is an auto-complete element field called "Favourite Fruit:"
Just type in a question-mark char into that field with Mozilla and see what happens.