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, |