Closed Bug 870388 Opened 12 years ago Closed 8 years ago

Allow separator lines in html5 context menus

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: karl156, Assigned: wisniewskit)

References

()

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

The <hr> element is used to show separator lines in context menus. Example from WHATWG (see URL): <button type=menu menu=editmenu>Commands...</button> <menu type="popup" id="editmenu"> <menuitem type="radio" radiogroup="alignment" checked="checked" label="Left" icon="icons/alL.png" onclick="setAlign('left')"> <menuitem type="radio" radiogroup="alignment" label="Center" icon="icons/alC.png" onclick="setAlign('center')"> <menuitem type="radio" radiogroup="alignment" label="Right" icon="icons/alR.png" onclick="setAlign('right')"> <hr> <menuitem type="command" disabled label="Publish" icon="icons/pub.png" onclick="publish()"> </menu>
Blocks: 617528
Blocks: 897102
Here's a trivial patch which seems to do the job just fine. Try run seems ok, just some unrelated stuff: https://treeherder.mozilla.org/#/jobs?repo=try&revision=716fd217ca48
Attachment #8783134 - Flags: review?(mrbkap)
Comment on attachment 8783134 [details] [diff] [review] 870388-support-hr-in-menu.diff Review of attachment 8783134 [details] [diff] [review]: ----------------------------------------------------------------- Sorry for the delay in getting to this.
Attachment #8783134 - Flags: review?(mrbkap) → review+
Assignee: nobody → wisniewskit
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks! The patch still applies cleanly on inbound, so requesting check-in.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3dd49fb530d4 Support <hr> separators in <menu>. r=mrbkap
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
The following pages have been updated: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contextMenu https://developer.mozilla.org/en-US/Firefox/Releases/51 While I was in the <menu> and contextMenu pages, I added some other compatibility info updates and beefed up the explanatory text to be more detailed as well. This should do the trick.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: