Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMenuItemElement.idl

Issue 2372593005: Restrict type attribute on menuitem (Closed)
Patch Set: Use ReflectOnly etc. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-misc-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // https://html.spec.whatwg.org/#the-menuitem-element 5 // https://html.spec.whatwg.org/#the-menuitem-element
6 6
7 [ 7 [
8 RuntimeEnabled=ContextMenu, 8 RuntimeEnabled=ContextMenu,
9 ] interface HTMLMenuItemElement : HTMLElement { 9 ] interface HTMLMenuItemElement : HTMLElement {
10 [CEReactions, Reflect] attribute DOMString type; 10 [CEReactions, Reflect, ReflectOnly=("checkbox","radio"), ReflectInvalid="com mand", ReflectMissing="command"] attribute DOMString type;
11 [CEReactions, Reflect] attribute DOMString label; 11 [CEReactions, Reflect] attribute DOMString label;
12 [CEReactions, Reflect, URL] attribute DOMString icon; 12 [CEReactions, Reflect, URL] attribute DOMString icon;
13 [CEReactions, Reflect] attribute boolean disabled; 13 [CEReactions, Reflect] attribute boolean disabled;
14 [CEReactions, Reflect] attribute boolean checked; 14 [CEReactions, Reflect] attribute boolean checked;
15 [CEReactions, Reflect] attribute DOMString radiogroup; 15 [CEReactions, Reflect] attribute DOMString radiogroup;
16 [CEReactions, Reflect] attribute boolean default; 16 [CEReactions, Reflect] attribute boolean default;
17 // FIXME: readonly attribute HTMLElement? command; 17 // FIXME: readonly attribute HTMLElement? command;
18 }; 18 };
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/imported/wpt/html/dom/reflection-misc-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698