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

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

Issue 213773003: select.add() should support optgroup adding and before index (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/core/html/HTMLSelectElement.cpp ('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 * Copyright (C) 2013 Samsung Electronics. All rights reserved. 4 * Copyright (C) 2013 Samsung Electronics. 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 18 matching lines...) Expand all
29 attribute long size; 29 attribute long size;
30 30
31 readonly attribute DOMString type; 31 readonly attribute DOMString type;
32 32
33 readonly attribute HTMLOptionsCollection options; 33 readonly attribute HTMLOptionsCollection options;
34 [RaisesException=Setter] attribute unsigned long length; 34 [RaisesException=Setter] attribute unsigned long length;
35 35
36 getter Element item(unsigned long index); 36 getter Element item(unsigned long index);
37 [RaisesException, StrictTypeChecking] setter HTMLOptionElement (unsigned lon g index, HTMLOptionElement? value); 37 [RaisesException, StrictTypeChecking] setter HTMLOptionElement (unsigned lon g index, HTMLOptionElement? value);
38 Element namedItem([Default=Undefined] optional DOMString name); 38 Element namedItem([Default=Undefined] optional DOMString name);
39 [RaisesException] void add([Default=Undefined] optional HTMLElement element, 39 [RaisesException] void add(HTMLElement element,
40 [Default=Undefined] optional HTMLElement before); 40 [Default=Undefined] optional HTMLElement? before) ;
41 [RaisesException, ImplementedAs=addBeforeOptionAtIndex] void add(HTMLElement element, long before);
41 void remove(long index); 42 void remove(long index);
42 [RaisesException] void remove(); 43 [RaisesException] void remove();
43 readonly attribute HTMLCollection selectedOptions; 44 readonly attribute HTMLCollection selectedOptions;
44 attribute long selectedIndex; 45 attribute long selectedIndex;
45 attribute DOMString value; 46 attribute DOMString value;
46 47
47 readonly attribute boolean willValidate; 48 readonly attribute boolean willValidate;
48 readonly attribute ValidityState validity; 49 readonly attribute ValidityState validity;
49 readonly attribute DOMString validationMessage; 50 readonly attribute DOMString validationMessage;
50 boolean checkValidity(); 51 boolean checkValidity();
51 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error); 52 void setCustomValidity([TreatNullAs=NullString, TreatUndefinedAs=NullString] DOMString error);
52 53
53 readonly attribute NodeList labels; 54 readonly attribute NodeList labels;
54 }; 55 };
OLDNEW
« no previous file with comments | « Source/core/html/HTMLSelectElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698