| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 4 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. | 4 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| 11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
| 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
| 15 * | 15 * |
| 16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
| 17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
| 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 // https://html.spec.whatwg.org/#the-textarea-element | 22 // https://html.spec.whatwg.org/#the-textarea-element |
| 23 | 23 |
| 24 interface HTMLTextAreaElement : HTMLElement { | 24 interface HTMLTextAreaElement : HTMLElement { |
| 25 // attribute DOMString autocomplete; | 25 // attribute DOMString autocomplete; |
| 26 [CEReactions, Reflect] attribute boolean autofocus; | 26 [Measure, CEReactions, Reflect] attribute boolean autofocus; |
| 27 [CEReactions] attribute unsigned long cols; | 27 [CEReactions] attribute unsigned long cols; |
| 28 [CEReactions, Reflect] attribute DOMString dirName; | 28 [Measure, CEReactions, Reflect] attribute DOMString dirName; |
| 29 [CEReactions, Reflect] attribute boolean disabled; | 29 [CEReactions, Reflect] attribute boolean disabled; |
| 30 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; | 30 [ImplementedAs=formOwner] readonly attribute HTMLFormElement? form; |
| 31 [CEReactions, RaisesException=Setter] attribute long maxLength; | 31 [Measure, CEReactions, RaisesException=Setter] attribute long maxLength; |
| 32 [CEReactions, RaisesException=Setter] attribute long minLength; | 32 [Measure, CEReactions, RaisesException=Setter] attribute long minLength; |
| 33 [CEReactions, Reflect] attribute DOMString name; | 33 [CEReactions, Reflect] attribute DOMString name; |
| 34 [CEReactions, Reflect] attribute DOMString placeholder; | 34 [CEReactions, Reflect] attribute DOMString placeholder; |
| 35 [CEReactions, Reflect] attribute boolean readOnly; | 35 [CEReactions, Reflect] attribute boolean readOnly; |
| 36 [CEReactions, Reflect] attribute boolean required; | 36 [CEReactions, Reflect] attribute boolean required; |
| 37 [CEReactions] attribute unsigned long rows; | 37 [CEReactions] attribute unsigned long rows; |
| 38 [CEReactions, Reflect] attribute DOMString wrap; | 38 [CEReactions, Reflect] attribute DOMString wrap; |
| 39 | 39 |
| 40 readonly attribute DOMString type; | 40 readonly attribute DOMString type; |
| 41 [CEReactions] attribute DOMString defaultValue; | 41 [CEReactions] attribute DOMString defaultValue; |
| 42 [CEReactions, TreatNullAs=NullString] attribute DOMString value; | 42 [CEReactions, TreatNullAs=NullString] attribute DOMString value; |
| 43 readonly attribute unsigned long textLength; | 43 [Measure] readonly attribute unsigned long textLength; |
| 44 | 44 |
| 45 readonly attribute boolean willValidate; | 45 [MeasureAs=ValidationAPI] readonly attribute boolean willValidate; |
| 46 readonly attribute ValidityState validity; | 46 [MeasureAs=ValidationAPI] readonly attribute ValidityState validity; |
| 47 readonly attribute DOMString validationMessage; | 47 [MeasureAs=ValidationAPI] readonly attribute DOMString validationMessage; |
| 48 boolean checkValidity(); | 48 [MeasureAs=ValidationAPI] boolean checkValidity(); |
| 49 boolean reportValidity(); | 49 [MeasureAs=ValidationAPI] boolean reportValidity(); |
| 50 void setCustomValidity(DOMString error); | 50 [MeasureAs=ValidationAPI] void setCustomValidity(DOMString error); |
| 51 | 51 |
| 52 readonly attribute NodeList labels; | 52 readonly attribute NodeList labels; |
| 53 | 53 |
| 54 void select(); | 54 [Measure] void select(); |
| 55 // TODO(foolip): selectionStart and selectionEnd should be unsigned long. | 55 // TODO(foolip): selectionStart and selectionEnd should be unsigned long. |
| 56 attribute long selectionStart; | 56 attribute long selectionStart; |
| 57 attribute long selectionEnd; | 57 attribute long selectionEnd; |
| 58 attribute DOMString selectionDirection; | 58 attribute DOMString selectionDirection; |
| 59 [RaisesException] void setRangeText(DOMString replacement); | 59 [Measure, RaisesException] void setRangeText(DOMString replacement); |
| 60 [RaisesException] void setRangeText(DOMString replacement, | 60 [Measure, RaisesException] void setRangeText(DOMString replacement, |
| 61 unsigned long start, | 61 unsigned long start, |
| 62 unsigned long end, | 62 unsigned long end, |
| 63 optional SelectionMode selectionMode = "
preserve"); | 63 optional SelectionMode selectionMode = "
preserve"); |
| 64 // TODO(foolip): The start and end arguments should be unsigned long and | 64 // TODO(foolip): The start and end arguments should be unsigned long and |
| 65 // should not be optional. | 65 // should not be optional. |
| 66 [ImplementedAs=setSelectionRangeForBinding] | 66 [ImplementedAs=setSelectionRangeForBinding] |
| 67 void setSelectionRange([Default=Undefined] optional long start, | 67 void setSelectionRange([Default=Undefined] optional long start, |
| 68 [Default=Undefined] optional long end, | 68 [Default=Undefined] optional long end, |
| 69 optional DOMString direction); | 69 optional DOMString direction); |
| 70 | 70 |
| 71 // HTML autocapitalize proposal | 71 // HTML autocapitalize proposal |
| 72 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal
.md | 72 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal
.md |
| 73 [Measure] attribute DOMString autocapitalize; | 73 [Measure] attribute DOMString autocapitalize; |
| 74 }; | 74 }; |
| OLD | NEW |