Open Bug 85188 Opened 25 years ago Updated 4 years ago

OPTGROUP should be cascading style with popups sublevel lists

Categories

(Core :: Layout: Form Controls, enhancement)

x86
Linux
enhancement

Tracking

()

Future

People

(Reporter: martin.macok, Unassigned)

References

()

Details

(Keywords: helpwanted, Whiteboard: DUPEME)

When I use large (hundreds files) OPTGROUP hiearchical list it is pain to scroll it. It should be folded at first level and unfolding sublists when selected. See URL for explanation, I think that Tantek is correct with as it should be renderred. Current rendering is what there is as "incorrect".
confirmed
Status: UNCONFIRMED → NEW
Ever confirmed: true
Tantek's claims are false in a couple of instances critical to this bug. * `Should produce a popup hierarchical menu with three first level hierarchical menu items, each of which has several sub-menu-items': false. The Macintosh HIGs say: Never create a hierarchical pop-up menu. Doing so would hide choices too deeply in the interface. It would also create an element that would be far too physically difficult to use. <http://developer.apple.com/techpubs/mac/HIGuidelines/HIGuidelines-91.html> * `A correct rendering should have ... A popup menu with nothing selected': false. The HTML specification does not specify use of a popup menu at all. And it also says explicitly: `If no OPTION element has the selected attribute set, user agent behavior for choosing which option is initially selected *is undefined*' [emphasis added]. This is a WONTFIX if ever I saw one. It's not often that the HIGs use the word `never'; and when they do, they really mean it.
current support is suboptimal. severity: enhancement mpt suggests nc4mac-messenger style menus which remind me of icq context menus, and icq remains mpt of bad ui. I'd prefer nc4win-messenger style menus which are what the reporter requests.
Severity: normal → enhancement
Keywords: helpwanted
Whiteboard: DUPEME
HTML Element component is deprecated, and should be removed from Bugzilla. Clayton is not the correct owner for these. Reassigning to layout.
Assignee: clayton → karnaze
Component: HTML Element → Layout
QA Contact: bsharma → petersen
A cascading menu (like the demo at W3C) wouldn't work. This would have strange side effects on length > 1 lists, especially multi-select lists, and severely limit control by CSS. I think a much better way to change this is to add [+]/[-] expanders on each group. Unfortunately, that sounds like one of the many things that won't happen until Mozilla uses XBL in web forms.
not a table specific bug, reassigning to core owner.
Assignee: karnaze → attinasi
Reassigning to Rod.
Assignee: attinasi → rods
Target Milestone: --- → Future
*** Bug 120534 has been marked as a duplicate of this bug. ***
At the very least, the current implementation is (as timeless said) suboptimal. It is adequate, but could be much nicer.
->Form Controls
Component: Layout → HTML Form Controls
QA Contact: petersen → tpreston
It is ironic I think that guidelines against hierarchical pop-ups would be found at Apple's site given that their column view operates quite a bit in this nested hierarchies way (albeit not as a pop-up). Anyhow, navigation is not difficult as long as the pop-up can stay popped up and as long as you can use the arrow keys (as well as typing to jump alphabetically). Besides hierarchical pop-ups are being used with CSS, so why not with optgroups? One truly could pack a lot into such a menu. I wanted to use it to represent all HTML elements for a kind of HTML-IDE-in-HTML--no way with a non-nested optgroup.
That the Finder's column view doesn't appear as a popup is precisely why it is much more humane than a hierarchical popup menu would be. The areas of the screen in which an accidental click will force you to restart navigation from scratch are much smaller for a columned window (the close button, and any sidebar items if present) than for hierarchical menus (*anywhere* on the screen outside the menus themselves). Such hazardous areas are similarly large for non-hierarchical popup menus, but because of the vertical-only mouse movement required, misclicks are much less likely. (Meanwhile with six years' hindsight, I can identify comment 3 as a "fallacy of division". That ICQ was bad does not mean all its details were bad.)
While I see your point, respectfully, I still think it is more cumbersome to scroll through hundreds of items (why is the person using a hierarchical menu in the first place?--probably to help people find things quickly). If the list is already alphabetical, they can just type the first letter, but if it is hierarchical, they may have to go through the whole list to find what they're looking for. Besides, Firefox menu bar operates just like this and it works fine (especially if you use the arrow keys and key shortcuts--just as you can use the arrows and first letter of pop-up items). Granted, you can argue that it would be faster using keyboard shortcuts on a non-hierarchical menu, but that assumes that one knows the word one is looking for--having items hierarchical allows you to get a bird's eye view as you cannot do with an alphabetical listing. Take View->Character Encoding->More Encodings . It's nice to see everything grouped there, even if takes longer if you have to access a choice within the hierarchy regularly. I think it is more a question of personal preference perhaps. Maybe a custom _moz style could indicate a default preference for the hierarchical type until such time as a standard might develop? Heck, I think it would be totally awesome if one style of this type could allow for a non-pop-up column browser--in combination with Ajax, that would be especially cool...
For hundreds of items, quicker scanning of categories as submenus might indeed outweigh the harm of slower mouse use (entering/leaving submenus) and slower keyboard use (not being able to type the first few letters of any item regardless of categorization). But for hundreds of items, an author should not be using <select size="1"> in the first place; they should be using either <datalist>, or <select size="at least 10, preferably more">. The presentation of <optgroup> should be optimized for shorter lists. Unfortunately, Firefox's "Character Encoding" maze is a legacy of Netscape's poor late-1990s UI design. (For example, find "Turkish". Is it in "East European"? "SE & SW Asian"? "Middle Eastern"? Any of those could be argued.) My redesign, described in bug 10999 and implemented in Epiphany, replaces the nested submenus with a scrollable list. So at least I'm consistent. :-)
That you are (consistent) :) Thanks for letting me know about <datalist> by the way--had to dig through to find it (undocumented) within an online HTML 5.0 draft, but it looks useful--I presume it should display all its contents onscreen... Anyhow, I still think that there still benefits where the size="1". Take a language list on a form, for example. There could likely be hundreds of options, but I know many of us wouldn't want to hog the page's real estate with a large menu for this--a regionally (or by family, if this were for linguistics) divided list with submenus could, I think, do the trick nicely. I think that the presence of strong feelings for both approaches indicates that there are desirable benefits to both options--in fact, I think it'd be best to let the user be able to choose or convert between the two (customizable ideally for default appearance also by styles), since there is nothing inherent in the tag name "select" (nor in its functionality, I'd say) that indicates how it must be displayed.
Assignee: rods → nobody
QA Contact: tpreston → layout.form-controls
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.