menuitem

menuitem 要素 (HTML)

歴史

menuitem 要素 type 属性 (XUL)

[14] XULmenuitem 要素で、メニュー項目の型を指定します。

(値なし)
単なるメニュー項目 (既定値)。
checkbox
入/切の状態のあるメニュー項目。
radio
選択肢の1つであるメニュー項目。 name 属性と併用。

HTML

[30] Web Applications Markup Language 1.0, , http://www.hixie.ch/specs/html/apps/web-apps-1

<Hixie> <input type="text" menu="foo" icon="g.png"/> <menu id="foo"> <menuitem icon="g.png" onclick="engine('google')">Google</menuitem> ... </menu>
[31] ソースコード注釈内。
[216] HTML要素概説
要素名
menu
要素名
menuitem
日付
説明
Web Applications Markup Language 1.0 (後の HTML5) のソースコード注釈に menu, menuitem を使ったメニューの構想がある。 本文中にもメニューの構想が示されているが要素名はない。
出典
[32] HTML要素概説
要素名
menu
要素名
menulabel
要素名
menubar
日付
説明
版時点の Web Applications 1.0menu, menulabel, menubar が規定されていた。 メニューを表すものだった。 XUL のものに由来するが違いが多い。
出典

[33] [whatwg] [WA1] menus, , https://lists.whatwg.org/pipermail/whatwg-whatwg.org/2004-August/044405.html

[34] >>33 時点では既に存在していた模様。


[37] HTML要素概説
要素名
command
要素名
menuitem
日付
説明
Geckocommand の実装を開発していたが、 menuitem と改名することを決め、 仕様書にも変更を提案した。 要素名XUL によったものと考えられる。
出典

[38] Ian Hickson としては後方互換性要素の意味を重視しつつメニューツールバーの機能を統合的に提供できる menu命令の一連の機能群の中で command という要素名が適切という認識でした。

[39] 一方 Gecko は複雑ではない文脈メニュー機能の実装を求めており、 メニューの記述のための簡潔な要素があればよく、 統合的なモデルなどよりも機能を率直に表した要素名で十分と考えていました。 WebKit の開発者も (実装の意向は明言しないものの) それに賛同しています >>36

[17] [whatwg] <menu> and friends ( ( 版)) http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2013-January/038583.html

[whatwg] <menu> and friends (Ian Hickson著, ) https://lists.w3.org/Archives/Public/public-whatwg-archive/2012Dec/0264.html

[18] Web Applications 1.0 r7640 Clean up some mistakes from the menu/command/menuitem shake-up recently. ( ( 版)) http://html5.org/tools/web-apps-tracker?from=7639&to=7640

[40] HTML要素概説
要素名
command
要素名
menuitem
要素名
menu
日付
説明
HTML Standardcommandmenuitem に改名した。これらを含む menu 機能は実装者の意向を踏まえて大幅に改められた。
出典

[19] IRC logs: freenode / #whatwg / 20141126 ( ( 版)) http://krijnhoetmer.nl/irc-logs/whatwg/20141126#l-166

[20] [whatwg] <menuitem>: Issue reported by the web developers ( (Sanjoy Pal 著, 版)) http://lists.w3.org/Archives/Public/public-whatwg-archive/2014Nov/0143.html

[1] <menuitem> - HTML (HyperText Markup Language) | MDN ( 版) https://developer.mozilla.org/en/docs/Web/HTML/Element/menuitem

[2] menuitem - Mozilla | MDN ( 版) https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XUL/menuitem

[3] Re: [whatwg] <menuitem>: Issue reported by the web developers (Tab Atkins Jr. 著, 版) https://lists.w3.org/Archives/Public/public-whatwg-archive/2015Oct/0006.html

[4] Remove the "master command" concept from menuitem · whatwg/html@d65089b ( 版) https://github.com/whatwg/html/commit/d65089b6a7bee7d7418a721c182cdf22c44e2b1c

[5] 25325 – What is the rationale in having <menuitem> as a void element? It won't be backward compatible, and in addition to this if it had content allowed in form of text nodes, the label for the command could [...] ( 版) https://www.w3.org/Bugs/Public/show_bug.cgi?id=25325

