NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 358 - RFE: split menu into separate patterns, similar to button and input
RFE: split menu into separate patterns, similar to button and input
Status: RESOLVED INTENTIONAL
Product: Validator.nu
Classification: Unclassified
Component: HTML5 schema
HEAD
All All
: P2 enhancement
Assigned To: Henri Sivonen
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-15 13:29 CET by Michael[tm] Smith
Modified: 2008-12-27 17:07 CET (History)
0 users

See Also:


Attachments
patch with proposed change (1.80 KB, patch)
2008-12-15 13:30 CET, Michael[tm] Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2008-12-15 13:29:57 CET
menu, along with command (and bb too...), is another element like button and input that has a "type" attribute that takes an enumerated list of possible values -- and one whose semantics differ depending on what the @type value is; e.g, for menu, it's either not really even a menu, but instead a "toolbar", or it has the more specific semantics of being a "context menu" or (when no type attribute is specified at all) it has the more-general semantics of being just "list of commands". It could in fact be modeled as three separate elements named commands, toolbar, contextmenu (or whatever), so it makes some sense to model it that way in the schema (that is, similar to the way the input and button elements are already modeled).

Anyway, the attached patch attempts to do that (along with removed the "autosubmit" attribute from menu).
Comment 1 Michael[tm] Smith 2008-12-15 13:30:41 CET
Created attachment 18 [details]
patch with proposed change
Comment 2 Michael[tm] Smith 2008-12-27 17:07:02 CET
After having experimented with this, I can see it's not a particularly useful change, so pretend I didn't suggest it :)