| 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 * |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 readonly attribute DOMString type; | 41 readonly attribute DOMString type; |
| 42 attribute DOMString defaultValue; | 42 attribute DOMString defaultValue; |
| 43 [TreatNullAs=NullString] attribute DOMString value; | 43 [TreatNullAs=NullString] attribute DOMString value; |
| 44 readonly attribute unsigned long textLength; | 44 readonly attribute unsigned long textLength; |
| 45 | 45 |
| 46 readonly attribute boolean willValidate; | 46 readonly attribute boolean willValidate; |
| 47 readonly attribute ValidityState validity; | 47 readonly attribute ValidityState validity; |
| 48 readonly attribute DOMString validationMessage; | 48 readonly attribute DOMString validationMessage; |
| 49 boolean checkValidity(); | 49 boolean checkValidity(); |
| 50 boolean reportValidity(); | 50 boolean reportValidity(); |
| 51 // FIXME: The error argument should not be nullable. | 51 void setCustomValidity(DOMString error); |
| 52 void setCustomValidity([TreatUndefinedAs=NullString] DOMString? error); | |
| 53 | 52 |
| 54 readonly attribute NodeList labels; | 53 readonly attribute NodeList labels; |
| 55 | 54 |
| 56 void select(); | 55 void select(); |
| 57 // TODO(philipj): selectionStart and selectionEnd should be unsigned long. | 56 // TODO(philipj): selectionStart and selectionEnd should be unsigned long. |
| 58 attribute long selectionStart; | 57 attribute long selectionStart; |
| 59 attribute long selectionEnd; | 58 attribute long selectionEnd; |
| 60 attribute DOMString selectionDirection; | 59 attribute DOMString selectionDirection; |
| 61 [RaisesException] void setRangeText(DOMString replacement); | 60 [RaisesException] void setRangeText(DOMString replacement); |
| 62 // TODO(philipj): The selectionMode argument should be a SelectionMode enum. | 61 // TODO(philipj): The selectionMode argument should be a SelectionMode enum. |
| 63 [RaisesException] void setRangeText(DOMString replacement, | 62 [RaisesException] void setRangeText(DOMString replacement, |
| 64 unsigned long start, | 63 unsigned long start, |
| 65 unsigned long end, | 64 unsigned long end, |
| 66 optional DOMString selectionMode = null)
; | 65 optional DOMString selectionMode = null)
; |
| 67 // TODO(philipj): The start and end arguments should be unsigned long and | 66 // TODO(philipj): The start and end arguments should be unsigned long and |
| 68 // should not be optional. | 67 // should not be optional. |
| 69 void setSelectionRange([Default=Undefined] optional long start, | 68 void setSelectionRange([Default=Undefined] optional long start, |
| 70 [Default=Undefined] optional long end, | 69 [Default=Undefined] optional long end, |
| 71 optional DOMString direction); | 70 optional DOMString direction); |
| 72 | 71 |
| 73 // HTML autocapitalize proposal | 72 // HTML autocapitalize proposal |
| 74 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal
.md | 73 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal
.md |
| 75 [Measure] attribute DOMString autocapitalize; | 74 [Measure] attribute DOMString autocapitalize; |
| 76 }; | 75 }; |
| OLD | NEW |