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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void setCustomValidity(DOMString error); | 51 void setCustomValidity(DOMString error); |
52 | 52 |
53 readonly attribute NodeList labels; | 53 readonly attribute NodeList labels; |
54 | 54 |
55 void select(); | 55 void select(); |
56 // TODO(philipj): selectionStart and selectionEnd should be unsigned long. | 56 // TODO(philipj): selectionStart and selectionEnd should be unsigned long. |
57 attribute long selectionStart; | 57 attribute long selectionStart; |
58 attribute long selectionEnd; | 58 attribute long selectionEnd; |
59 attribute DOMString selectionDirection; | 59 attribute DOMString selectionDirection; |
60 [RaisesException] void setRangeText(DOMString replacement); | 60 [RaisesException] void setRangeText(DOMString replacement); |
61 // TODO(philipj): The selectionMode argument should be a SelectionMode enum. | |
62 [RaisesException] void setRangeText(DOMString replacement, | 61 [RaisesException] void setRangeText(DOMString replacement, |
63 unsigned long start, | 62 unsigned long start, |
64 unsigned long end, | 63 unsigned long end, |
65 optional DOMString selectionMode = null)
; | 64 optional SelectionMode selectionMode = "
preserve"); |
66 // TODO(philipj): The start and end arguments should be unsigned long and | 65 // TODO(philipj): The start and end arguments should be unsigned long and |
67 // should not be optional. | 66 // should not be optional. |
68 void setSelectionRange([Default=Undefined] optional long start, | 67 void setSelectionRange([Default=Undefined] optional long start, |
69 [Default=Undefined] optional long end, | 68 [Default=Undefined] optional long end, |
70 optional DOMString direction); | 69 optional DOMString direction); |
71 | 70 |
72 // HTML autocapitalize proposal | 71 // HTML autocapitalize proposal |
73 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal
.md | 72 // https://github.com/mounirlamouri/html-autocapitalize/blob/master/proposal
.md |
74 [Measure] attribute DOMString autocapitalize; | 73 [Measure] attribute DOMString autocapitalize; |
75 }; | 74 }; |
OLD | NEW |