Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(812)

Side by Side Diff: Source/core/html/HTMLSelectElement.idl

Issue 21834002: HTMLSelectElement.item() does not behave according to specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move test as advised Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 14 matching lines...) Expand all
25 attribute boolean multiple; 25 attribute boolean multiple;
26 [Reflect] attribute DOMString name; 26 [Reflect] attribute DOMString name;
27 [Reflect] attribute boolean required; 27 [Reflect] attribute boolean required;
28 attribute long size; 28 attribute long size;
29 29
30 readonly attribute DOMString type; 30 readonly attribute DOMString type;
31 31
32 readonly attribute HTMLOptionsCollection options; 32 readonly attribute HTMLOptionsCollection options;
33 [SetterRaisesException] attribute unsigned long length; 33 [SetterRaisesException] attribute unsigned long length;
34 34
35 getter Node item([IsIndex,Default=Undefined] optional unsigned long index); 35 getter Node item(unsigned long index);
36 [ImplementedAs=anonymousIndexedSetter, RaisesException] setter HTMLOptionEle ment (unsigned long index, [TreatNullAs=anonymousIndexedSetterRemove, TreatUndef inedAs=anonymousIndexedSetterRemove] HTMLOptionElement value); 36 [ImplementedAs=anonymousIndexedSetter, RaisesException] setter HTMLOptionEle ment (unsigned long index, [TreatNullAs=anonymousIndexedSetterRemove, TreatUndef inedAs=anonymousIndexedSetterRemove] HTMLOptionElement value);
37 Node namedItem([Default=Undefined] optional DOMString name); 37 Node namedItem([Default=Undefined] optional DOMString name);
38 [RaisesException] void add([Default=Undefined] optional HTMLElement element , 38 [RaisesException] void add([Default=Undefined] optional HTMLElement element ,
39 [Default=Undefined] optional HTMLElement before); 39 [Default=Undefined] optional HTMLElement before);
40 // In JavaScript, we support both option index and option object parameters. 40 // In JavaScript, we support both option index and option object parameters.
41 // As of this writing this cannot be auto-generated. 41 // As of this writing this cannot be auto-generated.
42 [Custom] void remove(/* indexOrOption */); 42 [Custom] void remove(/* indexOrOption */);
43 readonly attribute HTMLCollection selectedOptions; 43 readonly attribute HTMLCollection selectedOptions;
44 attribute long selectedIndex; 44 attribute long selectedIndex;
45 [TreatNullAs=NullString] attribute DOMString value; 45 [TreatNullAs=NullString] attribute DOMString value;
46 46
47 readonly attribute boolean willValidate; 47 readonly attribute boolean willValidate;
48 readonly attribute ValidityState validity; 48 readonly attribute ValidityState validity;
49 readonly attribute DOMString validationMessage; 49 readonly attribute DOMString validationMessage;
50 boolean checkValidity(); 50 boolean checkValidity();
51 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 51 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
52 52
53 readonly attribute NodeList labels; 53 readonly attribute NodeList labels;
54 }; 54 };
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/script-tests/non-numeric-values-numeric-parameters.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698