[6] Parsing: <menuitem> should not be a void element · Issue #234 · whatwg/html ( 版) https://github.com/whatwg/html/issues/234

[7] 12999 – Allow nodefault="" on <menu type=context> ( 版) https://www.w3.org/Bugs/Public/show_bug.cgi?id=12999

[8] Allow <menuitem> to have children giving the label · whatwg/html@8fdccb5 ( 版) https://github.com/whatwg/html/commit/8fdccb55e40a36449ae6011f9960cb09c1da0db7

[9] Fix #234: Change <menuitem> from void to like-<option> · whatwg/html@5e49a20 ( 版) https://github.com/whatwg/html/commit/5e49a20874fabef620bf7ea0be7534c73fbd58c4

[10] Remove <menuitem> from Special category (nolanw著, ) https://github.com/whatwg/html/commit/7ecbcf1a037449c3d58e26ec704f5cb4cbdcf903

[11] Reconstruct active formatting elements for <menuitem> (zcorpan著, ) https://github.com/whatwg/html/commit/2999aa01438bdef11ba10aef82b775293efbef79

[12] Align activation behavior with changes to DOM Standard (annevk著, ) https://github.com/whatwg/html/commit/7beb920ba2e1a71246b81d86005f223a0d7ac8ab

[13] Make <menuitem> parse like an unknown element (zcorpan著, ) https://github.com/whatwg/html/commit/0ca0377a7ca6d87fb40e0b97e0ee074300b39a32

[21] Remove the context menu feature (domenic著, ) https://github.com/whatwg/html/commit/e7e8c88ecdd7cdc96171f05ab6fe23b56dd48d8a

[22] 17799 – srcset: Support different resolutions for command elements and images () https://www.w3.org/Bugs/Public/show_bug.cgi?id=17799

[23] 179020 – [Touch Bar Web API] Add support for menuitem tag () https://bugs.webkit.org/show_bug.cgi?id=179020

[24] Rethink to keep <menuitem> and context menu · Issue #2929 · whatwg/html () https://github.com/whatwg/html/issues/2929

[25] Touch Bar Web API: <menu type=touch-bar> and <menuitem> · Issue #3251 · whatwg/html () https://github.com/whatwg/html/issues/3251

[26] Release Notes for Safari Technology Preview 44 | WebKit () https://webkit.org/blog/8035/release-notes-for-safari-technology-preview-44/

Added support for the <menuitem> tag, currently off by default at runtime (r224457)

[27] チェンジセット 224457 – WebKit () https://trac.webkit.org/changeset/224457/webkit/

[28] [webkit-dev] Touch Bar Web API () https://lists.webkit.org/pipermail/webkit-dev/2017-October/029693.html

[29] () https://chidori-high-school.com/pdf/pdfjs/viewer/viewer.html?p=8fH5icfErinjEe8bSnermS6mktgHngcokgl(jAo8m55ojfiri6sEleb)pepoS6rko{Hmlcplgs6jrt8mH5ojfi(ip(Egibnmere&r=10&s=53&sj5_sh=H0G4G6GaH3I3I0I5G7%5fH0H3I3I1I7I0I2I6I5%5fI2I6I8&ns_sh=1&np_sh=1&title=%E3%83%A9%E3%82%A4%E3%83%95%E3%83%AA%E3%83%B3%E3%82%B0%EF%BC%94%20GO!GO!%20%E3%83%A9%E3%82%A4%E3%83%96%E3%83%BB%E3%82%A4%E3%82%BA%E3%83%BB%E3%83%93%E3%83%A5%E3%83%BC%E3%83%86%E3%82%A3%E3%83%95%E3%83%AB

<menu type="context" id="viewerContextMenu">

<menuitem id="contextFirstPage" label="First Page"

data-l10n-id="first_page"></menuitem>

<menuitem id="contextLastPage" label="Last Page"

data-l10n-id="last_page"></menuitem>

<menuitem id="contextPageRotateCw" label="右回転する"

data-l10n-id="page_rotate_cw"></menuitem>

<menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise"

data-l10n-id="page_rotate_ccw"></menuitem>

</menu>