Closed
Bug 292384
Opened 20 years ago
Closed 20 years ago
AddKeywordForSearchField errors on FIELDSET items
Categories
(Firefox :: Bookmarks & History, defect)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
DUPLICATE
of bug 283719
People
(Reporter: ccarlen, Unassigned)
References
()
Details
1. Try using "Add Keyword for this Search..." on the bugzilla query page 2. Nothing happens The problem is this code: http://lxr.mozilla.org/seamonkey/source/browser/base/content/browser.js#5489 FIELDSET elements done have a "type" property, so an exception is thrown. According to this: http://www.w3.org/TR/REC-html40/interact/forms.html#successful-controls a "successful control" has to have a name attribute. FIELDSETs don't. Adding: if (!("name" in e)) continue; to both loops seems to work. Question is: Are children of the FIELDSET included in the form.elements array? By observation, they seem to be - FIELDSETS don't need to be descended into (?). Somebody knowing more about from processing should confirm. If that's right, I'll submit a patch. Also, this code doesn't do the right thing with lists containing a multiple selection.
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 283719 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•