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

Unified Diff: core/html/HTMLInputElement.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/html/HTMLImageElement.idl ('k') | core/html/HTMLLabelElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/html/HTMLInputElement.idl
diff --git a/core/html/HTMLInputElement.idl b/core/html/HTMLInputElement.idl
index 95719d087bc693a2201df40f4b7de824ccd953cb..b82f0960df07787dbdeb3676b5a707bfb51cc24c 100644
--- a/core/html/HTMLInputElement.idl
+++ b/core/html/HTMLInputElement.idl
@@ -21,6 +21,8 @@
// https://html.spec.whatwg.org/#the-input-element
+enum SelectionMode { "select", "start", "end", "preserve" };
+
interface HTMLInputElement : HTMLElement {
[Reflect] attribute DOMString accept;
[Reflect] attribute DOMString alt;
@@ -34,7 +36,7 @@ interface HTMLInputElement : HTMLElement {
// The 'files' attribute is intentionally not readonly.
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=22682
attribute FileList? files;
- [Reflect, URL] attribute DOMString formAction;
+ attribute DOMString formAction;
[CustomElementCallbacks] attribute DOMString formEnctype;
[CustomElementCallbacks] attribute DOMString formMethod;
[Reflect] attribute boolean formNoValidate;
@@ -83,11 +85,10 @@ interface HTMLInputElement : HTMLElement {
[RaisesException, ImplementedAs=selectionEndForBinding] attribute long selectionEnd;
[RaisesException, ImplementedAs=selectionDirectionForBinding] attribute DOMString selectionDirection;
[RaisesException] void setRangeText(DOMString replacement);
- // FIXME: The selectionMode argument should be a SelectionMode enum.
[RaisesException] void setRangeText(DOMString replacement,
unsigned long start,
unsigned long end,
- optional DOMString selectionMode = "preserve");
+ optional SelectionMode selectionMode = "preserve");
// FIXME: The start and end arguments should be unsigned long and should not have [Default=Undefined].
[RaisesException, ImplementedAs=setSelectionRangeForBinding]
void setSelectionRange([Default=Undefined] optional long start,
« no previous file with comments | « core/html/HTMLImageElement.idl ('k') | core/html/HTMLLabelElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698