aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-08-09 09:18:40 -0700
committerbors-servo <release+servo@mozilla.com>2013-08-09 09:18:40 -0700
commit96e928a653d82cc157b52d0817d0746c5e394f47 (patch)
treece174634a8f90e6b3639c6bf04178b5d7bc8a574 /src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl
parentebb4f3b3d1ed2e7904cb756394ca883a0a47f7a7 (diff)
parentc1f9f438086dc171a6321bc2d7af773f56cb444b (diff)
downloadservo-96e928a653d82cc157b52d0817d0746c5e394f47.tar.gz
servo-96e928a653d82cc157b52d0817d0746c5e394f47.zip
auto merge of #709 : jdm/servo/webidl, r=jdm
Diffstat (limited to 'src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl')
-rw-r--r--src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl101
1 files changed, 101 insertions, 0 deletions
diff --git a/src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl b/src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl
new file mode 100644
index 00000000000..10c32c989fc
--- /dev/null
+++ b/src/components/script/dom/bindings/codegen/HTMLTextAreaElement.webidl
@@ -0,0 +1,101 @@
+/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * The origin of this IDL file is
+ * http://www.whatwg.org/specs/web-apps/current-work/#the-textarea-element
+ * http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
+ * © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
+ * Opera Software ASA. You are granted a license to use, reproduce
+ * and create derivative works of this document.
+ */
+/*
+interface nsIEditor;
+interface MozControllers;
+*/
+interface HTMLTextAreaElement : HTMLElement {
+ // attribute DOMString autocomplete;
+ [SetterThrows, Pure]
+ attribute boolean autofocus;
+ [SetterThrows, Pure]
+ attribute unsigned long cols;
+ // attribute DOMString dirName;
+ [SetterThrows, Pure]
+ attribute boolean disabled;
+/*
+ [Pure]
+ readonly attribute HTMLFormElement? form;
+*/
+ // attribute DOMString inputMode;
+ [SetterThrows, Pure]
+ attribute long maxLength;
+ [SetterThrows, Pure]
+ attribute DOMString name;
+ [SetterThrows, Pure]
+ attribute DOMString placeholder;
+ [SetterThrows, Pure]
+ attribute boolean readOnly;
+ [SetterThrows, Pure]
+ attribute boolean required;
+ [SetterThrows, Pure]
+ attribute unsigned long rows;
+ [SetterThrows, Pure]
+ attribute DOMString wrap;
+
+ [Constant]
+ readonly attribute DOMString type;
+ [SetterThrows, Pure]
+ attribute DOMString defaultValue;
+ [TreatNullAs=EmptyString] attribute DOMString value;
+ readonly attribute unsigned long textLength;
+
+ readonly attribute boolean willValidate;
+/*
+ readonly attribute ValidityState validity;
+*/
+ readonly attribute DOMString validationMessage;
+ boolean checkValidity();
+ void setCustomValidity(DOMString error);
+/*
+ readonly attribute NodeList labels;
+*/
+ void select();
+ [Throws]
+ attribute unsigned long selectionStart;
+ [Throws]
+ attribute unsigned long selectionEnd;
+ [Throws]
+ attribute DOMString selectionDirection;
+ void setRangeText(DOMString replacement);
+/*
+ void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode);
+
+ [Throws]
+ void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
+*/
+};
+/*
+partial interface HTMLTextAreaElement {
+ // Mirrored chrome-only Mozilla extensions to nsIDOMHTMLTextAreaElement.
+ // Please make sure to update this list of nsIDOMHTMLTextAreaElement changes.
+
+ [Throws, ChromeOnly]
+ readonly attribute MozControllers controllers;
+};
+
+partial interface HTMLTextAreaElement {
+ // Mirrored chrome-only nsIDOMNSEditableElement methods. Please make sure
+ // to update this list if nsIDOMNSEditableElement changes.
+
+ [ChromeOnly]
+ readonly attribute nsIEditor? editor;
+
+ // This is similar to set .value on nsIDOMInput/TextAreaElements, but
+ // handling of the value change is closer to the normal user input, so
+ // 'change' event for example will be dispatched when focusing out the
+ // element.
+ [ChromeOnly]
+ void setUserInput(DOMString input);
+};
+*/